=begin #Datadog API V1 Collection #Collection of all Datadog Public endpoints. The version of the OpenAPI document: 1.0 Contact: support@datadoghq.com Generated by: https://openapi-generator.tech Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2020-Present Datadog, Inc. =end require 'date' require 'time' module DatadogAPIClient::V1 # Global hourly report of all data billed by Datadog for a given organization. class UsageSummaryDateOrg # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Shows the 99th percentile of all agent hosts over all hours in the current date for the given org. attr_accessor :agent_host_top99p # Shows the 99th percentile of all Azure app services using APM over all hours in the current date for the given org. attr_accessor :apm_azure_app_service_host_top99p # Shows the 99th percentile of all distinct APM hosts over all hours in the current date for the given org. attr_accessor :apm_host_top99p # Shows the sum of all audit logs lines indexed over all hours in the current date for the given org. attr_accessor :audit_logs_lines_indexed_sum # The average profiled task count for Fargate Profiling. attr_accessor :avg_profiled_fargate_tasks # Shows the 99th percentile of all AWS hosts over all hours in the current date for the given org. attr_accessor :aws_host_top99p # Shows the sum of all AWS Lambda invocations over all hours in the current date for the given org. attr_accessor :aws_lambda_func_count # Shows the sum of all AWS Lambda invocations over all hours in the current date for the given org. attr_accessor :aws_lambda_invocations_sum # Shows the 99th percentile of all Azure app services over all hours in the current date for the given org. attr_accessor :azure_app_service_top99p # Shows the sum of all log bytes ingested over all hours in the current date for the given org. attr_accessor :billable_ingested_bytes_sum # Shows the sum of all browser lite sessions over all hours in the current date for the given org. attr_accessor :browser_rum_lite_session_count_sum # Shows the sum of all browser replay sessions over all hours in the current date for the given org. attr_accessor :browser_rum_replay_session_count_sum # Shows the sum of all browser RUM units over all hours in the current date for the given org. attr_accessor :browser_rum_units_sum # Shows the average of all distinct containers over all hours in the current date for the given org. attr_accessor :container_avg # Shows the high-water mark of all distinct containers over all hours in the current date for the given org. attr_accessor :container_hwm # Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current date for the given org. attr_accessor :cspm_aas_host_top99p # Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current date for the given org. attr_accessor :cspm_azure_host_top99p # Shows the average number of Cloud Security Posture Management containers over all hours in the current date for the given org. attr_accessor :cspm_container_avg # Shows the high-water mark of Cloud Security Posture Management containers over all hours in the current date for the given org. attr_accessor :cspm_container_hwm # Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current date for the given org. attr_accessor :cspm_host_top99p # Shows the average number of distinct custom metrics over all hours in the current date for the given org. attr_accessor :custom_ts_avg # Shows the average of all distinct Cloud Workload Security containers over all hours in the current date for the given org. attr_accessor :cws_container_count_avg # Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for the given org. attr_accessor :cws_host_top99p # Shows the 99th percentile of all Database Monitoring hosts over all hours in the current month for the given org. attr_accessor :dbm_host_top99p_sum # Shows the average of all distinct Database Monitoring normalized queries over all hours in the current month for the given org. attr_accessor :dbm_queries_avg_sum # The average task count for Fargate. attr_accessor :fargate_tasks_count_avg # Shows the high-water mark of all Fargate tasks over all hours in the current date for the given org. attr_accessor :fargate_tasks_count_hwm # Shows the 99th percentile of all GCP hosts over all hours in the current date for the given org. attr_accessor :gcp_host_top99p # Shows the 99th percentile of all Heroku dynos over all hours in the current date for the given org. attr_accessor :heroku_host_top99p # The organization id. attr_accessor :id # Shows the high-water mark of incident management monthly active users over all hours in the current date for the given org. attr_accessor :incident_management_monthly_active_users_hwm # Shows the sum of all log events indexed over all hours in the current date for the given org. attr_accessor :indexed_events_count_sum # Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for the given org. attr_accessor :infra_host_top99p # Shows the sum of all log bytes ingested over all hours in the current date for the given org. attr_accessor :ingested_events_bytes_sum # Shows the sum of all IoT devices over all hours in the current date for the given org. attr_accessor :iot_device_agg_sum # Shows the 99th percentile of all IoT devices over all hours in the current date for the given org. attr_accessor :iot_device_top99p_sum # Shows the sum of all mobile lite sessions over all hours in the current date for the given org. attr_accessor :mobile_rum_lite_session_count_sum # Shows the sum of all mobile RUM Sessions on Android over all hours in the current date for the given org. attr_accessor :mobile_rum_session_count_android_sum # Shows the sum of all mobile RUM Sessions on iOS over all hours in the current date for the given org. attr_accessor :mobile_rum_session_count_ios_sum # Shows the sum of all mobile RUM Sessions over all hours in the current date for the given org. attr_accessor :mobile_rum_session_count_sum # Shows the sum of all mobile RUM units over all hours in the current date for the given org. attr_accessor :mobile_rum_units_sum # The organization name. attr_accessor :name # Shows the sum of all Network flows indexed over all hours in the current date for the given org. attr_accessor :netflow_indexed_events_count_sum # Shows the 99th percentile of all distinct Networks hosts over all hours in the current date for the given org. attr_accessor :npm_host_top99p # Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for the given org. attr_accessor :opentelemetry_host_top99p # Shows the 99th percentile of all profiled hosts over all hours in the current date for the given org. attr_accessor :profiling_host_top99p # The organization public id. attr_accessor :public_id # Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current date for the given org. attr_accessor :rum_browser_and_mobile_session_count # Shows the sum of all browser RUM Lite Sessions over all hours in the current date for the given org. attr_accessor :rum_session_count_sum # Shows the sum of RUM Sessions (browser and mobile) over all hours in the current date for the given org. attr_accessor :rum_total_session_count_sum # Shows the sum of all browser and mobile RUM units over all hours in the current date for the given org. attr_accessor :rum_units_sum # Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for the given org. attr_accessor :sds_logs_scanned_bytes_sum # Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for the given org. attr_accessor :sds_total_scanned_bytes_sum # Shows the sum of all Synthetic browser tests over all hours in the current date for the given org. attr_accessor :synthetics_browser_check_calls_count_sum # Shows the sum of all Synthetic API tests over all hours in the current date for the given org. attr_accessor :synthetics_check_calls_count_sum # Shows the sum of all Indexed Spans indexed over all hours in the current date for the given org. attr_accessor :trace_search_indexed_events_count_sum # Shows the sum of all tracing without limits bytes ingested over all hours in the current date for the given org. attr_accessor :twol_ingested_events_bytes_sum # Shows the 99th percentile of all vSphere hosts over all hours in the current date for the given org. attr_accessor :vsphere_host_top99p # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private def self.attribute_map { :'agent_host_top99p' => :'agent_host_top99p', :'apm_azure_app_service_host_top99p' => :'apm_azure_app_service_host_top99p', :'apm_host_top99p' => :'apm_host_top99p', :'audit_logs_lines_indexed_sum' => :'audit_logs_lines_indexed_sum', :'avg_profiled_fargate_tasks' => :'avg_profiled_fargate_tasks', :'aws_host_top99p' => :'aws_host_top99p', :'aws_lambda_func_count' => :'aws_lambda_func_count', :'aws_lambda_invocations_sum' => :'aws_lambda_invocations_sum', :'azure_app_service_top99p' => :'azure_app_service_top99p', :'billable_ingested_bytes_sum' => :'billable_ingested_bytes_sum', :'browser_rum_lite_session_count_sum' => :'browser_rum_lite_session_count_sum', :'browser_rum_replay_session_count_sum' => :'browser_rum_replay_session_count_sum', :'browser_rum_units_sum' => :'browser_rum_units_sum', :'container_avg' => :'container_avg', :'container_hwm' => :'container_hwm', :'cspm_aas_host_top99p' => :'cspm_aas_host_top99p', :'cspm_azure_host_top99p' => :'cspm_azure_host_top99p', :'cspm_container_avg' => :'cspm_container_avg', :'cspm_container_hwm' => :'cspm_container_hwm', :'cspm_host_top99p' => :'cspm_host_top99p', :'custom_ts_avg' => :'custom_ts_avg', :'cws_container_count_avg' => :'cws_container_count_avg', :'cws_host_top99p' => :'cws_host_top99p', :'dbm_host_top99p_sum' => :'dbm_host_top99p_sum', :'dbm_queries_avg_sum' => :'dbm_queries_avg_sum', :'fargate_tasks_count_avg' => :'fargate_tasks_count_avg', :'fargate_tasks_count_hwm' => :'fargate_tasks_count_hwm', :'gcp_host_top99p' => :'gcp_host_top99p', :'heroku_host_top99p' => :'heroku_host_top99p', :'id' => :'id', :'incident_management_monthly_active_users_hwm' => :'incident_management_monthly_active_users_hwm', :'indexed_events_count_sum' => :'indexed_events_count_sum', :'infra_host_top99p' => :'infra_host_top99p', :'ingested_events_bytes_sum' => :'ingested_events_bytes_sum', :'iot_device_agg_sum' => :'iot_device_agg_sum', :'iot_device_top99p_sum' => :'iot_device_top99p_sum', :'mobile_rum_lite_session_count_sum' => :'mobile_rum_lite_session_count_sum', :'mobile_rum_session_count_android_sum' => :'mobile_rum_session_count_android_sum', :'mobile_rum_session_count_ios_sum' => :'mobile_rum_session_count_ios_sum', :'mobile_rum_session_count_sum' => :'mobile_rum_session_count_sum', :'mobile_rum_units_sum' => :'mobile_rum_units_sum', :'name' => :'name', :'netflow_indexed_events_count_sum' => :'netflow_indexed_events_count_sum', :'npm_host_top99p' => :'npm_host_top99p', :'opentelemetry_host_top99p' => :'opentelemetry_host_top99p', :'profiling_host_top99p' => :'profiling_host_top99p', :'public_id' => :'public_id', :'rum_browser_and_mobile_session_count' => :'rum_browser_and_mobile_session_count', :'rum_session_count_sum' => :'rum_session_count_sum', :'rum_total_session_count_sum' => :'rum_total_session_count_sum', :'rum_units_sum' => :'rum_units_sum', :'sds_logs_scanned_bytes_sum' => :'sds_logs_scanned_bytes_sum', :'sds_total_scanned_bytes_sum' => :'sds_total_scanned_bytes_sum', :'synthetics_browser_check_calls_count_sum' => :'synthetics_browser_check_calls_count_sum', :'synthetics_check_calls_count_sum' => :'synthetics_check_calls_count_sum', :'trace_search_indexed_events_count_sum' => :'trace_search_indexed_events_count_sum', :'twol_ingested_events_bytes_sum' => :'twol_ingested_events_bytes_sum', :'vsphere_host_top99p' => :'vsphere_host_top99p' } end # Returns all the JSON keys this model knows about # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. # @!visibility private def self.openapi_types { :'agent_host_top99p' => :'Integer', :'apm_azure_app_service_host_top99p' => :'Integer', :'apm_host_top99p' => :'Integer', :'audit_logs_lines_indexed_sum' => :'Integer', :'avg_profiled_fargate_tasks' => :'Integer', :'aws_host_top99p' => :'Integer', :'aws_lambda_func_count' => :'Integer', :'aws_lambda_invocations_sum' => :'Integer', :'azure_app_service_top99p' => :'Integer', :'billable_ingested_bytes_sum' => :'Integer', :'browser_rum_lite_session_count_sum' => :'Integer', :'browser_rum_replay_session_count_sum' => :'Integer', :'browser_rum_units_sum' => :'Integer', :'container_avg' => :'Integer', :'container_hwm' => :'Integer', :'cspm_aas_host_top99p' => :'Integer', :'cspm_azure_host_top99p' => :'Integer', :'cspm_container_avg' => :'Integer', :'cspm_container_hwm' => :'Integer', :'cspm_host_top99p' => :'Integer', :'custom_ts_avg' => :'Integer', :'cws_container_count_avg' => :'Integer', :'cws_host_top99p' => :'Integer', :'dbm_host_top99p_sum' => :'Integer', :'dbm_queries_avg_sum' => :'Integer', :'fargate_tasks_count_avg' => :'Integer', :'fargate_tasks_count_hwm' => :'Integer', :'gcp_host_top99p' => :'Integer', :'heroku_host_top99p' => :'Integer', :'id' => :'String', :'incident_management_monthly_active_users_hwm' => :'Integer', :'indexed_events_count_sum' => :'Integer', :'infra_host_top99p' => :'Integer', :'ingested_events_bytes_sum' => :'Integer', :'iot_device_agg_sum' => :'Integer', :'iot_device_top99p_sum' => :'Integer', :'mobile_rum_lite_session_count_sum' => :'Integer', :'mobile_rum_session_count_android_sum' => :'Integer', :'mobile_rum_session_count_ios_sum' => :'Integer', :'mobile_rum_session_count_sum' => :'Integer', :'mobile_rum_units_sum' => :'Integer', :'name' => :'String', :'netflow_indexed_events_count_sum' => :'Integer', :'npm_host_top99p' => :'Integer', :'opentelemetry_host_top99p' => :'Integer', :'profiling_host_top99p' => :'Integer', :'public_id' => :'String', :'rum_browser_and_mobile_session_count' => :'Integer', :'rum_session_count_sum' => :'Integer', :'rum_total_session_count_sum' => :'Integer', :'rum_units_sum' => :'Integer', :'sds_logs_scanned_bytes_sum' => :'Integer', :'sds_total_scanned_bytes_sum' => :'Integer', :'synthetics_browser_check_calls_count_sum' => :'Integer', :'synthetics_check_calls_count_sum' => :'Integer', :'trace_search_indexed_events_count_sum' => :'Integer', :'twol_ingested_events_bytes_sum' => :'Integer', :'vsphere_host_top99p' => :'Integer' } end # List of attributes with nullable: true # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object # @param attributes [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSummaryDateOrg` 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::UsageSummaryDateOrg`. 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') self.agent_host_top99p = attributes[:'agent_host_top99p'] end if attributes.key?(:'apm_azure_app_service_host_top99p') self.apm_azure_app_service_host_top99p = attributes[:'apm_azure_app_service_host_top99p'] end if attributes.key?(:'apm_host_top99p') self.apm_host_top99p = attributes[:'apm_host_top99p'] end if attributes.key?(:'audit_logs_lines_indexed_sum') self.audit_logs_lines_indexed_sum = attributes[:'audit_logs_lines_indexed_sum'] end if attributes.key?(:'avg_profiled_fargate_tasks') self.avg_profiled_fargate_tasks = attributes[:'avg_profiled_fargate_tasks'] end if attributes.key?(:'aws_host_top99p') self.aws_host_top99p = attributes[:'aws_host_top99p'] 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') self.azure_app_service_top99p = attributes[:'azure_app_service_top99p'] end if attributes.key?(:'billable_ingested_bytes_sum') self.billable_ingested_bytes_sum = attributes[:'billable_ingested_bytes_sum'] end if attributes.key?(:'browser_rum_lite_session_count_sum') self.browser_rum_lite_session_count_sum = attributes[:'browser_rum_lite_session_count_sum'] end if attributes.key?(:'browser_rum_replay_session_count_sum') self.browser_rum_replay_session_count_sum = attributes[:'browser_rum_replay_session_count_sum'] end if attributes.key?(:'browser_rum_units_sum') self.browser_rum_units_sum = attributes[:'browser_rum_units_sum'] end if attributes.key?(:'container_avg') self.container_avg = attributes[:'container_avg'] end if attributes.key?(:'container_hwm') self.container_hwm = attributes[:'container_hwm'] end if attributes.key?(:'cspm_aas_host_top99p') self.cspm_aas_host_top99p = attributes[:'cspm_aas_host_top99p'] end if attributes.key?(:'cspm_azure_host_top99p') self.cspm_azure_host_top99p = attributes[:'cspm_azure_host_top99p'] end if attributes.key?(:'cspm_container_avg') self.cspm_container_avg = attributes[:'cspm_container_avg'] end if attributes.key?(:'cspm_container_hwm') self.cspm_container_hwm = attributes[:'cspm_container_hwm'] end if attributes.key?(:'cspm_host_top99p') self.cspm_host_top99p = attributes[:'cspm_host_top99p'] end if attributes.key?(:'custom_ts_avg') self.custom_ts_avg = attributes[:'custom_ts_avg'] end if attributes.key?(:'cws_container_count_avg') self.cws_container_count_avg = attributes[:'cws_container_count_avg'] end if attributes.key?(:'cws_host_top99p') self.cws_host_top99p = attributes[:'cws_host_top99p'] end if attributes.key?(:'dbm_host_top99p_sum') self.dbm_host_top99p_sum = attributes[:'dbm_host_top99p_sum'] end if attributes.key?(:'dbm_queries_avg_sum') self.dbm_queries_avg_sum = attributes[:'dbm_queries_avg_sum'] end if attributes.key?(:'fargate_tasks_count_avg') self.fargate_tasks_count_avg = attributes[:'fargate_tasks_count_avg'] end if attributes.key?(:'fargate_tasks_count_hwm') self.fargate_tasks_count_hwm = attributes[:'fargate_tasks_count_hwm'] end if attributes.key?(:'gcp_host_top99p') self.gcp_host_top99p = attributes[:'gcp_host_top99p'] end if attributes.key?(:'heroku_host_top99p') self.heroku_host_top99p = attributes[:'heroku_host_top99p'] end if attributes.key?(:'id') self.id = attributes[:'id'] end if attributes.key?(:'incident_management_monthly_active_users_hwm') self.incident_management_monthly_active_users_hwm = attributes[:'incident_management_monthly_active_users_hwm'] end if attributes.key?(:'indexed_events_count_sum') self.indexed_events_count_sum = attributes[:'indexed_events_count_sum'] end if attributes.key?(:'infra_host_top99p') self.infra_host_top99p = attributes[:'infra_host_top99p'] end if attributes.key?(:'ingested_events_bytes_sum') self.ingested_events_bytes_sum = attributes[:'ingested_events_bytes_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?(:'mobile_rum_lite_session_count_sum') self.mobile_rum_lite_session_count_sum = attributes[:'mobile_rum_lite_session_count_sum'] end if attributes.key?(:'mobile_rum_session_count_android_sum') self.mobile_rum_session_count_android_sum = attributes[:'mobile_rum_session_count_android_sum'] end if attributes.key?(:'mobile_rum_session_count_ios_sum') self.mobile_rum_session_count_ios_sum = attributes[:'mobile_rum_session_count_ios_sum'] end if attributes.key?(:'mobile_rum_session_count_sum') self.mobile_rum_session_count_sum = attributes[:'mobile_rum_session_count_sum'] end if attributes.key?(:'mobile_rum_units_sum') self.mobile_rum_units_sum = attributes[:'mobile_rum_units_sum'] end if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'netflow_indexed_events_count_sum') self.netflow_indexed_events_count_sum = attributes[:'netflow_indexed_events_count_sum'] end if attributes.key?(:'npm_host_top99p') self.npm_host_top99p = attributes[:'npm_host_top99p'] end if attributes.key?(:'opentelemetry_host_top99p') self.opentelemetry_host_top99p = attributes[:'opentelemetry_host_top99p'] end if attributes.key?(:'profiling_host_top99p') self.profiling_host_top99p = attributes[:'profiling_host_top99p'] end if attributes.key?(:'public_id') self.public_id = attributes[:'public_id'] end if attributes.key?(:'rum_browser_and_mobile_session_count') self.rum_browser_and_mobile_session_count = attributes[:'rum_browser_and_mobile_session_count'] end if attributes.key?(:'rum_session_count_sum') self.rum_session_count_sum = attributes[:'rum_session_count_sum'] end if attributes.key?(:'rum_total_session_count_sum') self.rum_total_session_count_sum = attributes[:'rum_total_session_count_sum'] end if attributes.key?(:'rum_units_sum') self.rum_units_sum = attributes[:'rum_units_sum'] end if attributes.key?(:'sds_logs_scanned_bytes_sum') self.sds_logs_scanned_bytes_sum = attributes[:'sds_logs_scanned_bytes_sum'] end if attributes.key?(:'sds_total_scanned_bytes_sum') self.sds_total_scanned_bytes_sum = attributes[:'sds_total_scanned_bytes_sum'] end if attributes.key?(:'synthetics_browser_check_calls_count_sum') self.synthetics_browser_check_calls_count_sum = attributes[:'synthetics_browser_check_calls_count_sum'] end if attributes.key?(:'synthetics_check_calls_count_sum') self.synthetics_check_calls_count_sum = attributes[:'synthetics_check_calls_count_sum'] end if attributes.key?(:'trace_search_indexed_events_count_sum') self.trace_search_indexed_events_count_sum = attributes[:'trace_search_indexed_events_count_sum'] end if attributes.key?(:'twol_ingested_events_bytes_sum') self.twol_ingested_events_bytes_sum = attributes[:'twol_ingested_events_bytes_sum'] end if attributes.key?(:'vsphere_host_top99p') self.vsphere_host_top99p = attributes[:'vsphere_host_top99p'] end end # Show invalid properties with the reasons. Usually used together with valid? # @!visibility private # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid # @!visibility private def valid? true end # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && agent_host_top99p == o.agent_host_top99p && apm_azure_app_service_host_top99p == o.apm_azure_app_service_host_top99p && apm_host_top99p == o.apm_host_top99p && audit_logs_lines_indexed_sum == o.audit_logs_lines_indexed_sum && avg_profiled_fargate_tasks == o.avg_profiled_fargate_tasks && aws_host_top99p == o.aws_host_top99p && aws_lambda_func_count == o.aws_lambda_func_count && aws_lambda_invocations_sum == o.aws_lambda_invocations_sum && azure_app_service_top99p == o.azure_app_service_top99p && billable_ingested_bytes_sum == o.billable_ingested_bytes_sum && browser_rum_lite_session_count_sum == o.browser_rum_lite_session_count_sum && browser_rum_replay_session_count_sum == o.browser_rum_replay_session_count_sum && browser_rum_units_sum == o.browser_rum_units_sum && container_avg == o.container_avg && container_hwm == o.container_hwm && cspm_aas_host_top99p == o.cspm_aas_host_top99p && cspm_azure_host_top99p == o.cspm_azure_host_top99p && cspm_container_avg == o.cspm_container_avg && cspm_container_hwm == o.cspm_container_hwm && cspm_host_top99p == o.cspm_host_top99p && custom_ts_avg == o.custom_ts_avg && cws_container_count_avg == o.cws_container_count_avg && cws_host_top99p == o.cws_host_top99p && dbm_host_top99p_sum == o.dbm_host_top99p_sum && dbm_queries_avg_sum == o.dbm_queries_avg_sum && fargate_tasks_count_avg == o.fargate_tasks_count_avg && fargate_tasks_count_hwm == o.fargate_tasks_count_hwm && gcp_host_top99p == o.gcp_host_top99p && heroku_host_top99p == o.heroku_host_top99p && id == o.id && incident_management_monthly_active_users_hwm == o.incident_management_monthly_active_users_hwm && indexed_events_count_sum == o.indexed_events_count_sum && infra_host_top99p == o.infra_host_top99p && ingested_events_bytes_sum == o.ingested_events_bytes_sum && iot_device_agg_sum == o.iot_device_agg_sum && iot_device_top99p_sum == o.iot_device_top99p_sum && mobile_rum_lite_session_count_sum == o.mobile_rum_lite_session_count_sum && mobile_rum_session_count_android_sum == o.mobile_rum_session_count_android_sum && mobile_rum_session_count_ios_sum == o.mobile_rum_session_count_ios_sum && mobile_rum_session_count_sum == o.mobile_rum_session_count_sum && mobile_rum_units_sum == o.mobile_rum_units_sum && name == o.name && netflow_indexed_events_count_sum == o.netflow_indexed_events_count_sum && npm_host_top99p == o.npm_host_top99p && opentelemetry_host_top99p == o.opentelemetry_host_top99p && profiling_host_top99p == o.profiling_host_top99p && public_id == o.public_id && rum_browser_and_mobile_session_count == o.rum_browser_and_mobile_session_count && rum_session_count_sum == o.rum_session_count_sum && rum_total_session_count_sum == o.rum_total_session_count_sum && rum_units_sum == o.rum_units_sum && sds_logs_scanned_bytes_sum == o.sds_logs_scanned_bytes_sum && sds_total_scanned_bytes_sum == o.sds_total_scanned_bytes_sum && synthetics_browser_check_calls_count_sum == o.synthetics_browser_check_calls_count_sum && synthetics_check_calls_count_sum == o.synthetics_check_calls_count_sum && trace_search_indexed_events_count_sum == o.trace_search_indexed_events_count_sum && twol_ingested_events_bytes_sum == o.twol_ingested_events_bytes_sum && vsphere_host_top99p == o.vsphere_host_top99p end # @see the `==` method # @param o [Object] Object to be compared # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code # @!visibility private def hash [agent_host_top99p, apm_azure_app_service_host_top99p, apm_host_top99p, audit_logs_lines_indexed_sum, avg_profiled_fargate_tasks, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, browser_rum_lite_session_count_sum, browser_rum_replay_session_count_sum, browser_rum_units_sum, container_avg, container_hwm, cspm_aas_host_top99p, cspm_azure_host_top99p, cspm_container_avg, cspm_container_hwm, cspm_host_top99p, custom_ts_avg, cws_container_count_avg, cws_host_top99p, dbm_host_top99p_sum, dbm_queries_avg_sum, fargate_tasks_count_avg, fargate_tasks_count_hwm, gcp_host_top99p, heroku_host_top99p, id, incident_management_monthly_active_users_hwm, indexed_events_count_sum, infra_host_top99p, ingested_events_bytes_sum, iot_device_agg_sum, iot_device_top99p_sum, mobile_rum_lite_session_count_sum, mobile_rum_session_count_android_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_sum, mobile_rum_units_sum, name, netflow_indexed_events_count_sum, npm_host_top99p, opentelemetry_host_top99p, profiling_host_top99p, public_id, rum_browser_and_mobile_session_count, rum_session_count_sum, rum_total_session_count_sum, rum_units_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, vsphere_host_top99p].hash end # Builds the object from hash # @param attributes [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end # Builds the object from hash # @param attributes [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private 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 # Deserializes the data based on type # @param type [string] Data type # @param value [string] Value to be deserialized # @return [Object] Deserialized data # @!visibility private 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<(?.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?.+?), (?.+)>\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) res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) if res.instance_of? DatadogAPIClient::V1::UnparsedObject self._unparsed = true end res end end # Returns the string representation of the object # @return [String] String presentation of the object # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash # @!visibility private 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 # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value # @param value [Object] value Any valid value # @return [Hash] Returns the value in the form of hash # @!visibility private 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 end end