Class: DatadogAPIClient::V2::MetricTagConfigurationAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::MetricTagConfigurationAttributes
- Defined in:
- lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb
Overview
Object containing the definition of a metric tag configuration attributes.
Instance Attribute Summary collapse
-
#aggregations ⇒ Object
A list of queryable aggregation combinations for a count, rate, or gauge metric.
-
#created_at ⇒ Object
Timestamp when the tag configuration was created.
-
#include_percentiles ⇒ Object
Toggle to turn on/off percentile aggregations for distribution metrics.
-
#metric_type ⇒ Object
Returns the value of attribute metric_type.
-
#modified_at ⇒ Object
Timestamp when the tag configuration was last modified.
-
#tags ⇒ Object
List of tag keys on which to group.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ MetricTagConfigurationAttributes
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ MetricTagConfigurationAttributes
Initializes the object
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb', line 84 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationAttributes` 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::V2::MetricTagConfigurationAttributes`. 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?(:'aggregations') if (value = attributes[:'aggregations']).is_a?(Array) self.aggregations = value end end if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] end if attributes.key?(:'include_percentiles') self.include_percentiles = attributes[:'include_percentiles'] end if attributes.key?(:'metric_type') self.metric_type = attributes[:'metric_type'] else self.metric_type = 'gauge' end if attributes.key?(:'modified_at') self.modified_at = attributes[:'modified_at'] end if attributes.key?(:'tags') if (value = attributes[:'tags']).is_a?(Array) self. = value end end end |
Instance Attribute Details
#aggregations ⇒ Object
A list of queryable aggregation combinations for a count, rate, or gauge metric. By default, count and rate metrics require the (time: sum, space: sum) aggregation and Gauge metrics require the (time: avg, space: avg) aggregation. Additional time & space combinations are also available: - time: avg, space: avg - time: avg, space: max - time: avg, space: min - time: avg, space: sum - time: count, space: sum - time: max, space: max - time: min, space: min - time: sum, space: avg - time: sum, space: sum Can only be applied to metrics that have a ‘metric_type` of `count`, `rate`, or `gauge`.
27 28 29 |
# File 'lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb', line 27 def aggregations @aggregations end |
#created_at ⇒ Object
Timestamp when the tag configuration was created.
30 31 32 |
# File 'lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb', line 30 def created_at @created_at end |
#include_percentiles ⇒ Object
Toggle to turn on/off percentile aggregations for distribution metrics. Only present when the ‘metric_type` is `distribution`.
33 34 35 |
# File 'lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb', line 33 def include_percentiles @include_percentiles end |
#metric_type ⇒ Object
Returns the value of attribute metric_type.
35 36 37 |
# File 'lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb', line 35 def metric_type @metric_type end |
#modified_at ⇒ Object
Timestamp when the tag configuration was last modified.
38 39 40 |
# File 'lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb', line 38 def modified_at @modified_at end |
#tags ⇒ Object
List of tag keys on which to group.
41 42 43 |
# File 'lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb', line 41 def end |