Class: OpenAI::Models::Admin::Organization::Health::HealthAlertRule::Notifications

Inherits:
Internal::Type::BaseModel show all
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#notifications

Defined Under Namespace

Classes: Email, Webhook

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(addresses:, enabled:, org_owners:, project_owners:) ⇒ Notifications

Returns a new instance of Notifications.

Parameters:

  • addresses (Array<String>)
  • enabled (Boolean)
  • org_owners (Boolean)
  • project_owners (Boolean)
  • email: (OpenAI::Admin::Organization::Health::HealthAlertRule::Notifications::Email)
  • webhook: (OpenAI::Admin::Organization::Health::HealthAlertRule::Notifications::Webhook)


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

Instance Attribute Details

#email ⇒ OpenAI::Models::Admin::Organization::Health::HealthAlertRule::Notifications::Email

Parameters:

  • value (OpenAI::Admin::Organization::Health::HealthAlertRule::Notifications::Email)

Returns:



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

required :email, -> { OpenAI::Admin::Organization::Health::HealthAlertRule::Notifications::Email }

#webhook ⇒ OpenAI::Models::Admin::Organization::Health::HealthAlertRule::Notifications::Webhook

Parameters:

  • value (OpenAI::Admin::Organization::Health::HealthAlertRule::Notifications::Webhook)

Returns:



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

required :webhook, -> { OpenAI::Admin::Organization::Health::HealthAlertRule::Notifications::Webhook }

Instance Method Details

#to_hash ⇒ { email: OpenAI::Admin::Organization::Health::HealthAlertRule::Notifications::Email, webhook: OpenAI::Admin::Organization::Health::HealthAlertRule::Notifications::Webhook }

Returns:

  • ({ email: OpenAI::Admin::Organization::Health::HealthAlertRule::Notifications::Email, webhook: OpenAI::Admin::Organization::Health::HealthAlertRule::Notifications::Webhook })


295
296
297
298
# File 'sig/openai/models/admin/organization/health/health_alert_rule.rbs', line 295

def to_hash: -> {
  email: OpenAI::Admin::Organization::Health::HealthAlertRule::Notifications::Email,
  webhook: OpenAI::Admin::Organization::Health::HealthAlertRule::Notifications::Webhook
}