Class: DatadogAPIClient::V1::UsageBillableSummaryHour
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::UsageBillableSummaryHour
- Defined in:
- lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb
Overview
Response with monthly summary of data billed by Datadog.
Instance Attribute Summary collapse
-
#billing_plan ⇒ Object
The billing plan.
-
#end_date ⇒ Object
Shows the last date of usage.
-
#num_orgs ⇒ Object
The number of organizations.
-
#org_name ⇒ Object
The organization name.
-
#public_id ⇒ Object
The organization public ID.
-
#ratio_in_month ⇒ Object
Shows usage aggregation for a billing period.
-
#start_date ⇒ Object
Shows the first date of usage.
-
#usage ⇒ Object
Returns the value of attribute usage.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ UsageBillableSummaryHour
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ UsageBillableSummaryHour
Initializes the object
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 |
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb', line 94 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageBillableSummaryHour` 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::UsageBillableSummaryHour`. 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?(:'billing_plan') self.billing_plan = attributes[:'billing_plan'] end if attributes.key?(:'end_date') self.end_date = attributes[:'end_date'] end if attributes.key?(:'num_orgs') self.num_orgs = attributes[:'num_orgs'] 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?(:'ratio_in_month') self.ratio_in_month = attributes[:'ratio_in_month'] end if attributes.key?(:'start_date') self.start_date = attributes[:'start_date'] end if attributes.key?(:'usage') self.usage = attributes[:'usage'] end end |
Instance Attribute Details
#billing_plan ⇒ Object
The billing plan.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb', line 27 def billing_plan @billing_plan end |
#end_date ⇒ Object
Shows the last date of usage.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb', line 30 def end_date @end_date end |
#num_orgs ⇒ Object
The number of organizations.
33 34 35 |
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb', line 33 def num_orgs @num_orgs end |
#org_name ⇒ Object
The organization name.
36 37 38 |
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb', line 36 def org_name @org_name end |
#public_id ⇒ Object
The organization public ID.
39 40 41 |
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb', line 39 def public_id @public_id end |
#ratio_in_month ⇒ Object
Shows usage aggregation for a billing period.
42 43 44 |
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb', line 42 def ratio_in_month @ratio_in_month end |
#start_date ⇒ Object
Shows the first date of usage.
45 46 47 |
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb', line 45 def start_date @start_date end |
#usage ⇒ Object
Returns the value of attribute usage.
47 48 49 |
# File 'lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb', line 47 def usage @usage end |