Class: DatadogAPIClient::V1::SLOHistoryMetrics
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::SLOHistoryMetrics
- Defined in:
- lib/datadog_api_client/v1/models/slo_history_metrics.rb
Overview
A ‘metric` based SLO history response. This is not included in responses for `monitor` based SLOs.
Instance Attribute Summary collapse
-
#denominator ⇒ Object
Returns the value of attribute denominator.
-
#interval ⇒ Object
The aggregated query interval for the series data.
-
#message ⇒ Object
Optional message if there are specific query issues/warnings.
-
#numerator ⇒ Object
Returns the value of attribute numerator.
-
#query ⇒ Object
The combined numerator and denominator query CSV.
-
#res_type ⇒ Object
The series result type.
-
#resp_version ⇒ Object
The series response version type.
-
#times ⇒ Object
An array of query timestamps in EPOCH milliseconds.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SLOHistoryMetrics
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ SLOHistoryMetrics
Initializes the object
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 127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/datadog_api_client/v1/models/slo_history_metrics.rb', line 93 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryMetrics` 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::SLOHistoryMetrics`. 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?(:'denominator') self.denominator = attributes[:'denominator'] end if attributes.key?(:'interval') self.interval = attributes[:'interval'] end if attributes.key?(:'message') self. = attributes[:'message'] end if attributes.key?(:'numerator') self.numerator = attributes[:'numerator'] end if attributes.key?(:'query') self.query = attributes[:'query'] end if attributes.key?(:'res_type') self.res_type = attributes[:'res_type'] end if attributes.key?(:'resp_version') self.resp_version = attributes[:'resp_version'] end if attributes.key?(:'times') if (value = attributes[:'times']).is_a?(Array) self.times = value end end end |
Instance Attribute Details
#denominator ⇒ Object
Returns the value of attribute denominator.
26 27 28 |
# File 'lib/datadog_api_client/v1/models/slo_history_metrics.rb', line 26 def denominator @denominator end |
#interval ⇒ Object
The aggregated query interval for the series data. It’s implicit based on the query time window.
29 30 31 |
# File 'lib/datadog_api_client/v1/models/slo_history_metrics.rb', line 29 def interval @interval end |
#message ⇒ Object
Optional message if there are specific query issues/warnings.
32 33 34 |
# File 'lib/datadog_api_client/v1/models/slo_history_metrics.rb', line 32 def @message end |
#numerator ⇒ Object
Returns the value of attribute numerator.
34 35 36 |
# File 'lib/datadog_api_client/v1/models/slo_history_metrics.rb', line 34 def numerator @numerator end |
#query ⇒ Object
The combined numerator and denominator query CSV.
37 38 39 |
# File 'lib/datadog_api_client/v1/models/slo_history_metrics.rb', line 37 def query @query end |
#res_type ⇒ Object
The series result type. This mimics ‘batch_query` response type.
40 41 42 |
# File 'lib/datadog_api_client/v1/models/slo_history_metrics.rb', line 40 def res_type @res_type end |
#resp_version ⇒ Object
The series response version type. This mimics ‘batch_query` response type.
43 44 45 |
# File 'lib/datadog_api_client/v1/models/slo_history_metrics.rb', line 43 def resp_version @resp_version end |
#times ⇒ Object
An array of query timestamps in EPOCH milliseconds
46 47 48 |
# File 'lib/datadog_api_client/v1/models/slo_history_metrics.rb', line 46 def times @times end |