Class: DatadogAPIClient::V1::UsageAttributionAggregatesBody
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::UsageAttributionAggregatesBody
- Defined in:
- lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb
Overview
The object containing the aggregates.
Instance Attribute Summary collapse
-
#agg_type ⇒ Object
The aggregate type.
-
#field ⇒ Object
The field.
-
#value ⇒ Object
The value for a given field.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ UsageAttributionAggregatesBody
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ UsageAttributionAggregatesBody
Initializes the object
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb', line 70 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionAggregatesBody` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageAttributionAggregatesBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'agg_type') self.agg_type = attributes[:'agg_type'] end if attributes.key?(:'field') self.field = attributes[:'field'] end if attributes.key?(:'value') self.value = attributes[:'value'] end end |
Instance Attribute Details
#agg_type ⇒ Object
The aggregate type.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb', line 27 def agg_type @agg_type end |
#field ⇒ Object
The field.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb', line 30 def field @field end |
#value ⇒ Object
The value for a given field.
33 34 35 |
# File 'lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb', line 33 def value @value end |