Class: DatadogAPIClient::V1::UsageCustomReportsAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::UsageCustomReportsAttributes
- Defined in:
- lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb
Overview
The response containing attributes for custom reports.
Instance Attribute Summary collapse
-
#computed_on ⇒ Object
The date the specified custom report was computed.
-
#end_date ⇒ Object
The ending date of custom report.
-
#size ⇒ Object
size.
-
#start_date ⇒ Object
The starting date of custom report.
-
#tags ⇒ Object
A list of tags to apply to custom reports.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ UsageCustomReportsAttributes
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ UsageCustomReportsAttributes
Initializes the object
80 81 82 83 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 |
# File 'lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb', line 80 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCustomReportsAttributes` 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::UsageCustomReportsAttributes`. 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?(:'computed_on') self.computed_on = attributes[:'computed_on'] end if attributes.key?(:'end_date') self.end_date = attributes[:'end_date'] end if attributes.key?(:'size') self.size = attributes[:'size'] end if attributes.key?(:'start_date') self.start_date = attributes[:'start_date'] end if attributes.key?(:'tags') if (value = attributes[:'tags']).is_a?(Array) self. = value end end end |
Instance Attribute Details
#computed_on ⇒ Object
The date the specified custom report was computed.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb', line 27 def computed_on @computed_on end |
#end_date ⇒ Object
The ending date of custom report.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb', line 30 def end_date @end_date end |
#size ⇒ Object
size
33 34 35 |
# File 'lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb', line 33 def size @size end |
#start_date ⇒ Object
The starting date of custom report.
36 37 38 |
# File 'lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb', line 36 def start_date @start_date end |
#tags ⇒ Object
A list of tags to apply to custom reports.
39 40 41 |
# File 'lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb', line 39 def @tags end |