Class: OpenAI::Models::Admin::Organization::Health::HealthAlert::Dimensions

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/admin/organization/health/health_alert.rb,
sig/openai/models/admin/organization/health/health_alert.rbs

Overview

See Also:

  • OpenAI::Models::Admin::Organization::Health::HealthAlert#dimensions

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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 ⇒ Dimensions

Returns a new instance of Dimensions.

Parameters:

  • http_status —

    Independently evaluated 4xx or 5xx code. Omitted for legacy aggregate snapshots and other alert types.

  • model: (String, nil)
  • project_id: (String, nil)
  • service_tier: (String, nil)
  • http_status: (Integer)
  • observability_tag: (String)


112
113
114
115
116
117
118
# File 'sig/openai/models/admin/organization/health/health_alert.rbs', line 112

def initialize: (
  model: String?,
  project_id: String?,
  service_tier: String?,
  ?http_status: Integer,
  ?observability_tag: String
) -> void

Instance Attribute Details

#http_status ⇒ Integer?

Independently evaluated 4xx or 5xx code. Omitted for legacy aggregate snapshots and other alert types.

Returns:

  • (Integer, nil)


109
# File 'lib/openai/models/admin/organization/health/health_alert.rb', line 109

optional :http_status, Integer

#model ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


92
# File 'lib/openai/models/admin/organization/health/health_alert.rb', line 92

required :model, String, nil?: true

#observability_tag ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


114
# File 'lib/openai/models/admin/organization/health/health_alert.rb', line 114

optional :observability_tag, String

#project_id ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


97
# File 'lib/openai/models/admin/organization/health/health_alert.rb', line 97

required :project_id, String, nil?: true

#service_tier ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


102
# File 'lib/openai/models/admin/organization/health/health_alert.rb', line 102

required :service_tier, String, nil?: true

Instance Method Details

#to_hash ⇒ { model: String?, project_id: String?, service_tier: String?, ?http_status: Integer, ?observability_tag: String }

Returns:

  • ({ model: String?, project_id: String?, service_tier: String?, ?http_status: Integer, ?observability_tag: String })


120
121
122
123
124
125
126
# File 'sig/openai/models/admin/organization/health/health_alert.rbs', line 120

def to_hash: -> {
  model: String?,
  project_id: String?,
  service_tier: String?,
  ?http_status: Integer,
  ?observability_tag: String
}