Class: Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsCostItem
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsCostItem
- Defined in:
- lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_item.rb,
sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_item.rbs
Overview
Instance Attribute Summary collapse
-
#cost ⇒ Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsCostMetrics
Cost for this row.
-
#ending_at ⇒ Time
End of the period this row covers (exclusive), as an RFC 3339 UTC timestamp: the end of the row's time bucket when a time-bucket width is set; otherwise the requested
ending_at(or, when omitted, the earlier of now andstarting_atplus 31 days) rounded down to the hour, because without a time bucket the report covers whole hours. -
#group ⇒ Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsCostGroup
The dimension values this row's cost is broken out by.
-
#starting_at ⇒ Time
Start of the period this row covers (inclusive), as an RFC 3339 UTC timestamp: the start of the row's time bucket when a time-bucket width is set, otherwise the requested
starting_atrounded down to the hour.
Instance Method Summary collapse
-
#initialize(cost:, ending_at:, group:, starting_at:) ⇒ BetaAnalyticsCostItem
constructor
Some parameter documentations has been truncated, see BetaAnalyticsCostItem for more details.
- #to_hash ⇒ { cost: Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostMetrics, ending_at: Time, group: Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostGroup, 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(cost:, ending_at:, group:, starting_at:) ⇒ BetaAnalyticsCostItem
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsCostItem for more details.
|
|
# File 'lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_item.rb', line 40
|
Instance Attribute Details
#cost ⇒ Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsCostMetrics
Cost for this row.
14 |
# File 'lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_item.rb', line 14 required :cost, -> { Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostMetrics } |
#ending_at ⇒ Time
End of the period this row covers (exclusive), as an RFC 3339 UTC timestamp: the
end of the row's time bucket when a time-bucket width is set; otherwise the
requested ending_at (or, when omitted, the earlier of now and starting_at
plus 31 days) rounded down to the hour, because without a time bucket the report
covers whole hours.
24 |
# File 'lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_item.rb', line 24 required :ending_at, Time |
#group ⇒ Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsCostGroup
The dimension values this row's cost is broken out by.
30 |
# File 'lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_item.rb', line 30 required :group, -> { Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostGroup } |
#starting_at ⇒ Time
Start of the period this row covers (inclusive), as an RFC 3339 UTC timestamp:
the start of the row's time bucket when a time-bucket width is set, otherwise
the requested starting_at rounded down to the hour.
38 |
# File 'lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_item.rb', line 38 required :starting_at, Time |
Instance Method Details
#to_hash ⇒ { cost: Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostMetrics, ending_at: Time, group: Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostGroup, starting_at: Time }
30 31 32 33 34 35 |
# File 'sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_item.rbs', line 30
def to_hash: -> {
cost: Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostMetrics,
ending_at: Time,
group: Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostGroup,
starting_at: Time
}
|