Class: Deeprails::Models::MonitorEventDetailResponse

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

Overview

Defined Under Namespace

Modules: RunMode, Status Classes: Capability, File

Instance Attribute Summary collapse

Class Method 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(file_id: nil, file_name: nil, file_size: nil) ⇒ Object

Parameters:

  • file_id (String) (defaults to: nil)

    The ID of the file.

  • file_name (String) (defaults to: nil)

    The name of the file.

  • file_size (Integer) (defaults to: nil)

    The size of the file in bytes.



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


Instance Attribute Details

#capabilitiesArray<Deeprails::Models::MonitorEventDetailResponse::Capability>?

The capabilities associated with the monitor event.



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

optional :capabilities,
-> { Deeprails::Internal::Type::ArrayOf[Deeprails::MonitorEventDetailResponse::Capability] }

#eval_timeString?

The time spent on the evaluation in seconds.

Returns:

  • (String, nil)


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

optional :eval_time, String

#evaluation_resultHash{Symbol=>Object}?

The result of the evaluation of the monitor event.

Returns:

  • (Hash{Symbol=>Object}, nil)


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

optional :evaluation_result, Deeprails::Internal::Type::HashOf[Deeprails::Internal::Type::Unknown]

#event_idString?

A unique monitor event ID.

Returns:

  • (String, nil)


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

optional :event_id, String

#filesArray<Deeprails::Models::MonitorEventDetailResponse::File>?

The files associated with the monitor event.



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

optional :files, -> { Deeprails::Internal::Type::ArrayOf[Deeprails::MonitorEventDetailResponse::File] }

#guardrail_metricsArray<String>?

The guardrail metrics evaluated by the monitor event.

Returns:

  • (Array<String>, nil)


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

optional :guardrail_metrics, Deeprails::Internal::Type::ArrayOf[String]

#model_inputHash{Symbol=>Object}?

The model input used to create the monitor event.

Returns:

  • (Hash{Symbol=>Object}, nil)


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

optional :model_input, Deeprails::Internal::Type::HashOf[Deeprails::Internal::Type::Unknown]

#model_outputString?

The output evaluated by the monitor event.

Returns:

  • (String, nil)


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

optional :model_output, String

#monitor_idString?

Monitor ID associated with this event.

Returns:

  • (String, nil)


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

optional :monitor_id, String

#nametagString?

A human-readable tag for the monitor event.

Returns:

  • (String, nil)


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

optional :nametag, String

#run_modeSymbol, ...

The run mode used to evaluate the monitor event.



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

optional :run_mode, enum: -> { Deeprails::MonitorEventDetailResponse::RunMode }

#statusSymbol, ...

Status of the monitor event’s evaluation.



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

optional :status, enum: -> { Deeprails::MonitorEventDetailResponse::Status }

#timestampTime?

The time the monitor event was created in UTC.

Returns:

  • (Time, nil)


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

optional :timestamp, Time

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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