Class: ContextDev::Models::MonitorRetrieveResponse::Webhook

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

Overview

See Also:

  • ContextDev::Models::MonitorRetrieveResponse#webhook

Defined Under Namespace

Modules: Event

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

#initializeObject



443
# File 'sig/context_dev/models/monitor_retrieve_response.rbs', line 443

def initialize: (

Instance Attribute Details

#eventsArray<Symbol, ContextDev::Models::MonitorRetrieveResponse::Webhook::Event>?

Events delivered to this endpoint. change.detected fires only when a run detects a change; run.completed fires on every completed run — including runs that detected no change — and embeds the change when one was detected. Defaults to ["change.detected"] when omitted.



608
609
# File 'lib/context_dev/models/monitor_retrieve_response.rb', line 608

optional :events,
-> { ContextDev::Internal::Type::ArrayOf[enum: ContextDev::Models::MonitorRetrieveResponse::Webhook::Event] }

#secretString? (readonly)

Returns the value of attribute secret.

Returns:

  • (String, nil)


439
440
441
# File 'sig/context_dev/models/monitor_retrieve_response.rbs', line 439

def secret
  @secret
end

#urlString

Webhook URL events are delivered to.

Parameters:

  • value (String)

Returns:

  • (String)


599
# File 'lib/context_dev/models/monitor_retrieve_response.rb', line 599

required :url, String

Instance Method Details

#secret=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


441
# File 'sig/context_dev/models/monitor_retrieve_response.rbs', line 441

def secret=: (String) -> String

#to_hash{

Returns:

  • ({)


449
# File 'sig/context_dev/models/monitor_retrieve_response.rbs', line 449

def to_hash: -> {