Class: ContextDev::Models::MonitorRunResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/context_dev/models/monitor_run_response.rb,
sig/context_dev/models/monitor_run_response.rbs

Overview

See Also:

  • ContextDev::Resources::Monitors#run

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#initialize(monitor_id:, queued:, run_id:) ⇒ MonitorRunResponse

Some parameter documentations has been truncated, see ContextDev::Models::MonitorRunResponse for more details.

Parameters:

  • monitor_id (String)
  • queued (Boolean)
  • run_id (String)

    The queued run. Poll GET /monitors/#monitor_id/runs or use it to correlate resu

  • monitor_id: (String)
  • queued: (Boolean)
  • run_id: (String)


# File 'lib/context_dev/models/monitor_run_response.rb', line 24

Instance Attribute Details

#monitor_idString

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/context_dev/models/monitor_run_response.rb', line 10

required :monitor_id, String

#queuedBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


15
# File 'lib/context_dev/models/monitor_run_response.rb', line 15

required :queued, ContextDev::Internal::Type::Boolean

#run_idString

The queued run. Poll GET /monitors/#monitor_id/runs or use it to correlate results.

Parameters:

  • value (String)

Returns:

  • (String)


22
# File 'lib/context_dev/models/monitor_run_response.rb', line 22

required :run_id, String

Instance Method Details

#to_hash{ monitor_id: String, queued: bool, run_id: String }

Returns:

  • ({ monitor_id: String, queued: bool, run_id: String })


15
# File 'sig/context_dev/models/monitor_run_response.rbs', line 15

def to_hash: -> { monitor_id: String, queued: bool, run_id: String }