Class: ContextDev::Models::MonitorListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/context_dev/models/monitor_list_params.rb,
sig/context_dev/models/monitor_list_params.rbs

Overview

See Also:

  • ContextDev::Resources::Monitors#list

Defined Under Namespace

Modules: ChangeDetectionType, SearchBy, SearchType, Status, TargetType

Constant Summary

Constants included from Internal::Type::RequestParameters

Internal::Type::RequestParameters::ContextDev

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initializeObject



72
# File 'sig/context_dev/models/monitor_list_params.rbs', line 72

def initialize: (

Instance Attribute Details

#change_detection_typeSymbol, ...



13
# File 'lib/context_dev/models/monitor_list_params.rb', line 13

optional :change_detection_type, enum: -> { ContextDev::MonitorListParams::ChangeDetectionType }

#cursorString?

Parameters:

  • (String)

Returns:

  • (String, nil)


18
# File 'lib/context_dev/models/monitor_list_params.rb', line 18

optional :cursor, String

#limitInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


23
# File 'lib/context_dev/models/monitor_list_params.rb', line 23

optional :limit, Integer

#qString?

Free-text search term, matched against the fields named in search_by.

Parameters:

  • (String)

Returns:

  • (String, nil)


29
# File 'lib/context_dev/models/monitor_list_params.rb', line 29

optional :q, String

#search_byArray<Symbol, ContextDev::Models::MonitorListParams::SearchBy>?

Comma-separated fields to search with q. Defaults to all of them. Note query only exists on semantic monitors.

Returns:



36
37
# File 'lib/context_dev/models/monitor_list_params.rb', line 36

optional :search_by,
-> { ContextDev::Internal::Type::ArrayOf[enum: ContextDev::MonitorListParams::SearchBy] }

#search_typeSymbol, ...

prefix for as-you-type prefix matching (default), exact for full-token matching.



44
# File 'lib/context_dev/models/monitor_list_params.rb', line 44

optional :search_type, enum: -> { ContextDev::MonitorListParams::SearchType }

#statusSymbol, ...

Monitor lifecycle status. failed means the most recent run failed (see the monitor's last_error); failed monitors keep running on schedule and flip back to active on the next successful run. Monitors are auto-paused after repeated consecutive failures or insufficient-credit skips; resume by PATCHing status to active.



54
# File 'lib/context_dev/models/monitor_list_params.rb', line 54

optional :status, enum: -> { ContextDev::MonitorListParams::Status }

#tagString?

Filter to items that have this tag.

Parameters:

  • (String)

Returns:

  • (String, nil)


60
# File 'lib/context_dev/models/monitor_list_params.rb', line 60

optional :tag, String

#tagsArray<String>?

Comma-separated list of tags to filter by (matches monitors having any of them).

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


66
# File 'lib/context_dev/models/monitor_list_params.rb', line 66

optional :tags, ContextDev::Internal::Type::ArrayOf[String]

#target_typeSymbol, ...



71
# File 'lib/context_dev/models/monitor_list_params.rb', line 71

optional :target_type, enum: -> { ContextDev::MonitorListParams::TargetType }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/context_dev/models/monitor_list_params.rb', line 105

Instance Method Details

#to_hash{

Returns:

  • ({)


86
# File 'sig/context_dev/models/monitor_list_params.rbs', line 86

def to_hash: -> {