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

Add Usage Metering Cont Usage fields #964

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.4",
"regenerated": "2022-12-28 16:10:46.984442",
"spec_repo_commit": "b2d7d94f"
"regenerated": "2022-12-28 17:38:35.211249",
"spec_repo_commit": "8cc05e11"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2022-12-28 16:10:46.996173",
"spec_repo_commit": "b2d7d94f"
"regenerated": "2022-12-28 17:38:35.226977",
"spec_repo_commit": "8cc05e11"
}
}
}
15 changes: 15 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3670,6 +3670,7 @@ components:
- profiled_host_usage
- snmp_usage
- estimated_rum_sessions_usage
- cont_usage
type: string
x-enum-varnames:
- API_USAGE
Expand Down Expand Up @@ -3700,6 +3701,7 @@ components:
- PROFILED_HOST_USAGE
- SNMP_USAGE
- ESTIMATED_RUM_SESSIONS_USAGE
- CONT_USAGE
IFrameWidgetDefinition:
description: The iframe widget allows you to embed a portion of any other web
page on your dashboard. Only available on FREE layout dashboards.
Expand Down Expand Up @@ -7028,6 +7030,8 @@ components:
- snmp_percentage
- estimated_rum_sessions_usage
- estimated_rum_sessions_percentage
- cont_usage
- cont_percentage
- '*'
type: string
x-enum-varnames:
Expand Down Expand Up @@ -7087,6 +7091,8 @@ components:
- SNMP_PERCENTAGE
- ESTIMATED_RUM_SESSIONS_USAGE
- ESTIMATED_RUM_SESSIONS_PERCENTAGE
- CONT_USAGE
- CONT_PERCENTAGE
- ALL
MonthlyUsageAttributionValues:
description: Fields in Usage Summary by tag(s).
Expand Down Expand Up @@ -7142,6 +7148,15 @@ components:
description: The synthetic browser test usage by tag(s).
format: double
type: number
cont_percentage:
description: The percentage of container usage without the Datadog Agent
by tag(s).
format: double
type: number
cont_usage:
description: The container usage without Datadog agent by tag(s).
format: double
type: number
container_percentage:
description: The percentage of container usage by tag(s).
format: double
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export type HourlyUsageAttributionUsageType =
| typeof PROFILED_HOST_USAGE
| typeof SNMP_USAGE
| typeof ESTIMATED_RUM_SESSIONS_USAGE
| typeof CONT_USAGE
| UnparsedObject;
export const API_USAGE = "api_usage";
export const APM_FARGATE_USAGE = "apm_fargate_usage";
Expand Down Expand Up @@ -68,3 +69,4 @@ export const PROFILED_CONTAINER_USAGE = "profiled_container_usage";
export const PROFILED_HOST_USAGE = "profiled_host_usage";
export const SNMP_USAGE = "snmp_usage";
export const ESTIMATED_RUM_SESSIONS_USAGE = "estimated_rum_sessions_usage";
export const CONT_USAGE = "cont_usage";
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ export type MonthlyUsageAttributionSupportedMetrics =
| typeof SNMP_PERCENTAGE
| typeof ESTIMATED_RUM_SESSIONS_USAGE
| typeof ESTIMATED_RUM_SESSIONS_PERCENTAGE
| typeof CONT_USAGE
| typeof CONT_PERCENTAGE
| typeof ALL
| UnparsedObject;
export const API_USAGE = "api_usage";
Expand Down Expand Up @@ -130,4 +132,6 @@ export const SNMP_PERCENTAGE = "snmp_percentage";
export const ESTIMATED_RUM_SESSIONS_USAGE = "estimated_rum_sessions_usage";
export const ESTIMATED_RUM_SESSIONS_PERCENTAGE =
"estimated_rum_sessions_percentage";
export const CONT_USAGE = "cont_usage";
export const CONT_PERCENTAGE = "cont_percentage";
export const ALL = "*";
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ export class MonthlyUsageAttributionValues {
* The synthetic browser test usage by tag(s).
*/
"browserUsage"?: number;
/**
* The percentage of container usage without the Datadog Agent by tag(s).
*/
"contPercentage"?: number;
/**
* The container usage without Datadog agent by tag(s).
*/
"contUsage"?: number;
/**
* The percentage of container usage by tag(s).
*/
Expand Down Expand Up @@ -304,6 +312,16 @@ export class MonthlyUsageAttributionValues {
type: "number",
format: "double",
},
contPercentage: {
baseName: "cont_percentage",
type: "number",
format: "double",
},
contUsage: {
baseName: "cont_usage",
type: "number",
format: "double",
},
containerPercentage: {
baseName: "container_percentage",
type: "number",
Expand Down
3 changes: 3 additions & 0 deletions packages/datadog-api-client-v1/models/ObjectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ const enumsMap: { [key: string]: any[] } = {
"profiled_host_usage",
"snmp_usage",
"estimated_rum_sessions_usage",
"cont_usage",
],
IFrameWidgetDefinitionType: ["iframe"],
ImageWidgetDefinitionType: ["image"],
Expand Down Expand Up @@ -858,6 +859,8 @@ const enumsMap: { [key: string]: any[] } = {
"snmp_percentage",
"estimated_rum_sessions_usage",
"estimated_rum_sessions_percentage",
"cont_usage",
"cont_percentage",
"*",
],
NoteWidgetDefinitionType: ["note"],
Expand Down