Skip to content

Commit

Permalink
Add universal service monitoring to usage metering API (#1079)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Apr 4, 2023
1 parent 73d1f1a commit 442e2cf
Show file tree
Hide file tree
Showing 9 changed files with 90 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": "2023-04-03 12:03:46.746831",
"spec_repo_commit": "1cb4b144"
"regenerated": "2023-04-04 17:50:45.139860",
"spec_repo_commit": "9a7b22d0"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-04-03 12:03:46.759045",
"spec_repo_commit": "1cb4b144"
"regenerated": "2023-04-04 17:50:45.153278",
"spec_repo_commit": "9a7b22d0"
}
}
}
29 changes: 29 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3683,6 +3683,7 @@ components:
- profiled_host_usage
- snmp_usage
- estimated_rum_sessions_usage
- universal_service_monitoring_usage
type: string
x-enum-varnames:
- API_USAGE
Expand Down Expand Up @@ -3715,6 +3716,7 @@ components:
- PROFILED_HOST_USAGE
- SNMP_USAGE
- ESTIMATED_RUM_SESSIONS_USAGE
- UNIVERSAL_SERVICE_MONITORING_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 @@ -7171,6 +7173,8 @@ components:
- snmp_percentage
- estimated_rum_sessions_usage
- estimated_rum_sessions_percentage
- universal_service_monitoring_usage
- universal_service_monitoring_percentage
- '*'
type: string
x-enum-varnames:
Expand Down Expand Up @@ -7234,6 +7238,8 @@ components:
- SNMP_PERCENTAGE
- ESTIMATED_RUM_SESSIONS_USAGE
- ESTIMATED_RUM_SESSIONS_PERCENTAGE
- UNIVERSAL_SERVICE_MONITORING_USAGE
- UNIVERSAL_SERVICE_MONITORING_PERCENTAGE
- ALL
MonthlyUsageAttributionValues:
description: Fields in Usage Summary by tag(s).
Expand Down Expand Up @@ -7483,6 +7489,14 @@ components:
description: The network device usage by tag(s).
format: double
type: number
universal_service_monitoring_percentage:
description: The percentage of universal service monitoring usage by tag(s).
format: double
type: number
universal_service_monitoring_usage:
description: The universal service monitoring usage by tag(s).
format: double
type: number
type: object
NoteWidgetDefinition:
description: The notes and links widget is similar to free text widget, but
Expand Down Expand Up @@ -17087,6 +17101,11 @@ components:
in the current date for all organizations.
format: int64
type: integer
universal_service_monitoring_host_top99p:
description: Shows the 99th percentile of all universal service management
hosts over all hours in the current date for the given org.
format: int64
type: integer
vsphere_host_top99p:
description: Shows the 99th percentile of all vSphere hosts over all hours
in the current date for all organizations.
Expand Down Expand Up @@ -17481,6 +17500,11 @@ components:
in the current date for the given org.
format: int64
type: integer
universal_service_monitoring_host_top99p:
description: Shows the 99th percentile of all Universal Service Monitoring
hosts over all hours in the current date for the given org.
format: int64
type: integer
vsphere_host_top99p:
description: Shows the 99th percentile of all vSphere hosts over all hours
in the current date for the given org.
Expand Down Expand Up @@ -17916,6 +17940,11 @@ components:
in the current months for all organizations.
format: int64
type: integer
universal_service_monitoring_host_top99p_sum:
description: Shows the 99th percentile of all Universal Service Monitoring
hosts over all hours in the current months for all organizations.
format: int64
type: integer
usage:
description: An array of objects regarding hourly usage.
items:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export type HourlyUsageAttributionUsageType =
| typeof PROFILED_HOST_USAGE
| typeof SNMP_USAGE
| typeof ESTIMATED_RUM_SESSIONS_USAGE
| typeof UNIVERSAL_SERVICE_MONITORING_USAGE
| UnparsedObject;
export const API_USAGE = "api_usage";
export const APM_FARGATE_USAGE = "apm_fargate_usage";
Expand Down Expand Up @@ -73,3 +74,5 @@ export const PROFILED_FARGATE_USAGE = "profiled_fargate_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 UNIVERSAL_SERVICE_MONITORING_USAGE =
"universal_service_monitoring_usage";
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ export type MonthlyUsageAttributionSupportedMetrics =
| typeof SNMP_PERCENTAGE
| typeof ESTIMATED_RUM_SESSIONS_USAGE
| typeof ESTIMATED_RUM_SESSIONS_PERCENTAGE
| typeof UNIVERSAL_SERVICE_MONITORING_USAGE
| typeof UNIVERSAL_SERVICE_MONITORING_PERCENTAGE
| typeof ALL
| UnparsedObject;
export const API_USAGE = "api_usage";
Expand Down Expand Up @@ -141,4 +143,8 @@ 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 UNIVERSAL_SERVICE_MONITORING_USAGE =
"universal_service_monitoring_usage";
export const UNIVERSAL_SERVICE_MONITORING_PERCENTAGE =
"universal_service_monitoring_percentage";
export const ALL = "*";
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,14 @@ export class MonthlyUsageAttributionValues {
* The network device usage by tag(s).
*/
"snmpUsage"?: number;
/**
* The percentage of universal service monitoring usage by tag(s).
*/
"universalServiceMonitoringPercentage"?: number;
/**
* The universal service monitoring usage by tag(s).
*/
"universalServiceMonitoringUsage"?: number;

/**
* @ignore
Expand Down Expand Up @@ -560,6 +568,16 @@ export class MonthlyUsageAttributionValues {
type: "number",
format: "double",
},
universalServiceMonitoringPercentage: {
baseName: "universal_service_monitoring_percentage",
type: "number",
format: "double",
},
universalServiceMonitoringUsage: {
baseName: "universal_service_monitoring_usage",
type: "number",
format: "double",
},
};

/**
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 @@ -720,6 +720,7 @@ const enumsMap: { [key: string]: any[] } = {
"profiled_host_usage",
"snmp_usage",
"estimated_rum_sessions_usage",
"universal_service_monitoring_usage",
],
IFrameWidgetDefinitionType: ["iframe"],
ImageWidgetDefinitionType: ["image"],
Expand Down Expand Up @@ -903,6 +904,8 @@ const enumsMap: { [key: string]: any[] } = {
"snmp_percentage",
"estimated_rum_sessions_usage",
"estimated_rum_sessions_percentage",
"universal_service_monitoring_usage",
"universal_service_monitoring_percentage",
"*",
],
NoteWidgetDefinitionType: ["note"],
Expand Down
9 changes: 9 additions & 0 deletions packages/datadog-api-client-v1/models/UsageSummaryDate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@ export class UsageSummaryDate {
* Shows the sum of all ingested APM span bytes over all hours in the current date for all organizations.
*/
"twolIngestedEventsBytesSum"?: number;
/**
* Shows the 99th percentile of all universal service management hosts over all hours in the current date for the given org.
*/
"universalServiceMonitoringHostTop99p"?: number;
/**
* Shows the 99th percentile of all vSphere hosts over all hours in the current date for all organizations.
*/
Expand Down Expand Up @@ -708,6 +712,11 @@ export class UsageSummaryDate {
type: "number",
format: "int64",
},
universalServiceMonitoringHostTop99p: {
baseName: "universal_service_monitoring_host_top99p",
type: "number",
format: "int64",
},
vsphereHostTop99p: {
baseName: "vsphere_host_top99p",
type: "number",
Expand Down
9 changes: 9 additions & 0 deletions packages/datadog-api-client-v1/models/UsageSummaryDateOrg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ export class UsageSummaryDateOrg {
* Shows the sum of all ingested APM span bytes over all hours in the current date for the given org.
*/
"twolIngestedEventsBytesSum"?: number;
/**
* Shows the 99th percentile of all Universal Service Monitoring hosts over all hours in the current date for the given org.
*/
"universalServiceMonitoringHostTop99p"?: number;
/**
* Shows the 99th percentile of all vSphere hosts over all hours in the current date for the given org.
*/
Expand Down Expand Up @@ -722,6 +726,11 @@ export class UsageSummaryDateOrg {
type: "number",
format: "int64",
},
universalServiceMonitoringHostTop99p: {
baseName: "universal_service_monitoring_host_top99p",
type: "number",
format: "int64",
},
vsphereHostTop99p: {
baseName: "vsphere_host_top99p",
type: "number",
Expand Down
9 changes: 9 additions & 0 deletions packages/datadog-api-client-v1/models/UsageSummaryResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,10 @@ export class UsageSummaryResponse {
* Shows the sum of all ingested APM span bytes over all hours in the current months for all organizations.
*/
"twolIngestedEventsBytesAggSum"?: number;
/**
* Shows the 99th percentile of all Universal Service Monitoring hosts over all hours in the current months for all organizations.
*/
"universalServiceMonitoringHostTop99pSum"?: number;
/**
* An array of objects regarding hourly usage.
*/
Expand Down Expand Up @@ -785,6 +789,11 @@ export class UsageSummaryResponse {
type: "number",
format: "int64",
},
universalServiceMonitoringHostTop99pSum: {
baseName: "universal_service_monitoring_host_top99p_sum",
type: "number",
format: "int64",
},
usage: {
baseName: "usage",
type: "Array<UsageSummaryDate>",
Expand Down

0 comments on commit 442e2cf

Please sign in to comment.