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 #602

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-25 15:29:48.241851",
"spec_repo_commit": "21c754c0"
"regenerated": "2022-03-25 20:48:28.119080",
"spec_repo_commit": "e401bea6"
},
"v2": {
"apigentools_version": "1.6.2",
"regenerated": "2022-03-25 15:29:48.259537",
"spec_repo_commit": "21c754c0"
"regenerated": "2022-03-25 20:48:28.136587",
"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: 0 additions & 4 deletions packages/datadog-api-client-v1/models/ObjectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1014,8 +1014,6 @@ const enumsMap: { [key: string]: any[] } = {
"lambda_functions_percentage",
"lambda_invocations_usage",
"lambda_invocations_percentage",
"lambda_usage",
"lambda_percentage",
"estimated_indexed_logs_usage",
"estimated_indexed_logs_percentage",
],
Expand All @@ -1029,14 +1027,12 @@ const enumsMap: { [key: string]: any[] } = {
"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
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ export type UsageAttributionSort =
| typeof LAMBDA_FUNCTIONS_PERCENTAGE
| typeof LAMBDA_INVOCATIONS_USAGE
| typeof LAMBDA_INVOCATIONS_PERCENTAGE
| typeof LAMBDA_USAGE
| typeof LAMBDA_PERCENTAGE
| typeof ESTIMATED_INDEXED_LOGS_USAGE
| typeof ESTIMATED_INDEXED_LOGS_PERCENTAGE;
export const API_PERCENTAGE = "api_percentage";
Expand All @@ -53,8 +51,6 @@ export const LAMBDA_FUNCTIONS_USAGE = "lambda_functions_usage";
export const LAMBDA_FUNCTIONS_PERCENTAGE = "lambda_functions_percentage";
export const LAMBDA_INVOCATIONS_USAGE = "lambda_invocations_usage";
export const LAMBDA_INVOCATIONS_PERCENTAGE = "lambda_invocations_percentage";
export const LAMBDA_USAGE = "lambda_usage";
export const LAMBDA_PERCENTAGE = "lambda_percentage";
export const ESTIMATED_INDEXED_LOGS_USAGE = "estimated_indexed_logs_usage";
export const ESTIMATED_INDEXED_LOGS_PERCENTAGE =
"estimated_indexed_logs_percentage";
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@ export type UsageAttributionSupportedMetrics =
| typeof INFRA_HOST_USAGE
| typeof CUSTOM_TIMESERIES_PERCENTAGE
| typeof CONTAINER_PERCENTAGE
| typeof LAMBDA_USAGE
| typeof API_USAGE
| typeof APM_HOST_PERCENTAGE
| typeof INFRA_HOST_PERCENTAGE
| typeof SNMP_USAGE
| typeof BROWSER_PERCENTAGE
| typeof API_PERCENTAGE
| typeof LAMBDA_PERCENTAGE
| typeof NPM_HOST_USAGE
| typeof LAMBDA_FUNCTIONS_USAGE
| typeof LAMBDA_FUNCTIONS_PERCENTAGE
Expand Down Expand Up @@ -53,14 +51,12 @@ export const NPM_HOST_PERCENTAGE = "npm_host_percentage";
export const INFRA_HOST_USAGE = "infra_host_usage";
export const CUSTOM_TIMESERIES_PERCENTAGE = "custom_timeseries_percentage";
export const CONTAINER_PERCENTAGE = "container_percentage";
export const LAMBDA_USAGE = "lambda_usage";
export const API_USAGE = "api_usage";
export const APM_HOST_PERCENTAGE = "apm_host_percentage";
export const INFRA_HOST_PERCENTAGE = "infra_host_percentage";
export const SNMP_USAGE = "snmp_usage";
export const BROWSER_PERCENTAGE = "browser_percentage";
export const API_PERCENTAGE = "api_percentage";
export const LAMBDA_PERCENTAGE = "lambda_percentage";
export const NPM_HOST_USAGE = "npm_host_usage";
export const LAMBDA_FUNCTIONS_USAGE = "lambda_functions_usage";
export const LAMBDA_FUNCTIONS_PERCENTAGE = "lambda_functions_percentage";
Expand Down
18 changes: 0 additions & 18 deletions packages/datadog-api-client-v1/models/UsageAttributionValues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,6 @@ export class UsageAttributionValues {
* The Lambda invocation usage by tag(s).
*/
"lambdaInvocationsUsage"?: number;
/**
* The percentage of Lambda function usage by tag(s). **Note** this field is deprecated. Use lambda_functions_percentage instead.
*/
"lambdaPercentage"?: number;
/**
* The Lambda function usage by tag(s). **Note** this field is deprecated. Use lambda_functions_usage instead.
*/
"lambdaUsage"?: number;
/**
* The percentage of network host usage by tag(s).
*/
Expand Down Expand Up @@ -335,16 +327,6 @@ export class UsageAttributionValues {
type: "number",
format: "double",
},
lambdaPercentage: {
baseName: "lambda_percentage",
type: "number",
format: "double",
},
lambdaUsage: {
baseName: "lambda_usage",
type: "number",
format: "double",
},
npmHostPercentage: {
baseName: "npm_host_percentage",
type: "number",
Expand Down