Module: OpenAI::Models::Admin::Organization::Health::HealthAlertRule::Condition

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/admin/organization/health/health_alert_rule.rb,
sig/openai/models/admin/organization/health/health_alert_rule.rbs

Overview

See Also:

  • OpenAI::Models::Admin::Organization::Health::HealthAlertRule#condition

Defined Under Namespace

Classes: ErrorRate, PromptCacheHitRate, RateLimitUtilization, ServiceTierFallbackRate

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variant_for_dump

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

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

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/admin/organization/health/health_alert_rule.rb', line 145

.variants ⇒ ::Array[OpenAI::Models::Admin::Organization::Health::HealthAlertRule::condition]

Returns:

  • (::Array[OpenAI::Models::Admin::Organization::Health::HealthAlertRule::condition])


231
# File 'sig/openai/models/admin/organization/health/health_alert_rule.rbs', line 231

def self?.variants: -> ::Array[OpenAI::Models::Admin::Organization::Health::HealthAlertRule::condition]

Instance Method Details

#initialize(threshold:, type: :prompt_cache_hit_rate) ⇒ Object

Parameters:

  • threshold (Float)
  • type (Symbol, :prompt_cache_hit_rate) (defaults to: :prompt_cache_hit_rate)


# File 'lib/openai/models/admin/organization/health/health_alert_rule.rb', line 161