Class: OpenAI::Models::Admin::Organization::UsageAudioSpeechesParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Admin::Organization::UsageAudioSpeechesParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/openai/models/admin/organization/usage_audio_speeches_params.rb,
sig/openai/models/admin/organization/usage_audio_speeches_params.rbs
Overview
Defined Under Namespace
Modules: BucketWidth, GroupBy
Instance Attribute Summary collapse
-
#api_key_ids ⇒ Array<String>?
Return only usage for these API keys.
-
#bucket_width ⇒ Symbol, ...
Width of each time bucket in response.
-
#end_time ⇒ Integer?
End time (Unix seconds) of the query time range, exclusive.
-
#group_by ⇒ Array<Symbol, OpenAI::Models::Admin::Organization::UsageAudioSpeechesParams::GroupBy>?
Group the usage data by the specified fields.
-
#limit ⇒ Integer?
Specifies the number of buckets to return.
-
#models ⇒ Array<String>?
Return only usage for these models.
-
#page ⇒ String?
A cursor for use in pagination.
-
#project_ids ⇒ Array<String>?
Return only usage for these projects.
-
#start_time ⇒ Integer
Start time (Unix seconds) of the query time range, inclusive.
-
#user_ids ⇒ Array<String>?
Return only usage for these users.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(start_time:, api_key_ids: nil, bucket_width: nil, end_time: nil, group_by: nil, limit: nil, models: nil, page: nil, project_ids: nil, user_ids: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see UsageAudioSpeechesParams for more details.
- #to_hash ⇒ {
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(start_time:, api_key_ids: nil, bucket_width: nil, end_time: nil, group_by: nil, limit: nil, models: nil, page: nil, project_ids: nil, user_ids: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::Admin::Organization::UsageAudioSpeechesParams for more details.
|
|
# File 'lib/openai/models/admin/organization/usage_audio_speeches_params.rb', line 80
|
Instance Attribute Details
#api_key_ids ⇒ Array<String>?
Return only usage for these API keys.
22 |
# File 'lib/openai/models/admin/organization/usage_audio_speeches_params.rb', line 22 optional :api_key_ids, OpenAI::Internal::Type::ArrayOf[String] |
#bucket_width ⇒ Symbol, ...
Width of each time bucket in response. Currently 1m, 1h and 1d are
supported, default to 1d.
29 |
# File 'lib/openai/models/admin/organization/usage_audio_speeches_params.rb', line 29 optional :bucket_width, enum: -> { OpenAI::Admin::Organization::UsageAudioSpeechesParams::BucketWidth } |
#end_time ⇒ Integer?
End time (Unix seconds) of the query time range, exclusive.
35 |
# File 'lib/openai/models/admin/organization/usage_audio_speeches_params.rb', line 35 optional :end_time, Integer |
#group_by ⇒ Array<Symbol, OpenAI::Models::Admin::Organization::UsageAudioSpeechesParams::GroupBy>?
Group the usage data by the specified fields. Support fields include
project_id, user_id, api_key_id, model or any combination of them.
42 43 |
# File 'lib/openai/models/admin/organization/usage_audio_speeches_params.rb', line 42 optional :group_by, -> { OpenAI::Internal::Type::ArrayOf[enum: OpenAI::Admin::Organization::UsageAudioSpeechesParams::GroupBy] } |
#limit ⇒ Integer?
Specifies the number of buckets to return.
bucket_width=1d: default: 7, max: 31bucket_width=1h: default: 24, max: 168bucket_width=1m: default: 60, max: 1440
53 |
# File 'lib/openai/models/admin/organization/usage_audio_speeches_params.rb', line 53 optional :limit, Integer |
#models ⇒ Array<String>?
Return only usage for these models.
59 |
# File 'lib/openai/models/admin/organization/usage_audio_speeches_params.rb', line 59 optional :models, OpenAI::Internal::Type::ArrayOf[String] |
#page ⇒ String?
A cursor for use in pagination. Corresponding to the next_page field from the
previous response.
66 |
# File 'lib/openai/models/admin/organization/usage_audio_speeches_params.rb', line 66 optional :page, String |
#project_ids ⇒ Array<String>?
Return only usage for these projects.
72 |
# File 'lib/openai/models/admin/organization/usage_audio_speeches_params.rb', line 72 optional :project_ids, OpenAI::Internal::Type::ArrayOf[String] |
#start_time ⇒ Integer
Start time (Unix seconds) of the query time range, inclusive.
16 |
# File 'lib/openai/models/admin/organization/usage_audio_speeches_params.rb', line 16 required :start_time, Integer |
#user_ids ⇒ Array<String>?
Return only usage for these users.
78 |
# File 'lib/openai/models/admin/organization/usage_audio_speeches_params.rb', line 78 optional :user_ids, OpenAI::Internal::Type::ArrayOf[String] |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/admin/organization/usage_audio_speeches_params.rb', line 116
|
Instance Method Details
#to_hash ⇒ {
80 |
# File 'sig/openai/models/admin/organization/usage_audio_speeches_params.rbs', line 80
def to_hash: -> {
|