Class: ContextDev::Models::MonitorCreateParams::Webhook
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ContextDev::Models::MonitorCreateParams::Webhook
- 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
-
#events ⇒ Array<Symbol, ContextDev::Models::MonitorCreateParams::Webhook::Event>?
Events delivered to this endpoint.
-
#url ⇒ String
Webhook URL events are delivered to.
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
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 ⇒ Object
306 |
# File 'sig/context_dev/models/monitor_create_params.rbs', line 306
def initialize: (
|
Instance Attribute Details
#events ⇒ Array<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] } |
#url ⇒ String
Webhook URL events are delivered to.
362 |
# File 'lib/context_dev/models/monitor_create_params.rb', line 362 required :url, String |
Instance Method Details
#to_hash ⇒ {
311 |
# File 'sig/context_dev/models/monitor_create_params.rbs', line 311
def to_hash: -> {
|