Class: Stigg::Models::V1::CreditGetUsageResponse::Data::Series
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::CreditGetUsageResponse::Data::Series
- Defined in:
- lib/stigg/models/v1/credit_get_usage_response.rb,
sig/stigg/models/v1/credit_get_usage_response.rbs
Defined Under Namespace
Instance Attribute Summary collapse
-
#event_count ⇒ Float
Number of distinct usage events that consumed credits in this series.
-
#feature_id ⇒ String?
The feature ID; null when grouping by dimensions only.
-
#feature_name ⇒ String?
The display name of the feature; null when grouping by dimensions only.
-
#points ⇒ Array<Stigg::Models::V1::CreditGetUsageResponse::Data::Series::Point>
Time-series data points for this feature.
-
#tags ⇒ Array<Stigg::Models::V1::CreditGetUsageResponse::Data::Series::Tag>?
Dimension key/value pairs identifying this series when groupBy is applied.
-
#total_credits ⇒ Float
Total credits consumed by this feature in the time range.
Instance Method Summary collapse
-
#initialize(event_count:, timestamp:, value:) ⇒ Object
constructor
A single data point in the credit usage time series.
- #to_hash ⇒ {
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(event_count:, timestamp:, value:) ⇒ Object
A single data point in the credit usage time series
|
|
# File 'lib/stigg/models/v1/credit_get_usage_response.rb', line 206
|
Instance Attribute Details
#event_count ⇒ Float
Number of distinct usage events that consumed credits in this series. This count is not additive across series, because an event matched by several meters appears in more than one series.
135 |
# File 'lib/stigg/models/v1/credit_get_usage_response.rb', line 135 required :event_count, Float, api_name: :eventCount |
#feature_id ⇒ String?
The feature ID; null when grouping by dimensions only
141 |
# File 'lib/stigg/models/v1/credit_get_usage_response.rb', line 141 required :feature_id, String, api_name: :featureId, nil?: true |
#feature_name ⇒ String?
The display name of the feature; null when grouping by dimensions only
147 |
# File 'lib/stigg/models/v1/credit_get_usage_response.rb', line 147 required :feature_name, String, api_name: :featureName, nil?: true |
#points ⇒ Array<Stigg::Models::V1::CreditGetUsageResponse::Data::Series::Point>
Time-series data points for this feature
153 154 |
# File 'lib/stigg/models/v1/credit_get_usage_response.rb', line 153 required :points, -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::CreditGetUsageResponse::Data::Series::Point] } |
#tags ⇒ Array<Stigg::Models::V1::CreditGetUsageResponse::Data::Series::Tag>?
Dimension key/value pairs identifying this series when groupBy is applied
166 167 |
# File 'lib/stigg/models/v1/credit_get_usage_response.rb', line 166 optional :tags, -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::CreditGetUsageResponse::Data::Series::Tag] } |
#total_credits ⇒ Float
Total credits consumed by this feature in the time range
160 |
# File 'lib/stigg/models/v1/credit_get_usage_response.rb', line 160 required :total_credits, Float, api_name: :totalCredits |
Instance Method Details
#to_hash ⇒ {
129 |
# File 'sig/stigg/models/v1/credit_get_usage_response.rbs', line 129
def to_hash: -> {
|