Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove lambda_usage and lambda_percentage from usage API #827

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
22 changes: 0 additions & 22 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/datadog_api_client/v1/api/usage_metering_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -830,15 +830,15 @@ 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
allowable_values = ['desc', 'asc']
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
Expand Down
2 changes: 0 additions & 2 deletions lib/datadog_api_client/v1/models/usage_attribution_sort.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
26 changes: 1 addition & 25 deletions lib/datadog_api_client/v1/models/usage_attribution_values.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 &&
Expand All @@ -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