Class: DatadogAPIClient::V1::SLOHistoryMetricsSeriesMetadata
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::SLOHistoryMetricsSeriesMetadata
- Defined in:
- lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb
Overview
Query metadata.
Instance Attribute Summary collapse
-
#aggr ⇒ Object
Query aggregator function.
-
#expression ⇒ Object
Query expression.
-
#metric ⇒ Object
Query metric used.
-
#query_index ⇒ Object
Query index from original combined query.
-
#scope ⇒ Object
Query scope.
-
#unit ⇒ Object
An array of metric units that contains up to two unit objects.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SLOHistoryMetricsSeriesMetadata
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ SLOHistoryMetricsSeriesMetadata
Initializes the object
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 |
# File 'lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb', line 86 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryMetricsSeriesMetadata` 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::SLOHistoryMetricsSeriesMetadata`. 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?(:'aggr') self.aggr = attributes[:'aggr'] end if attributes.key?(:'expression') self.expression = attributes[:'expression'] end if attributes.key?(:'metric') self.metric = attributes[:'metric'] end if attributes.key?(:'query_index') self.query_index = attributes[:'query_index'] end if attributes.key?(:'scope') self.scope = attributes[:'scope'] end if attributes.key?(:'unit') if (value = attributes[:'unit']).is_a?(Array) self.unit = value end end end |
Instance Attribute Details
#aggr ⇒ Object
Query aggregator function.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb', line 27 def aggr @aggr end |
#expression ⇒ Object
Query expression.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb', line 30 def expression @expression end |
#metric ⇒ Object
Query metric used.
33 34 35 |
# File 'lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb', line 33 def metric @metric end |
#query_index ⇒ Object
Query index from original combined query.
36 37 38 |
# File 'lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb', line 36 def query_index @query_index end |
#scope ⇒ Object
Query scope.
39 40 41 |
# File 'lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb', line 39 def scope @scope end |
#unit ⇒ Object
An array of metric units that contains up to two unit objects. For example, bytes represents one unit object and bytes per second represents two unit objects. If a metric query only has one unit object, the second array element is null.
42 43 44 |
# File 'lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb', line 42 def unit @unit end |