Class: Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsCostMetrics
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsCostMetrics
- Defined in:
- lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_metrics.rb,
sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_metrics.rbs
Instance Attribute Summary collapse
-
#amount ⇒ String
Amount (post-discount, pre-credit) in fractional cents (minor units).
-
#currency ⇒ String
Currency code for the cost amount.
-
#list_amount ⇒ String
List-price amount (pre-discount) in fractional cents.
-
#requests ⇒ Integer?
Number of API requests in this row's scope.
Instance Method Summary collapse
-
#initialize(amount:, currency:, list_amount:, requests:) ⇒ BetaAnalyticsCostMetrics
constructor
The cost of one row.
- #to_hash ⇒ { amount: String, currency: String, list_amount: String, requests: Integer? }
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(amount:, currency:, list_amount:, requests:) ⇒ BetaAnalyticsCostMetrics
The cost of one row.
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::Analytics::BetaAnalyticsCostMetrics for more details.
|
|
# File 'lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_metrics.rb', line 37
|
Instance Attribute Details
#amount ⇒ String
Amount (post-discount, pre-credit) in fractional cents (minor units).
13 |
# File 'lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_metrics.rb', line 13 required :amount, String |
#currency ⇒ String
Currency code for the cost amount. Currently always "USD".
19 |
# File 'lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_metrics.rb', line 19 required :currency, String |
#list_amount ⇒ String
List-price amount (pre-discount) in fractional cents.
25 |
# File 'lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_metrics.rb', line 25 required :list_amount, String |
#requests ⇒ Integer?
Number of API requests in this row's scope. Null when group_by includes
cost_type or token_type (the count has no per-component attribution; read it
from the ungrouped response). For sandbox / code-execution events, this counts
execution spans rather than HTTP requests (these rows surface with
product: null).
35 |
# File 'lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_metrics.rb', line 35 required :requests, Integer, nil?: true |
Instance Method Details
#to_hash ⇒ { amount: String, currency: String, list_amount: String, requests: Integer? }
30 31 32 33 34 35 |
# File 'sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_metrics.rbs', line 30
def to_hash: -> {
amount: String,
currency: String,
list_amount: String,
requests: Integer?
}
|