Class: Anthropic::Models::Beta::Organization::BetaAnalyticsCostReportTimeBucket
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Organization::BetaAnalyticsCostReportTimeBucket
- Defined in:
- lib/anthropic/models/beta/organization/beta_analytics_cost_report_time_bucket.rb,
sig/anthropic/models/beta/organization/beta_analytics_cost_report_time_bucket.rbs
Instance Attribute Summary collapse
-
#ending_at ⇒ Time
End of the time bucket (exclusive) in RFC 3339 format.
-
#results ⇒ Array<Anthropic::Models::Beta::Organization::BetaAnalyticsCostBucketedResult>
Rows for this time bucket.
-
#starting_at ⇒ Time
Start of the time bucket (inclusive) in RFC 3339 format.
Instance Method Summary collapse
-
#initialize(ending_at:, results:, starting_at:) ⇒ BetaAnalyticsCostReportTimeBucket
constructor
Some parameter documentations has been truncated, see BetaAnalyticsCostReportTimeBucket for more details.
- #to_hash ⇒ { ending_at: Time, results: ::Array[Anthropic::Beta::Organization::BetaAnalyticsCostBucketedResult], starting_at: Time }
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(ending_at:, results:, starting_at:) ⇒ BetaAnalyticsCostReportTimeBucket
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::BetaAnalyticsCostReportTimeBucket for more details.
|
|
# File 'lib/anthropic/models/beta/organization/beta_analytics_cost_report_time_bucket.rb', line 29
|
Instance Attribute Details
#ending_at ⇒ Time
End of the time bucket (exclusive) in RFC 3339 format.
12 |
# File 'lib/anthropic/models/beta/organization/beta_analytics_cost_report_time_bucket.rb', line 12 required :ending_at, Time |
#results ⇒ Array<Anthropic::Models::Beta::Organization::BetaAnalyticsCostBucketedResult>
Rows for this time bucket. Empty when the bucket has no data; otherwise a single
combined row when group_by[] is omitted, or one row per group (subject to the
per-bucket group cap described on the group_by[] parameter).
20 21 |
# File 'lib/anthropic/models/beta/organization/beta_analytics_cost_report_time_bucket.rb', line 20 required :results, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::Organization::BetaAnalyticsCostBucketedResult] } |
#starting_at ⇒ Time
Start of the time bucket (inclusive) in RFC 3339 format.
27 |
# File 'lib/anthropic/models/beta/organization/beta_analytics_cost_report_time_bucket.rb', line 27 required :starting_at, Time |
Instance Method Details
#to_hash ⇒ { ending_at: Time, results: ::Array[Anthropic::Beta::Organization::BetaAnalyticsCostBucketedResult], starting_at: Time }
25 26 27 28 29 |
# File 'sig/anthropic/models/beta/organization/beta_analytics_cost_report_time_bucket.rbs', line 25
def to_hash: -> {
ending_at: Time,
results: ::Array[Anthropic::Beta::Organization::BetaAnalyticsCostBucketedResult],
starting_at: Time
}
|