class DatadogAPIClient::V1::UsageSummaryResponse
Response with hourly report of all data billed by Datadog all organizations.
Attributes
Shows the 99th percentile of all agent hosts over all hours in the current months for all organizations.
Shows the 99th percentile of all Azure app services using APM over all hours in the current months all organizations.
Shows the 99th percentile of all distinct APM hosts over all hours in the current months for all organizations.
Shows the sum of all audit logs lines indexed over all hours in the current months for all organizations.
Shows the 99th percentile of all AWS hosts over all hours in the current months for all organizations.
Shows the average of the number of functions that executed 1 or more times each hour in the current months for all organizations.
Shows the sum of all AWS Lambda invocations over all hours in the current months for all organizations.
Shows the 99th percentile of all Azure app services over all hours in the current months for all organizations.
Shows the 99th percentile of all Azure hosts over all hours in the current months for all organizations.
Shows the sum of all log bytes ingested over all hours in the current months for all organizations.
Shows the average of all distinct containers over all hours in the current months for all organizations.
Shows the sum of the high-water marks of all distinct containers over all hours in the current months for all organizations.
Shows the average number of Cloud Security Posture Management containers over all hours in the current months for all organizations.
Shows the sum of the the high-water marks of Cloud Security Posture Management containers over all hours in the current months for all organizations.
Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current months for all organizations.
Shows the average number of distinct custom metrics over all hours in the current months for all organizations.
Shows the average of all distinct Cloud Workload Security containers over all hours in the current months for all organizations.
Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current months for all organizations.
Shows the last date of usage in the current months for all organizations.
Shows the average of all Fargate tasks over all hours in the current months for all organizations.
Shows the sum of the high-water marks of all Fargate tasks over all hours in the current months for all organizations.
Shows the 99th percentile of all GCP hosts over all hours in the current months for all organizations.
Shows the 99th percentile of all Heroku dynos over all hours in the current months for all organizations.
Shows sum of the the high-water marks of incident management monthly active users in the current months for all organizations.
Shows the sum of all log events indexed over all hours in the current months for all organizations.
Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current months for all organizations.
Shows the sum of all log bytes ingested over all hours in the current months for all organizations.
Shows the sum of all IoT devices over all hours in the current months for all organizations.
Shows the 99th percentile of all IoT devices over all hours in the current months of all organizations.
Shows the the most recent hour in the current months for all organizations for which all usages were calculated.
Shows the sum of all live logs indexed over all hours in the current months for all organizations (data available as of December 1, 2020).
Shows the sum of all live logs bytes ingested over all hours in the current months for all organizations (data available as of December 1, 2020).
Shows the sum of all mobile RUM Sessions over all hours in the current months for all organizations.
Shows the sum of all mobile RUM Sessions on Android over all hours in the current months for all organizations.
Shows the sum of all mobile RUM Sessions on iOS over all hours in the current months for all organizations.
Shows the sum of all Network flows indexed over all hours in the current months for all organizations.
Shows the 99th percentile of all distinct Networks hosts over all hours in the current months for all organizations.
Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current months for all organizations.
Shows the average number of profiled containers over all hours in the current months for all organizations.
Shows the 99th percentile of all profiled hosts over all hours in the current months for all organizations.
Shows the sum of all rehydrated logs indexed over all hours in the current months for all organizations (data available as of December 1, 2020).
Shows the sum of all rehydrated logs bytes ingested over all hours in the current months for all organizations (data available as of December 1, 2020).
Shows the sum of all browser RUM Sessions over all hours in the current months for all organizations.
Shows the sum of RUM Sessions (browser and mobile) over all hours in the current months for all organizations.
Shows the first date of usage in the current months for all organizations.
Shows the sum of all Synthetic browser tests over all hours in the current months for all organizations.
Shows the sum of all Synthetic API tests over all hours in the current months for all organizations.
Shows the sum of all Indexed Spans indexed over all hours in the current months for all organizations.
Shows the sum of all tracing without limits bytes ingested over all hours in the current months for all organizations.
An array of objects regarding hourly usage.
Shows the 99th percentile of all vSphere hosts over all hours in the current months for all organizations.
Public Class Methods
Returns all the JSON keys this model knows about
# File lib/datadog_api_client/v1/models/usage_summary_response.rb, line 236 def self.acceptable_attributes attribute_map.values end
Attribute mapping from ruby-style variable name to JSON key.
# File lib/datadog_api_client/v1/models/usage_summary_response.rb, line 178 def self.attribute_map { :'agent_host_top99p_sum' => :'agent_host_top99p_sum', :'apm_azure_app_service_host_top99p_sum' => :'apm_azure_app_service_host_top99p_sum', :'apm_host_top99p_sum' => :'apm_host_top99p_sum', :'audit_logs_lines_indexed_agg_sum' => :'audit_logs_lines_indexed_agg_sum', :'aws_host_top99p_sum' => :'aws_host_top99p_sum', :'aws_lambda_func_count' => :'aws_lambda_func_count', :'aws_lambda_invocations_sum' => :'aws_lambda_invocations_sum', :'azure_app_service_top99p_sum' => :'azure_app_service_top99p_sum', :'azure_host_top99p_sum' => :'azure_host_top99p_sum', :'billable_ingested_bytes_agg_sum' => :'billable_ingested_bytes_agg_sum', :'container_avg_sum' => :'container_avg_sum', :'container_hwm_sum' => :'container_hwm_sum', :'cspm_container_avg_sum' => :'cspm_container_avg_sum', :'cspm_container_hwm_sum' => :'cspm_container_hwm_sum', :'cspm_host_top99p_sum' => :'cspm_host_top99p_sum', :'custom_ts_sum' => :'custom_ts_sum', :'cws_containers_avg_sum' => :'cws_containers_avg_sum', :'cws_host_top99p_sum' => :'cws_host_top99p_sum', :'end_date' => :'end_date', :'fargate_tasks_count_avg_sum' => :'fargate_tasks_count_avg_sum', :'fargate_tasks_count_hwm_sum' => :'fargate_tasks_count_hwm_sum', :'gcp_host_top99p_sum' => :'gcp_host_top99p_sum', :'heroku_host_top99p_sum' => :'heroku_host_top99p_sum', :'incident_management_monthly_active_users_hwm_sum' => :'incident_management_monthly_active_users_hwm_sum', :'indexed_events_count_agg_sum' => :'indexed_events_count_agg_sum', :'infra_host_top99p_sum' => :'infra_host_top99p_sum', :'ingested_events_bytes_agg_sum' => :'ingested_events_bytes_agg_sum', :'iot_device_agg_sum' => :'iot_device_agg_sum', :'iot_device_top99p_sum' => :'iot_device_top99p_sum', :'last_updated' => :'last_updated', :'live_indexed_events_agg_sum' => :'live_indexed_events_agg_sum', :'live_ingested_bytes_agg_sum' => :'live_ingested_bytes_agg_sum', :'logs_by_retention' => :'logs_by_retention', :'mobile_rum_session_count_agg_sum' => :'mobile_rum_session_count_agg_sum', :'mobile_rum_session_count_android_agg_sum' => :'mobile_rum_session_count_android_agg_sum', :'mobile_rum_session_count_ios_agg_sum' => :'mobile_rum_session_count_ios_agg_sum', :'netflow_indexed_events_count_agg_sum' => :'netflow_indexed_events_count_agg_sum', :'npm_host_top99p_sum' => :'npm_host_top99p_sum', :'opentelemetry_host_top99p_sum' => :'opentelemetry_host_top99p_sum', :'profiling_container_agent_count_avg' => :'profiling_container_agent_count_avg', :'profiling_host_count_top99p_sum' => :'profiling_host_count_top99p_sum', :'rehydrated_indexed_events_agg_sum' => :'rehydrated_indexed_events_agg_sum', :'rehydrated_ingested_bytes_agg_sum' => :'rehydrated_ingested_bytes_agg_sum', :'rum_session_count_agg_sum' => :'rum_session_count_agg_sum', :'rum_total_session_count_agg_sum' => :'rum_total_session_count_agg_sum', :'start_date' => :'start_date', :'synthetics_browser_check_calls_count_agg_sum' => :'synthetics_browser_check_calls_count_agg_sum', :'synthetics_check_calls_count_agg_sum' => :'synthetics_check_calls_count_agg_sum', :'trace_search_indexed_events_count_agg_sum' => :'trace_search_indexed_events_count_agg_sum', :'twol_ingested_events_bytes_agg_sum' => :'twol_ingested_events_bytes_agg_sum', :'usage' => :'usage', :'vsphere_host_top99p_sum' => :'vsphere_host_top99p_sum' } end
Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself
# File lib/datadog_api_client/v1/models/usage_summary_response.rb, line 617 def self.build_from_hash(attributes) new.build_from_hash(attributes) end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
# File lib/datadog_api_client/v1/models/usage_summary_response.rb, line 306 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSummaryResponse` 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::UsageSummaryResponse`. 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?(:'agent_host_top99p_sum') self.agent_host_top99p_sum = attributes[:'agent_host_top99p_sum'] end if attributes.key?(:'apm_azure_app_service_host_top99p_sum') self.apm_azure_app_service_host_top99p_sum = attributes[:'apm_azure_app_service_host_top99p_sum'] end if attributes.key?(:'apm_host_top99p_sum') self.apm_host_top99p_sum = attributes[:'apm_host_top99p_sum'] end if attributes.key?(:'audit_logs_lines_indexed_agg_sum') self.audit_logs_lines_indexed_agg_sum = attributes[:'audit_logs_lines_indexed_agg_sum'] end if attributes.key?(:'aws_host_top99p_sum') self.aws_host_top99p_sum = attributes[:'aws_host_top99p_sum'] end if attributes.key?(:'aws_lambda_func_count') self.aws_lambda_func_count = attributes[:'aws_lambda_func_count'] end if attributes.key?(:'aws_lambda_invocations_sum') self.aws_lambda_invocations_sum = attributes[:'aws_lambda_invocations_sum'] end if attributes.key?(:'azure_app_service_top99p_sum') self.azure_app_service_top99p_sum = attributes[:'azure_app_service_top99p_sum'] end if attributes.key?(:'azure_host_top99p_sum') self.azure_host_top99p_sum = attributes[:'azure_host_top99p_sum'] end if attributes.key?(:'billable_ingested_bytes_agg_sum') self.billable_ingested_bytes_agg_sum = attributes[:'billable_ingested_bytes_agg_sum'] end if attributes.key?(:'container_avg_sum') self.container_avg_sum = attributes[:'container_avg_sum'] end if attributes.key?(:'container_hwm_sum') self.container_hwm_sum = attributes[:'container_hwm_sum'] end if attributes.key?(:'cspm_container_avg_sum') self.cspm_container_avg_sum = attributes[:'cspm_container_avg_sum'] end if attributes.key?(:'cspm_container_hwm_sum') self.cspm_container_hwm_sum = attributes[:'cspm_container_hwm_sum'] end if attributes.key?(:'cspm_host_top99p_sum') self.cspm_host_top99p_sum = attributes[:'cspm_host_top99p_sum'] end if attributes.key?(:'custom_ts_sum') self.custom_ts_sum = attributes[:'custom_ts_sum'] end if attributes.key?(:'cws_containers_avg_sum') self.cws_containers_avg_sum = attributes[:'cws_containers_avg_sum'] end if attributes.key?(:'cws_host_top99p_sum') self.cws_host_top99p_sum = attributes[:'cws_host_top99p_sum'] end if attributes.key?(:'end_date') self.end_date = attributes[:'end_date'] end if attributes.key?(:'fargate_tasks_count_avg_sum') self.fargate_tasks_count_avg_sum = attributes[:'fargate_tasks_count_avg_sum'] end if attributes.key?(:'fargate_tasks_count_hwm_sum') self.fargate_tasks_count_hwm_sum = attributes[:'fargate_tasks_count_hwm_sum'] end if attributes.key?(:'gcp_host_top99p_sum') self.gcp_host_top99p_sum = attributes[:'gcp_host_top99p_sum'] end if attributes.key?(:'heroku_host_top99p_sum') self.heroku_host_top99p_sum = attributes[:'heroku_host_top99p_sum'] end if attributes.key?(:'incident_management_monthly_active_users_hwm_sum') self.incident_management_monthly_active_users_hwm_sum = attributes[:'incident_management_monthly_active_users_hwm_sum'] end if attributes.key?(:'indexed_events_count_agg_sum') self.indexed_events_count_agg_sum = attributes[:'indexed_events_count_agg_sum'] end if attributes.key?(:'infra_host_top99p_sum') self.infra_host_top99p_sum = attributes[:'infra_host_top99p_sum'] end if attributes.key?(:'ingested_events_bytes_agg_sum') self.ingested_events_bytes_agg_sum = attributes[:'ingested_events_bytes_agg_sum'] end if attributes.key?(:'iot_device_agg_sum') self.iot_device_agg_sum = attributes[:'iot_device_agg_sum'] end if attributes.key?(:'iot_device_top99p_sum') self.iot_device_top99p_sum = attributes[:'iot_device_top99p_sum'] end if attributes.key?(:'last_updated') self.last_updated = attributes[:'last_updated'] end if attributes.key?(:'live_indexed_events_agg_sum') self.live_indexed_events_agg_sum = attributes[:'live_indexed_events_agg_sum'] end if attributes.key?(:'live_ingested_bytes_agg_sum') self.live_ingested_bytes_agg_sum = attributes[:'live_ingested_bytes_agg_sum'] end if attributes.key?(:'logs_by_retention') self.logs_by_retention = attributes[:'logs_by_retention'] end if attributes.key?(:'mobile_rum_session_count_agg_sum') self.mobile_rum_session_count_agg_sum = attributes[:'mobile_rum_session_count_agg_sum'] end if attributes.key?(:'mobile_rum_session_count_android_agg_sum') self.mobile_rum_session_count_android_agg_sum = attributes[:'mobile_rum_session_count_android_agg_sum'] end if attributes.key?(:'mobile_rum_session_count_ios_agg_sum') self.mobile_rum_session_count_ios_agg_sum = attributes[:'mobile_rum_session_count_ios_agg_sum'] end if attributes.key?(:'netflow_indexed_events_count_agg_sum') self.netflow_indexed_events_count_agg_sum = attributes[:'netflow_indexed_events_count_agg_sum'] end if attributes.key?(:'npm_host_top99p_sum') self.npm_host_top99p_sum = attributes[:'npm_host_top99p_sum'] end if attributes.key?(:'opentelemetry_host_top99p_sum') self.opentelemetry_host_top99p_sum = attributes[:'opentelemetry_host_top99p_sum'] end if attributes.key?(:'profiling_container_agent_count_avg') self.profiling_container_agent_count_avg = attributes[:'profiling_container_agent_count_avg'] end if attributes.key?(:'profiling_host_count_top99p_sum') self.profiling_host_count_top99p_sum = attributes[:'profiling_host_count_top99p_sum'] end if attributes.key?(:'rehydrated_indexed_events_agg_sum') self.rehydrated_indexed_events_agg_sum = attributes[:'rehydrated_indexed_events_agg_sum'] end if attributes.key?(:'rehydrated_ingested_bytes_agg_sum') self.rehydrated_ingested_bytes_agg_sum = attributes[:'rehydrated_ingested_bytes_agg_sum'] end if attributes.key?(:'rum_session_count_agg_sum') self.rum_session_count_agg_sum = attributes[:'rum_session_count_agg_sum'] end if attributes.key?(:'rum_total_session_count_agg_sum') self.rum_total_session_count_agg_sum = attributes[:'rum_total_session_count_agg_sum'] end if attributes.key?(:'start_date') self.start_date = attributes[:'start_date'] end if attributes.key?(:'synthetics_browser_check_calls_count_agg_sum') self.synthetics_browser_check_calls_count_agg_sum = attributes[:'synthetics_browser_check_calls_count_agg_sum'] end if attributes.key?(:'synthetics_check_calls_count_agg_sum') self.synthetics_check_calls_count_agg_sum = attributes[:'synthetics_check_calls_count_agg_sum'] end if attributes.key?(:'trace_search_indexed_events_count_agg_sum') self.trace_search_indexed_events_count_agg_sum = attributes[:'trace_search_indexed_events_count_agg_sum'] end if attributes.key?(:'twol_ingested_events_bytes_agg_sum') self.twol_ingested_events_bytes_agg_sum = attributes[:'twol_ingested_events_bytes_agg_sum'] end if attributes.key?(:'usage') if (value = attributes[:'usage']).is_a?(Array) self.usage = value end end if attributes.key?(:'vsphere_host_top99p_sum') self.vsphere_host_top99p_sum = attributes[:'vsphere_host_top99p_sum'] end end
List of attributes with nullable: true
# File lib/datadog_api_client/v1/models/usage_summary_response.rb, line 299 def self.openapi_nullable Set.new([ ]) end
Attribute type mapping.
# File lib/datadog_api_client/v1/models/usage_summary_response.rb, line 241 def self.openapi_types { :'agent_host_top99p_sum' => :'Integer', :'apm_azure_app_service_host_top99p_sum' => :'Integer', :'apm_host_top99p_sum' => :'Integer', :'audit_logs_lines_indexed_agg_sum' => :'Integer', :'aws_host_top99p_sum' => :'Integer', :'aws_lambda_func_count' => :'Integer', :'aws_lambda_invocations_sum' => :'Integer', :'azure_app_service_top99p_sum' => :'Integer', :'azure_host_top99p_sum' => :'Integer', :'billable_ingested_bytes_agg_sum' => :'Integer', :'container_avg_sum' => :'Integer', :'container_hwm_sum' => :'Integer', :'cspm_container_avg_sum' => :'Integer', :'cspm_container_hwm_sum' => :'Integer', :'cspm_host_top99p_sum' => :'Integer', :'custom_ts_sum' => :'Integer', :'cws_containers_avg_sum' => :'Integer', :'cws_host_top99p_sum' => :'Integer', :'end_date' => :'Time', :'fargate_tasks_count_avg_sum' => :'Integer', :'fargate_tasks_count_hwm_sum' => :'Integer', :'gcp_host_top99p_sum' => :'Integer', :'heroku_host_top99p_sum' => :'Integer', :'incident_management_monthly_active_users_hwm_sum' => :'Integer', :'indexed_events_count_agg_sum' => :'Integer', :'infra_host_top99p_sum' => :'Integer', :'ingested_events_bytes_agg_sum' => :'Integer', :'iot_device_agg_sum' => :'Integer', :'iot_device_top99p_sum' => :'Integer', :'last_updated' => :'Time', :'live_indexed_events_agg_sum' => :'Integer', :'live_ingested_bytes_agg_sum' => :'Integer', :'logs_by_retention' => :'LogsByRetention', :'mobile_rum_session_count_agg_sum' => :'Integer', :'mobile_rum_session_count_android_agg_sum' => :'Integer', :'mobile_rum_session_count_ios_agg_sum' => :'Integer', :'netflow_indexed_events_count_agg_sum' => :'Integer', :'npm_host_top99p_sum' => :'Integer', :'opentelemetry_host_top99p_sum' => :'Integer', :'profiling_container_agent_count_avg' => :'Integer', :'profiling_host_count_top99p_sum' => :'Integer', :'rehydrated_indexed_events_agg_sum' => :'Integer', :'rehydrated_ingested_bytes_agg_sum' => :'Integer', :'rum_session_count_agg_sum' => :'Integer', :'rum_total_session_count_agg_sum' => :'Integer', :'start_date' => :'Time', :'synthetics_browser_check_calls_count_agg_sum' => :'Integer', :'synthetics_check_calls_count_agg_sum' => :'Integer', :'trace_search_indexed_events_count_agg_sum' => :'Integer', :'twol_ingested_events_bytes_agg_sum' => :'Integer', :'usage' => :'Array<UsageSummaryDate>', :'vsphere_host_top99p_sum' => :'Integer' } end
Public Instance Methods
Checks equality by comparing each attribute. @param [Object] Object to be compared
# File lib/datadog_api_client/v1/models/usage_summary_response.rb, line 545 def ==(o) return true if self.equal?(o) self.class == o.class && agent_host_top99p_sum == o.agent_host_top99p_sum && apm_azure_app_service_host_top99p_sum == o.apm_azure_app_service_host_top99p_sum && apm_host_top99p_sum == o.apm_host_top99p_sum && audit_logs_lines_indexed_agg_sum == o.audit_logs_lines_indexed_agg_sum && aws_host_top99p_sum == o.aws_host_top99p_sum && aws_lambda_func_count == o.aws_lambda_func_count && aws_lambda_invocations_sum == o.aws_lambda_invocations_sum && azure_app_service_top99p_sum == o.azure_app_service_top99p_sum && azure_host_top99p_sum == o.azure_host_top99p_sum && billable_ingested_bytes_agg_sum == o.billable_ingested_bytes_agg_sum && container_avg_sum == o.container_avg_sum && container_hwm_sum == o.container_hwm_sum && cspm_container_avg_sum == o.cspm_container_avg_sum && cspm_container_hwm_sum == o.cspm_container_hwm_sum && cspm_host_top99p_sum == o.cspm_host_top99p_sum && custom_ts_sum == o.custom_ts_sum && cws_containers_avg_sum == o.cws_containers_avg_sum && cws_host_top99p_sum == o.cws_host_top99p_sum && end_date == o.end_date && fargate_tasks_count_avg_sum == o.fargate_tasks_count_avg_sum && fargate_tasks_count_hwm_sum == o.fargate_tasks_count_hwm_sum && gcp_host_top99p_sum == o.gcp_host_top99p_sum && heroku_host_top99p_sum == o.heroku_host_top99p_sum && incident_management_monthly_active_users_hwm_sum == o.incident_management_monthly_active_users_hwm_sum && indexed_events_count_agg_sum == o.indexed_events_count_agg_sum && infra_host_top99p_sum == o.infra_host_top99p_sum && ingested_events_bytes_agg_sum == o.ingested_events_bytes_agg_sum && iot_device_agg_sum == o.iot_device_agg_sum && iot_device_top99p_sum == o.iot_device_top99p_sum && last_updated == o.last_updated && live_indexed_events_agg_sum == o.live_indexed_events_agg_sum && live_ingested_bytes_agg_sum == o.live_ingested_bytes_agg_sum && logs_by_retention == o.logs_by_retention && mobile_rum_session_count_agg_sum == o.mobile_rum_session_count_agg_sum && mobile_rum_session_count_android_agg_sum == o.mobile_rum_session_count_android_agg_sum && mobile_rum_session_count_ios_agg_sum == o.mobile_rum_session_count_ios_agg_sum && netflow_indexed_events_count_agg_sum == o.netflow_indexed_events_count_agg_sum && npm_host_top99p_sum == o.npm_host_top99p_sum && opentelemetry_host_top99p_sum == o.opentelemetry_host_top99p_sum && profiling_container_agent_count_avg == o.profiling_container_agent_count_avg && profiling_host_count_top99p_sum == o.profiling_host_count_top99p_sum && rehydrated_indexed_events_agg_sum == o.rehydrated_indexed_events_agg_sum && rehydrated_ingested_bytes_agg_sum == o.rehydrated_ingested_bytes_agg_sum && rum_session_count_agg_sum == o.rum_session_count_agg_sum && rum_total_session_count_agg_sum == o.rum_total_session_count_agg_sum && start_date == o.start_date && synthetics_browser_check_calls_count_agg_sum == o.synthetics_browser_check_calls_count_agg_sum && synthetics_check_calls_count_agg_sum == o.synthetics_check_calls_count_agg_sum && trace_search_indexed_events_count_agg_sum == o.trace_search_indexed_events_count_agg_sum && twol_ingested_events_bytes_agg_sum == o.twol_ingested_events_bytes_agg_sum && usage == o.usage && vsphere_host_top99p_sum == o.vsphere_host_top99p_sum end
Deserializes the data based on type @param string type Data type @param string value Value to be deserialized @return [Object] Deserialized data
# File lib/datadog_api_client/v1/models/usage_summary_response.rb, line 647 def _deserialize(type, value) case type.to_sym when :Time Time.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when :Array # generic array, return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model # models (e.g. Pet) or oneOf klass = DatadogAPIClient::V1.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value @param [Object] value Any valid value @return [Hash] Returns the value in the form of hash
# File lib/datadog_api_client/v1/models/usage_summary_response.rb, line 721 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end
Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself
# File lib/datadog_api_client/v1/models/usage_summary_response.rb, line 624 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) self.send("#{key}=", nil) elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end end self end
@see the `==` method @param [Object] Object to be compared
# File lib/datadog_api_client/v1/models/usage_summary_response.rb, line 604 def eql?(o) self == o end
Calculates hash code according to all attributes. @return [Integer] Hash code
# File lib/datadog_api_client/v1/models/usage_summary_response.rb, line 610 def hash [agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_host_top99p_sum, audit_logs_lines_indexed_agg_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, container_avg_sum, container_hwm_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_host_top99p_sum, custom_ts_sum, cws_containers_avg_sum, cws_host_top99p_sum, end_date, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, indexed_events_count_agg_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, logs_by_retention, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_ios_agg_sum, netflow_indexed_events_count_agg_sum, npm_host_top99p_sum, opentelemetry_host_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_session_count_agg_sum, rum_total_session_count_agg_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, usage, vsphere_host_top99p_sum].hash end
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
# File lib/datadog_api_client/v1/models/usage_summary_response.rb, line 532 def list_invalid_properties invalid_properties = Array.new invalid_properties end
Returns the object in the form of hash @return [Hash] Returns the object in the form of hash
# File lib/datadog_api_client/v1/models/usage_summary_response.rb, line 703 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end
Returns the string representation of the object @return [String] String presentation of the object
# File lib/datadog_api_client/v1/models/usage_summary_response.rb, line 691 def to_s to_hash.to_s end
Check to see if the all the properties in the model are valid @return true if the model is valid
# File lib/datadog_api_client/v1/models/usage_summary_response.rb, line 539 def valid? true end