Class: OpenAI::Models::Admin::Organization::SpendAlertCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/openai/models/admin/organization/spend_alert_create_params.rb

Overview

Defined Under Namespace

Modules: Currency, Interval Classes: NotificationChannel

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(currency:, interval:, notification_channel:, threshold_amount:, request_options: {}) ⇒ Object

Parameters:



# File 'lib/openai/models/admin/organization/spend_alert_create_params.rb', line 37

Instance Attribute Details

#currencySymbol, OpenAI::Models::Admin::Organization::SpendAlertCreateParams::Currency

The currency for the threshold amount.



16
# File 'lib/openai/models/admin/organization/spend_alert_create_params.rb', line 16

required :currency, enum: -> { OpenAI::Admin::Organization::SpendAlertCreateParams::Currency }

#intervalSymbol, OpenAI::Models::Admin::Organization::SpendAlertCreateParams::Interval

The time interval for evaluating spend against the threshold.



22
# File 'lib/openai/models/admin/organization/spend_alert_create_params.rb', line 22

required :interval, enum: -> { OpenAI::Admin::Organization::SpendAlertCreateParams::Interval }

#notification_channelOpenAI::Models::Admin::Organization::SpendAlertCreateParams::NotificationChannel

Email notification settings for a spend alert.



28
29
# File 'lib/openai/models/admin/organization/spend_alert_create_params.rb', line 28

required :notification_channel,
-> { OpenAI::Admin::Organization::SpendAlertCreateParams::NotificationChannel }

#threshold_amountInteger

The alert threshold amount, in cents.

Returns:

  • (Integer)


35
# File 'lib/openai/models/admin/organization/spend_alert_create_params.rb', line 35

required :threshold_amount, Integer

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/admin/organization/spend_alert_create_params.rb', line 54