Class: ContextDev::Models::MonitorListResponse::Data::Webhook

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

Overview

See Also:

  • ContextDev::Models::MonitorListResponse::Data#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



469
# File 'sig/context_dev/models/monitor_list_response.rbs', line 469

def initialize: (

Instance Attribute Details

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



632
633
# File 'lib/context_dev/models/monitor_list_response.rb', line 632

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

#secretString? (readonly)

Returns the value of attribute secret.

Returns:

  • (String, nil)


465
466
467
# File 'sig/context_dev/models/monitor_list_response.rbs', line 465

def secret
  @secret
end

#urlString

Webhook URL events are delivered to.

Parameters:

  • value (String)

Returns:

  • (String)


623
# File 'lib/context_dev/models/monitor_list_response.rb', line 623

required :url, String

Instance Method Details

#secret=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


467
# File 'sig/context_dev/models/monitor_list_response.rbs', line 467

def secret=: (String) -> String

#to_hash{

Returns:

  • ({)


475
# File 'sig/context_dev/models/monitor_list_response.rbs', line 475

def to_hash: -> {