Class: Deeprails::Models::MonitorEventDetailResponse::Capability

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/deeprails/models/monitor_event_detail_response.rb

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(capabilities: nil, eval_time: nil, evaluation_result: nil, event_id: nil, files: nil, guardrail_metrics: nil, model_input: nil, model_output: nil, monitor_id: nil, nametag: nil, run_mode: nil, status: nil, timestamp: nil) ⇒ Object

Parameters:

  • capabilities (Array<Deeprails::Models::MonitorEventDetailResponse::Capability>) (defaults to: nil)

    The capabilities associated with the monitor event.

  • eval_time (String) (defaults to: nil)

    The time spent on the evaluation in seconds.

  • evaluation_result (Hash{Symbol=>Object}) (defaults to: nil)

    The result of the evaluation of the monitor event.

  • event_id (String) (defaults to: nil)

    A unique monitor event ID.

  • files (Array<Deeprails::Models::MonitorEventDetailResponse::File>) (defaults to: nil)

    The files associated with the monitor event.

  • guardrail_metrics (Array<String>) (defaults to: nil)

    The guardrail metrics evaluated by the monitor event.

  • model_input (Hash{Symbol=>Object}) (defaults to: nil)

    The model input used to create the monitor event.

  • model_output (String) (defaults to: nil)

    The output evaluated by the monitor event.

  • monitor_id (String) (defaults to: nil)

    Monitor ID associated with this event.

  • nametag (String) (defaults to: nil)

    A human-readable tag for the monitor event.

  • run_mode (Symbol, Deeprails::Models::MonitorEventDetailResponse::RunMode) (defaults to: nil)

    The run mode used to evaluate the monitor event.

  • status (Symbol, Deeprails::Models::MonitorEventDetailResponse::Status) (defaults to: nil)

    Status of the monitor event’s evaluation.

  • timestamp (Time) (defaults to: nil)

    The time the monitor event was created in UTC.



113
114
115
116
117
118
119
120
121
122
# File 'lib/deeprails/models/monitor_event_detail_response.rb', line 113

class Capability < Deeprails::Internal::Type::BaseModel
  # @!attribute capability
  #   The type of capability.
  #
  #   @return [String, nil]
  optional :capability, String

  # @!method initialize(capability: nil)
  #   @param capability [String] The type of capability.
end

Instance Attribute Details

#capabilityString?

The type of capability.

Returns:

  • (String, nil)


118
# File 'lib/deeprails/models/monitor_event_detail_response.rb', line 118

optional :capability, String