Class: DatadogAPIClient::V1::MonthlyUsageAttributionBody
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::MonthlyUsageAttributionBody
- Defined in:
- lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb
Overview
Usage Summary by tag for a given organization.
Instance Attribute Summary collapse
-
#month ⇒ Object
Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM].
-
#org_name ⇒ Object
The name of the organization.
-
#public_id ⇒ Object
The organization public ID.
-
#tag_config_source ⇒ Object
The source of the usage attribution tag configuration and the selected tags in the format ‘<source_org_name>:<selected tag 1>///<selected tag 2>///<selected tag 3>`.
-
#tags ⇒ Object
Usage Summary by tag name.
-
#updated_at ⇒ Object
Datetime of the most recent update to the usage values.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ MonthlyUsageAttributionBody
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ MonthlyUsageAttributionBody
Initializes the object
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 127 128 129 130 131 |
# File 'lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb', line 89 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonthlyUsageAttributionBody` 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::MonthlyUsageAttributionBody`. 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?(:'month') self.month = attributes[:'month'] end if attributes.key?(:'org_name') self.org_name = attributes[:'org_name'] end if attributes.key?(:'public_id') self.public_id = attributes[:'public_id'] end if attributes.key?(:'tag_config_source') self.tag_config_source = attributes[:'tag_config_source'] end if attributes.key?(:'tags') if (value = attributes[:'tags']).is_a?(Hash) self. = value end end if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] end if attributes.key?(:'values') self.values = attributes[:'values'] end end |
Instance Attribute Details
#month ⇒ Object
Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM].
27 28 29 |
# File 'lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb', line 27 def month @month end |
#org_name ⇒ Object
The name of the organization.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb', line 30 def org_name @org_name end |
#public_id ⇒ Object
The organization public ID.
33 34 35 |
# File 'lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb', line 33 def public_id @public_id end |
#tag_config_source ⇒ Object
The source of the usage attribution tag configuration and the selected tags in the format ‘<source_org_name>:<selected tag 1>///<selected tag 2>///<selected tag 3>`.
36 37 38 |
# File 'lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb', line 36 def tag_config_source @tag_config_source end |
#tags ⇒ Object
Usage Summary by tag name.
39 40 41 |
# File 'lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb', line 39 def end |
#updated_at ⇒ Object
Datetime of the most recent update to the usage values.
42 43 44 |
# File 'lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb', line 42 def updated_at @updated_at end |
#values ⇒ Object
Returns the value of attribute values.
44 45 46 |
# File 'lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb', line 44 def values @values end |