diff --git a/.apigentools-info b/.apigentools-info index 36c0cb12308c..e512dde0dbd2 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.2", - "regenerated": "2022-03-23 13:55:02.401962", - "spec_repo_commit": "2b7dea77" + "regenerated": "2022-03-25 20:48:29.423080", + "spec_repo_commit": "e401bea6" }, "v2": { "apigentools_version": "1.6.2", - "regenerated": "2022-03-23 13:55:02.421340", - "spec_repo_commit": "2b7dea77" + "regenerated": "2022-03-25 20:48:29.443309", + "spec_repo_commit": "e401bea6" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index d884e9d359e1..7aff45d8d265 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -12893,8 +12893,6 @@ components: - lambda_functions_percentage - lambda_invocations_usage - lambda_invocations_percentage - - lambda_usage - - lambda_percentage - estimated_indexed_logs_usage - estimated_indexed_logs_percentage type: string @@ -12919,8 +12917,6 @@ components: - LAMBDA_FUNCTIONS_PERCENTAGE - LAMBDA_INVOCATIONS_USAGE - LAMBDA_INVOCATIONS_PERCENTAGE - - LAMBDA_USAGE - - LAMBDA_PERCENTAGE - ESTIMATED_INDEXED_LOGS_USAGE - ESTIMATED_INDEXED_LOGS_PERCENTAGE UsageAttributionSupportedMetrics: @@ -12936,14 +12932,12 @@ components: - infra_host_usage - custom_timeseries_percentage - container_percentage - - lambda_usage - api_usage - apm_host_percentage - infra_host_percentage - snmp_usage - browser_percentage - api_percentage - - lambda_percentage - npm_host_usage - lambda_functions_usage - lambda_functions_percentage @@ -12973,14 +12967,12 @@ components: - INFRA_HOST_USAGE - CUSTOM_TIMESERIES_PERCENTAGE - CONTAINER_PERCENTAGE - - LAMBDA_USAGE - API_USAGE - APM_HOST_PERCENTAGE - INFRA_HOST_PERCENTAGE - SNMP_USAGE - BROWSER_PERCENTAGE - API_PERCENTAGE - - LAMBDA_PERCENTAGE - NPM_HOST_USAGE - LAMBDA_FUNCTIONS_USAGE - LAMBDA_FUNCTIONS_PERCENTAGE @@ -13138,20 +13130,6 @@ components: description: The Lambda invocation usage by tag(s). format: double type: number - lambda_percentage: - description: 'The percentage of Lambda function usage by tag(s). - - - **Note** this field is deprecated. Use lambda_functions_percentage instead.' - format: double - type: number - lambda_usage: - description: 'The Lambda function usage by tag(s). - - - **Note** this field is deprecated. Use lambda_functions_usage instead.' - format: double - type: number npm_host_percentage: description: The percentage of network host usage by tag(s). format: double diff --git a/lib/datadog_api_client/v1/api/usage_metering_api.rb b/lib/datadog_api_client/v1/api/usage_metering_api.rb index 780bee5068c1..20badc3a8a39 100644 --- a/lib/datadog_api_client/v1/api/usage_metering_api.rb +++ b/lib/datadog_api_client/v1/api/usage_metering_api.rb @@ -830,7 +830,7 @@ def get_usage_attribution_with_http_info(start_month, fields, opts = {}) fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_usage_attribution" end # verify enum value - allowable_values = ['custom_timeseries_usage', 'container_usage', 'snmp_percentage', 'apm_host_usage', 'browser_usage', 'npm_host_percentage', 'infra_host_usage', 'custom_timeseries_percentage', 'container_percentage', 'lambda_usage', 'api_usage', 'apm_host_percentage', 'infra_host_percentage', 'snmp_usage', 'browser_percentage', 'api_percentage', 'lambda_percentage', 'npm_host_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'fargate_usage', 'fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'dbm_hosts_usage', 'dbm_hosts_percentage', 'dbm_queries_usage', 'dbm_queries_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', '*'] + allowable_values = ['custom_timeseries_usage', 'container_usage', 'snmp_percentage', 'apm_host_usage', 'browser_usage', 'npm_host_percentage', 'infra_host_usage', 'custom_timeseries_percentage', 'container_percentage', 'api_usage', 'apm_host_percentage', 'infra_host_percentage', 'snmp_usage', 'browser_percentage', 'api_percentage', 'npm_host_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'fargate_usage', 'fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'dbm_hosts_usage', 'dbm_hosts_percentage', 'dbm_queries_usage', 'dbm_queries_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', '*'] if @api_client.config.client_side_validation && !allowable_values.include?(fields) fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}" end @@ -838,7 +838,7 @@ def get_usage_attribution_with_http_info(start_month, fields, opts = {}) if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction']) fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}" end - allowable_values = ['api_percentage', 'snmp_usage', 'apm_host_usage', 'api_usage', 'container_usage', 'custom_timeseries_percentage', 'container_percentage', 'apm_host_percentage', 'npm_host_percentage', 'browser_percentage', 'browser_usage', 'infra_host_percentage', 'snmp_percentage', 'npm_host_usage', 'infra_host_usage', 'custom_timeseries_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'lambda_usage', 'lambda_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage'] + allowable_values = ['api_percentage', 'snmp_usage', 'apm_host_usage', 'api_usage', 'container_usage', 'custom_timeseries_percentage', 'container_percentage', 'apm_host_percentage', 'npm_host_percentage', 'browser_percentage', 'browser_usage', 'infra_host_percentage', 'snmp_percentage', 'npm_host_usage', 'infra_host_usage', 'custom_timeseries_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage'] if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name']) fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}" end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_sort.rb b/lib/datadog_api_client/v1/models/usage_attribution_sort.rb index ba8ecbd2f515..60a529910ccf 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_sort.rb @@ -41,8 +41,6 @@ class UsageAttributionSort LAMBDA_FUNCTIONS_PERCENTAGE = "lambda_functions_percentage".freeze LAMBDA_INVOCATIONS_USAGE = "lambda_invocations_usage".freeze LAMBDA_INVOCATIONS_PERCENTAGE = "lambda_invocations_percentage".freeze - LAMBDA_USAGE = "lambda_usage".freeze - LAMBDA_PERCENTAGE = "lambda_percentage".freeze ESTIMATED_INDEXED_LOGS_USAGE = "estimated_indexed_logs_usage".freeze ESTIMATED_INDEXED_LOGS_PERCENTAGE = "estimated_indexed_logs_percentage".freeze end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb b/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb index 34a42c90ba95..ca31aaa92251 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb @@ -30,14 +30,12 @@ class UsageAttributionSupportedMetrics INFRA_HOST_USAGE = "infra_host_usage".freeze CUSTOM_TIMESERIES_PERCENTAGE = "custom_timeseries_percentage".freeze CONTAINER_PERCENTAGE = "container_percentage".freeze - LAMBDA_USAGE = "lambda_usage".freeze API_USAGE = "api_usage".freeze APM_HOST_PERCENTAGE = "apm_host_percentage".freeze INFRA_HOST_PERCENTAGE = "infra_host_percentage".freeze SNMP_USAGE = "snmp_usage".freeze BROWSER_PERCENTAGE = "browser_percentage".freeze API_PERCENTAGE = "api_percentage".freeze - LAMBDA_PERCENTAGE = "lambda_percentage".freeze NPM_HOST_USAGE = "npm_host_usage".freeze LAMBDA_FUNCTIONS_USAGE = "lambda_functions_usage".freeze LAMBDA_FUNCTIONS_PERCENTAGE = "lambda_functions_percentage".freeze diff --git a/lib/datadog_api_client/v1/models/usage_attribution_values.rb b/lib/datadog_api_client/v1/models/usage_attribution_values.rb index 5ed630f53c35..a0b0a97110ba 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_values.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_values.rb @@ -115,16 +115,6 @@ class UsageAttributionValues # The Lambda invocation usage by tag(s). attr_accessor :lambda_invocations_usage - # The percentage of Lambda function usage by tag(s). - # - # **Note** this field is deprecated. Use lambda_functions_percentage instead. - attr_accessor :lambda_percentage - - # The Lambda function usage by tag(s). - # - # **Note** this field is deprecated. Use lambda_functions_usage instead. - attr_accessor :lambda_usage - # The percentage of network host usage by tag(s). attr_accessor :npm_host_percentage @@ -183,8 +173,6 @@ def self.attribute_map :'lambda_functions_usage' => :'lambda_functions_usage', :'lambda_invocations_percentage' => :'lambda_invocations_percentage', :'lambda_invocations_usage' => :'lambda_invocations_usage', - :'lambda_percentage' => :'lambda_percentage', - :'lambda_usage' => :'lambda_usage', :'npm_host_percentage' => :'npm_host_percentage', :'npm_host_usage' => :'npm_host_usage', :'profiled_container_percentage' => :'profiled_container_percentage', @@ -236,8 +224,6 @@ def self.openapi_types :'lambda_functions_usage' => :'Float', :'lambda_invocations_percentage' => :'Float', :'lambda_invocations_usage' => :'Float', - :'lambda_percentage' => :'Float', - :'lambda_usage' => :'Float', :'npm_host_percentage' => :'Float', :'npm_host_usage' => :'Float', :'profiled_container_percentage' => :'Float', @@ -392,14 +378,6 @@ def initialize(attributes = {}) self.lambda_invocations_usage = attributes[:'lambda_invocations_usage'] end - if attributes.key?(:'lambda_percentage') - self.lambda_percentage = attributes[:'lambda_percentage'] - end - - if attributes.key?(:'lambda_usage') - self.lambda_usage = attributes[:'lambda_usage'] - end - if attributes.key?(:'npm_host_percentage') self.npm_host_percentage = attributes[:'npm_host_percentage'] end @@ -484,8 +462,6 @@ def ==(o) lambda_functions_usage == o.lambda_functions_usage && lambda_invocations_percentage == o.lambda_invocations_percentage && lambda_invocations_usage == o.lambda_invocations_usage && - lambda_percentage == o.lambda_percentage && - lambda_usage == o.lambda_usage && npm_host_percentage == o.npm_host_percentage && npm_host_usage == o.npm_host_usage && profiled_container_percentage == o.profiled_container_percentage && @@ -507,7 +483,7 @@ def eql?(o) # @return [Integer] Hash code # @!visibility private def hash - [api_percentage, api_usage, apm_host_percentage, apm_host_usage, browser_percentage, browser_usage, container_percentage, container_usage, cspm_container_percentage, cspm_container_usage, cspm_host_percentage, cspm_host_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_container_percentage, cws_container_usage, cws_host_percentage, cws_host_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, infra_host_percentage, infra_host_usage, lambda_functions_percentage, lambda_functions_usage, lambda_invocations_percentage, lambda_invocations_usage, lambda_percentage, lambda_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_hosts_percentage, profiled_hosts_usage, snmp_percentage, snmp_usage].hash + [api_percentage, api_usage, apm_host_percentage, apm_host_usage, browser_percentage, browser_usage, container_percentage, container_usage, cspm_container_percentage, cspm_container_usage, cspm_host_percentage, cspm_host_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_container_percentage, cws_container_usage, cws_host_percentage, cws_host_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, infra_host_percentage, infra_host_usage, lambda_functions_percentage, lambda_functions_usage, lambda_invocations_percentage, lambda_invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_hosts_percentage, profiled_hosts_usage, snmp_percentage, snmp_usage].hash end end end