Skip to content

Commit

Permalink
Add estimated rum sessions usage types to UA enums (#950)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Dec 23, 2022
1 parent 8db36db commit c50cf90
Show file tree
Hide file tree
Showing 9 changed files with 100 additions and 4 deletions.
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-23 14:08:47.699509",
"spec_repo_commit": "c3b2f174"
"regenerated": "2022-12-23 16:48:49.357745",
"spec_repo_commit": "1e3acf42"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2022-12-23 14:08:47.710975",
"spec_repo_commit": "c3b2f174"
"regenerated": "2022-12-23 16:48:49.371587",
"spec_repo_commit": "1e3acf42"
}
}
}
34 changes: 34 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3669,6 +3669,7 @@ components:
- profiled_container_usage
- profiled_host_usage
- snmp_usage
- estimated_rum_sessions_usage
type: string
x-enum-varnames:
- API_USAGE
Expand Down Expand Up @@ -3698,6 +3699,7 @@ components:
- PROFILED_CONTAINER_USAGE
- PROFILED_HOST_USAGE
- SNMP_USAGE
- ESTIMATED_RUM_SESSIONS_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 @@ -7024,6 +7026,8 @@ components:
- profiled_host_percentage
- snmp_usage
- snmp_percentage
- estimated_rum_sessions_usage
- estimated_rum_sessions_percentage
- '*'
type: string
x-enum-varnames:
Expand Down Expand Up @@ -7081,6 +7085,8 @@ components:
- PROFILED_HOST_PERCENTAGE
- SNMP_USAGE
- SNMP_PERCENTAGE
- ESTIMATED_RUM_SESSIONS_USAGE
- ESTIMATED_RUM_SESSIONS_PERCENTAGE
- ALL
MonthlyUsageAttributionValues:
description: Fields in Usage Summary by tag(s).
Expand Down Expand Up @@ -7241,6 +7247,16 @@ components:
in private beta.
format: double
type: number
estimated_rum_sessions_percentage:
description: The percentage of estimated rum sessions usage by tag(s). This
field is in private beta.
format: double
type: number
estimated_rum_sessions_usage:
description: The estimated rum sessions usage by tag(s). This field is in
private beta.
format: double
type: number
fargate_percentage:
description: The percentage of Fargate usage by tags.
format: double
Expand Down Expand Up @@ -14508,6 +14524,8 @@ components:
- apm_fargate_percentage
- appsec_fargate_usage
- appsec_fargate_percentage
- estimated_rum_usage_attribution_usage
- estimated_rum_usage_attribution_percentage
type: string
x-enum-varnames:
- API_PERCENTAGE
Expand Down Expand Up @@ -14544,6 +14562,8 @@ components:
- APM_FARGATE_PERCENTAGE
- APPSEC_FARGATE_USAGE
- APPSEC_FARGATE_PERCENTAGE
- ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE
- ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE
UsageAttributionSupportedMetrics:
description: Supported fields for usage attribution requests (valid requests
contain one or more metrics, or `*` for all).
Expand Down Expand Up @@ -14592,6 +14612,8 @@ components:
- apm_fargate_percentage
- appsec_fargate_usage
- appsec_fargate_percentage
- estimated_rum_usage_attribution_usage
- estimated_rum_usage_attribution_percentage
- '*'
type: string
x-enum-varnames:
Expand Down Expand Up @@ -14639,6 +14661,8 @@ components:
- APM_FARGATE_PERCENTAGE
- APPSEC_FARGATE_USAGE
- APPSEC_FARGATE_PERCENTAGE
- ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE
- ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE
- ALL
UsageAttributionTagNames:
additionalProperties:
Expand Down Expand Up @@ -14830,6 +14854,16 @@ components:
is in private beta.
format: double
type: number
estimated_rum_sessions_percentage:
description: The percentage of estimated rum sessions usage by tag(s). This
field is in private beta.
format: double
type: number
estimated_rum_sessions_usage:
description: The estimated rum sessions usage by tag(s). This field is in
private beta.
format: double
type: number
infra_host_percentage:
description: The percentage of infrastructure host usage by tag(s).
format: double
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export type HourlyUsageAttributionUsageType =
| typeof PROFILED_CONTAINER_USAGE
| typeof PROFILED_HOST_USAGE
| typeof SNMP_USAGE
| typeof ESTIMATED_RUM_SESSIONS_USAGE
| UnparsedObject;
export const API_USAGE = "api_usage";
export const APM_FARGATE_USAGE = "apm_fargate_usage";
Expand Down Expand Up @@ -66,3 +67,4 @@ export const NPM_HOST_USAGE = "npm_host_usage";
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";
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ export type MonthlyUsageAttributionSupportedMetrics =
| typeof PROFILED_HOST_PERCENTAGE
| typeof SNMP_USAGE
| typeof SNMP_PERCENTAGE
| typeof ESTIMATED_RUM_SESSIONS_USAGE
| typeof ESTIMATED_RUM_SESSIONS_PERCENTAGE
| typeof ALL
| UnparsedObject;
export const API_USAGE = "api_usage";
Expand Down Expand Up @@ -125,4 +127,7 @@ export const PROFILED_HOST_USAGE = "profiled_host_usage";
export const PROFILED_HOST_PERCENTAGE = "profiled_host_percentage";
export const SNMP_USAGE = "snmp_usage";
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 ALL = "*";
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,14 @@ export class MonthlyUsageAttributionValues {
* The estimated ingested spans usage by tag(s). This field is in private beta.
*/
"estimatedIngestedSpansUsage"?: number;
/**
* The percentage of estimated rum sessions usage by tag(s). This field is in private beta.
*/
"estimatedRumSessionsPercentage"?: number;
/**
* The estimated rum sessions usage by tag(s). This field is in private beta.
*/
"estimatedRumSessionsUsage"?: number;
/**
* The percentage of Fargate usage by tags.
*/
Expand Down Expand Up @@ -416,6 +424,16 @@ export class MonthlyUsageAttributionValues {
type: "number",
format: "double",
},
estimatedRumSessionsPercentage: {
baseName: "estimated_rum_sessions_percentage",
type: "number",
format: "double",
},
estimatedRumSessionsUsage: {
baseName: "estimated_rum_sessions_usage",
type: "number",
format: "double",
},
fargatePercentage: {
baseName: "fargate_percentage",
type: "number",
Expand Down
7 changes: 7 additions & 0 deletions packages/datadog-api-client-v1/models/ObjectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,7 @@ const enumsMap: { [key: string]: any[] } = {
"profiled_container_usage",
"profiled_host_usage",
"snmp_usage",
"estimated_rum_sessions_usage",
],
IFrameWidgetDefinitionType: ["iframe"],
ImageWidgetDefinitionType: ["image"],
Expand Down Expand Up @@ -855,6 +856,8 @@ const enumsMap: { [key: string]: any[] } = {
"profiled_host_percentage",
"snmp_usage",
"snmp_percentage",
"estimated_rum_sessions_usage",
"estimated_rum_sessions_percentage",
"*",
],
NoteWidgetDefinitionType: ["note"],
Expand Down Expand Up @@ -1175,6 +1178,8 @@ const enumsMap: { [key: string]: any[] } = {
"apm_fargate_percentage",
"appsec_fargate_usage",
"appsec_fargate_percentage",
"estimated_rum_usage_attribution_usage",
"estimated_rum_usage_attribution_percentage",
],
UsageAttributionSupportedMetrics: [
"custom_timeseries_usage",
Expand Down Expand Up @@ -1221,6 +1226,8 @@ const enumsMap: { [key: string]: any[] } = {
"apm_fargate_percentage",
"appsec_fargate_usage",
"appsec_fargate_percentage",
"estimated_rum_usage_attribution_usage",
"estimated_rum_usage_attribution_percentage",
"*",
],
UsageMetricCategory: ["standard", "custom"],
Expand Down
6 changes: 6 additions & 0 deletions packages/datadog-api-client-v1/models/UsageAttributionSort.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export type UsageAttributionSort =
| typeof APM_FARGATE_PERCENTAGE
| typeof APPSEC_FARGATE_USAGE
| typeof APPSEC_FARGATE_PERCENTAGE
| typeof ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE
| typeof ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE
| UnparsedObject;
export const API_PERCENTAGE = "api_percentage";
export const SNMP_USAGE = "snmp_usage";
Expand Down Expand Up @@ -84,3 +86,7 @@ export const APM_FARGATE_USAGE = "apm_fargate_usage";
export const APM_FARGATE_PERCENTAGE = "apm_fargate_percentage";
export const APPSEC_FARGATE_USAGE = "appsec_fargate_usage";
export const APPSEC_FARGATE_PERCENTAGE = "appsec_fargate_percentage";
export const ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE =
"estimated_rum_usage_attribution_usage";
export const ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE =
"estimated_rum_usage_attribution_percentage";
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export type UsageAttributionSupportedMetrics =
| typeof APM_FARGATE_PERCENTAGE
| typeof APPSEC_FARGATE_USAGE
| typeof APPSEC_FARGATE_PERCENTAGE
| typeof ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE
| typeof ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE
| typeof ALL
| UnparsedObject;
export const CUSTOM_TIMESERIES_USAGE = "custom_timeseries_usage";
Expand Down Expand Up @@ -105,4 +107,8 @@ export const APM_FARGATE_USAGE = "apm_fargate_usage";
export const APM_FARGATE_PERCENTAGE = "apm_fargate_percentage";
export const APPSEC_FARGATE_USAGE = "appsec_fargate_usage";
export const APPSEC_FARGATE_PERCENTAGE = "appsec_fargate_percentage";
export const ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE =
"estimated_rum_usage_attribution_usage";
export const ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE =
"estimated_rum_usage_attribution_percentage";
export const ALL = "*";
18 changes: 18 additions & 0 deletions packages/datadog-api-client-v1/models/UsageAttributionValues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,14 @@ export class UsageAttributionValues {
* The estimated ingested spans usage by tag(s). Note this field is in private beta.
*/
"estimatedIngestedSpansUsage"?: number;
/**
* The percentage of estimated rum sessions usage by tag(s). This field is in private beta.
*/
"estimatedRumSessionsPercentage"?: number;
/**
* The estimated rum sessions usage by tag(s). This field is in private beta.
*/
"estimatedRumSessionsUsage"?: number;
/**
* The percentage of infrastructure host usage by tag(s).
*/
Expand Down Expand Up @@ -400,6 +408,16 @@ export class UsageAttributionValues {
type: "number",
format: "double",
},
estimatedRumSessionsPercentage: {
baseName: "estimated_rum_sessions_percentage",
type: "number",
format: "double",
},
estimatedRumSessionsUsage: {
baseName: "estimated_rum_sessions_usage",
type: "number",
format: "double",
},
infraHostPercentage: {
baseName: "infra_host_percentage",
type: "number",
Expand Down

0 comments on commit c50cf90

Please sign in to comment.