Class: ContextDev::Models::MonitorCreateParams::Webhook

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

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



306
# File 'sig/context_dev/models/monitor_create_params.rbs', line 306

def initialize: (

Instance Attribute Details

#eventsArray<Symbol, ContextDev::Models::MonitorCreateParams::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.



371
372
# File 'lib/context_dev/models/monitor_create_params.rb', line 371

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

#urlString

Webhook URL events are delivered to.

Parameters:

  • value (String)

Returns:

  • (String)


362
# File 'lib/context_dev/models/monitor_create_params.rb', line 362

required :url, String

Instance Method Details

#to_hash{

Returns:

  • ({)


311
# File 'sig/context_dev/models/monitor_create_params.rbs', line 311

def to_hash: -> {