Class: Orb::Models::MetricEventsDroppedByWatermarkWebhookEvent

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

Defined Under Namespace

Modules: Type Classes: Properties

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(dropped:, event_name:, total:, window_end:, window_start:) ⇒ Object

window_start and window_end are ISO-8601 strings rather than datetimes: the untyped message called .isoformat() on them, so they keep microseconds where the webhook JSON provider would have truncated them.

Parameters:

  • dropped (Integer)
  • event_name (String)
  • total (Integer)
  • window_end (String)
  • window_start (String)


# File 'lib/orb/models/metric_events_dropped_by_watermark_webhook_event.rb', line 32

Instance Attribute Details

#created_at ⇒ Time

The time at which this event was created, to the second.

Parameters:

  • value (Time)

Returns:

  • (Time)


16
# File 'lib/orb/models/metric_events_dropped_by_watermark_webhook_event.rb', line 16

required :created_at, Time

#id ⇒ String

The ID of this webhook event.

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/orb/models/metric_events_dropped_by_watermark_webhook_event.rb', line 10

required :id, String

#properties ⇒ Orb::Models::MetricEventsDroppedByWatermarkWebhookEvent::Properties

window_start and window_end are ISO-8601 strings rather than datetimes: the untyped message called .isoformat() on them, so they keep microseconds where the webhook JSON provider would have truncated them.

Parameters:

  • value (Orb::MetricEventsDroppedByWatermarkWebhookEvent::Properties)

Returns:



24
# File 'lib/orb/models/metric_events_dropped_by_watermark_webhook_event.rb', line 24

required :properties, -> { Orb::MetricEventsDroppedByWatermarkWebhookEvent::Properties }

#type ⇒ Symbol, Orb::Models::MetricEventsDroppedByWatermarkWebhookEvent::Type

The event this payload describes.

Parameters:

  • value (Orb::Models::MetricEventsDroppedByWatermarkWebhookEvent::type_)

Returns:



30
# File 'lib/orb/models/metric_events_dropped_by_watermark_webhook_event.rb', line 30

required :type, enum: -> { Orb::MetricEventsDroppedByWatermarkWebhookEvent::Type }

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


27
# File 'sig/orb/models/metric_events_dropped_by_watermark_webhook_event.rbs', line 27

def to_hash: -> {