Class: DatadogAPIClient::V1::UsageTopAvgMetricsHour
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::UsageTopAvgMetricsHour
- Defined in:
- lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb
Overview
Number of hourly recorded custom metrics for a given organization.
Instance Attribute Summary collapse
-
#avg_metric_hour ⇒ Object
Average number of timeseries per hour in which the metric occurs.
-
#max_metric_hour ⇒ Object
Maximum number of timeseries per hour in which the metric occurs.
-
#metric_category ⇒ Object
Returns the value of attribute metric_category.
-
#metric_name ⇒ Object
Contains the custom metric name.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ UsageTopAvgMetricsHour
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ UsageTopAvgMetricsHour
Initializes the object
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb', line 74 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageTopAvgMetricsHour` 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::UsageTopAvgMetricsHour`. 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?(:'avg_metric_hour') self.avg_metric_hour = attributes[:'avg_metric_hour'] end if attributes.key?(:'max_metric_hour') self.max_metric_hour = attributes[:'max_metric_hour'] end if attributes.key?(:'metric_category') self.metric_category = attributes[:'metric_category'] end if attributes.key?(:'metric_name') self.metric_name = attributes[:'metric_name'] end end |
Instance Attribute Details
#avg_metric_hour ⇒ Object
Average number of timeseries per hour in which the metric occurs.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb', line 27 def avg_metric_hour @avg_metric_hour end |
#max_metric_hour ⇒ Object
Maximum number of timeseries per hour in which the metric occurs.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb', line 30 def max_metric_hour @max_metric_hour end |
#metric_category ⇒ Object
Returns the value of attribute metric_category.
32 33 34 |
# File 'lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb', line 32 def metric_category @metric_category end |
#metric_name ⇒ Object
Contains the custom metric name.
35 36 37 |
# File 'lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb', line 35 def metric_name @metric_name end |