Class: OpenAI::Models::Webhooks::EvalRunCanceledWebhookEvent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/webhooks/eval_run_canceled_webhook_event.rb

Defined Under Namespace

Modules: Object Classes: Data

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, 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(id: ) ⇒ void

Some parameter documentations has been truncated, see Data for more details.

Event data payload.

Parameters:

  • id (String) (defaults to: )

    The unique ID of the eval run.



# File 'lib/openai/models/webhooks/eval_run_canceled_webhook_event.rb', line 37

Instance Attribute Details

#created_atInteger

The Unix timestamp (in seconds) of when the eval run was canceled.

Returns:

  • (Integer)


17
# File 'lib/openai/models/webhooks/eval_run_canceled_webhook_event.rb', line 17

required :created_at, Integer

#dataOpenAI::Models::Webhooks::EvalRunCanceledWebhookEvent::Data

Event data payload.



23
# File 'lib/openai/models/webhooks/eval_run_canceled_webhook_event.rb', line 23

required :data, -> { OpenAI::Webhooks::EvalRunCanceledWebhookEvent::Data }

#idString

The unique ID of the event.

Returns:

  • (String)


11
# File 'lib/openai/models/webhooks/eval_run_canceled_webhook_event.rb', line 11

required :id, String

#objectSymbol, ...

The object of the event. Always event.



35
# File 'lib/openai/models/webhooks/eval_run_canceled_webhook_event.rb', line 35

optional :object, enum: -> { OpenAI::Webhooks::EvalRunCanceledWebhookEvent::Object }

#typeSymbol, :"eval.run.canceled"

The type of the event. Always eval.run.canceled.

Returns:

  • (Symbol, :"eval.run.canceled")


29
# File 'lib/openai/models/webhooks/eval_run_canceled_webhook_event.rb', line 29

required :type, const: :"eval.run.canceled"