Class: Orb::Models::SubscriptionFetchUsageParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::SubscriptionFetchUsageParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/orb/models/subscription_fetch_usage_params.rb
Overview
Defined Under Namespace
Modules: Granularity, ViewMode
Instance Attribute Summary collapse
-
#billable_metric_id ⇒ String?
When specified in conjunction with ‘group_by`, this parameter filters usage to a single billable metric.
- #first_dimension_key ⇒ String?
- #first_dimension_value ⇒ String?
-
#granularity ⇒ Symbol, ...
This determines the windowing of usage reporting.
-
#group_by ⇒ String?
Groups per-price usage by the key provided.
- #second_dimension_key ⇒ String?
- #second_dimension_value ⇒ String?
-
#timeframe_end ⇒ Time?
Usage returned is exclusive of ‘timeframe_end`.
-
#timeframe_start ⇒ Time?
Usage returned is inclusive of ‘timeframe_start`.
-
#view_mode ⇒ Symbol, ...
Controls whether Orb returns cumulative usage since the start of the billing period, or incremental day-by-day usage.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(billable_metric_id: nil, first_dimension_key: nil, first_dimension_value: nil, granularity: nil, group_by: nil, second_dimension_key: nil, second_dimension_value: nil, timeframe_end: nil, timeframe_start: nil, view_mode: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see SubscriptionFetchUsageParams for more details.
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(billable_metric_id: nil, first_dimension_key: nil, first_dimension_value: nil, granularity: nil, group_by: nil, second_dimension_key: nil, second_dimension_value: nil, timeframe_end: nil, timeframe_start: nil, view_mode: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Orb::Models::SubscriptionFetchUsageParams for more details.
|
|
# File 'lib/orb/models/subscription_fetch_usage_params.rb', line 71
|
Instance Attribute Details
#billable_metric_id ⇒ String?
When specified in conjunction with ‘group_by`, this parameter filters usage to a single billable metric. Note that both `group_by` and `billable_metric_id` must be specified together.
16 |
# File 'lib/orb/models/subscription_fetch_usage_params.rb', line 16 optional :billable_metric_id, String, nil?: true |
#first_dimension_key ⇒ String?
21 |
# File 'lib/orb/models/subscription_fetch_usage_params.rb', line 21 optional :first_dimension_key, String, nil?: true |
#first_dimension_value ⇒ String?
26 |
# File 'lib/orb/models/subscription_fetch_usage_params.rb', line 26 optional :first_dimension_value, String, nil?: true |
#granularity ⇒ Symbol, ...
This determines the windowing of usage reporting.
32 |
# File 'lib/orb/models/subscription_fetch_usage_params.rb', line 32 optional :granularity, enum: -> { Orb::SubscriptionFetchUsageParams::Granularity }, nil?: true |
#group_by ⇒ String?
Groups per-price usage by the key provided.
38 |
# File 'lib/orb/models/subscription_fetch_usage_params.rb', line 38 optional :group_by, String, nil?: true |
#second_dimension_key ⇒ String?
43 |
# File 'lib/orb/models/subscription_fetch_usage_params.rb', line 43 optional :second_dimension_key, String, nil?: true |
#second_dimension_value ⇒ String?
48 |
# File 'lib/orb/models/subscription_fetch_usage_params.rb', line 48 optional :second_dimension_value, String, nil?: true |
#timeframe_end ⇒ Time?
Usage returned is exclusive of ‘timeframe_end`.
54 |
# File 'lib/orb/models/subscription_fetch_usage_params.rb', line 54 optional :timeframe_end, Time, nil?: true |
#timeframe_start ⇒ Time?
Usage returned is inclusive of ‘timeframe_start`.
60 |
# File 'lib/orb/models/subscription_fetch_usage_params.rb', line 60 optional :timeframe_start, Time, nil?: true |
#view_mode ⇒ Symbol, ...
Controls whether Orb returns cumulative usage since the start of the billing period, or incremental day-by-day usage. If your customer has minimums or discounts, it’s strongly recommended that you use the default cumulative behavior.
69 |
# File 'lib/orb/models/subscription_fetch_usage_params.rb', line 69 optional :view_mode, enum: -> { Orb::SubscriptionFetchUsageParams::ViewMode }, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/orb/models/subscription_fetch_usage_params.rb', line 103
|