Class: DatadogAPIClient::V1::UsageBillableSummaryBody
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::UsageBillableSummaryBody
- Defined in:
- lib/datadog_api_client/v1/models/usage_billable_summary_body.rb
Overview
Response with properties for each aggregated usage type.
Instance Attribute Summary collapse
-
#account_billable_usage ⇒ Object
The total account usage.
-
#elapsed_usage_hours ⇒ Object
Elapsed usage hours for some billable product.
-
#first_billable_usage_hour ⇒ Object
The first billable hour for the org.
-
#last_billable_usage_hour ⇒ Object
The last billable hour for the org.
-
#org_billable_usage ⇒ Object
The number of units used within the billable timeframe.
-
#percentage_in_account ⇒ Object
The percentage of account usage the org represents.
-
#usage_unit ⇒ Object
Units pertaining to the usage.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ UsageBillableSummaryBody
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ UsageBillableSummaryBody
Initializes the object
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 |
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_body.rb', line 90 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageBillableSummaryBody` 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::UsageBillableSummaryBody`. 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?(:'account_billable_usage') self.account_billable_usage = attributes[:'account_billable_usage'] end if attributes.key?(:'elapsed_usage_hours') self.elapsed_usage_hours = attributes[:'elapsed_usage_hours'] end if attributes.key?(:'first_billable_usage_hour') self.first_billable_usage_hour = attributes[:'first_billable_usage_hour'] end if attributes.key?(:'last_billable_usage_hour') self.last_billable_usage_hour = attributes[:'last_billable_usage_hour'] end if attributes.key?(:'org_billable_usage') self.org_billable_usage = attributes[:'org_billable_usage'] end if attributes.key?(:'percentage_in_account') self.percentage_in_account = attributes[:'percentage_in_account'] end if attributes.key?(:'usage_unit') self.usage_unit = attributes[:'usage_unit'] end end |
Instance Attribute Details
#account_billable_usage ⇒ Object
The total account usage.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_body.rb', line 27 def account_billable_usage @account_billable_usage end |
#elapsed_usage_hours ⇒ Object
Elapsed usage hours for some billable product.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_body.rb', line 30 def elapsed_usage_hours @elapsed_usage_hours end |
#first_billable_usage_hour ⇒ Object
The first billable hour for the org.
33 34 35 |
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_body.rb', line 33 def first_billable_usage_hour @first_billable_usage_hour end |
#last_billable_usage_hour ⇒ Object
The last billable hour for the org.
36 37 38 |
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_body.rb', line 36 def last_billable_usage_hour @last_billable_usage_hour end |
#org_billable_usage ⇒ Object
The number of units used within the billable timeframe.
39 40 41 |
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_body.rb', line 39 def org_billable_usage @org_billable_usage end |
#percentage_in_account ⇒ Object
The percentage of account usage the org represents.
42 43 44 |
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_body.rb', line 42 def percentage_in_account @percentage_in_account end |
#usage_unit ⇒ Object
Units pertaining to the usage.
45 46 47 |
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_body.rb', line 45 def usage_unit @usage_unit end |