Skip to content
New issue

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

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

Already on GitHub? # to your account

Add Application Vulnerability Management to usage metering API #1141

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": "2023-05-12 13:13:12.164751",
"spec_repo_commit": "9eca3996"
"regenerated": "2023-05-17 14:44:41.288610",
"spec_repo_commit": "f8bfb8c1"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-05-12 13:13:12.177759",
"spec_repo_commit": "9eca3996"
"regenerated": "2023-05-17 14:44:41.301361",
"spec_repo_commit": "f8bfb8c1"
}
}
}
30 changes: 30 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3764,6 +3764,7 @@ components:
- snmp_usage
- estimated_rum_sessions_usage
- universal_service_monitoring_usage
- vuln_management_hosts_usage
type: string
x-enum-varnames:
- API_USAGE
Expand Down Expand Up @@ -3797,6 +3798,7 @@ components:
- SNMP_USAGE
- ESTIMATED_RUM_SESSIONS_USAGE
- UNIVERSAL_SERVICE_MONITORING_USAGE
- VULN_MANAGEMENT_HOSTS_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 @@ -7260,6 +7262,8 @@ components:
- estimated_rum_sessions_percentage
- universal_service_monitoring_usage
- universal_service_monitoring_percentage
- vuln_management_hosts_usage
- vuln_management_hosts_percentage
- '*'
type: string
x-enum-varnames:
Expand Down Expand Up @@ -7325,6 +7329,8 @@ components:
- ESTIMATED_RUM_SESSIONS_PERCENTAGE
- UNIVERSAL_SERVICE_MONITORING_USAGE
- UNIVERSAL_SERVICE_MONITORING_PERCENTAGE
- VULN_MANAGEMENT_HOSTS_USAGE
- VULN_MANAGEMENT_HOSTS_PERCENTAGE
- ALL
MonthlyUsageAttributionValues:
description: Fields in Usage Summary by tag(s).
Expand Down Expand Up @@ -7582,6 +7588,15 @@ components:
description: The universal service monitoring usage by tag(s).
format: double
type: number
vuln_management_hosts_percentage:
description: The percentage of Application Vulnerability Management usage
by tag(s).
format: double
type: number
vuln_management_hosts_usage:
description: The Application Vulnerability Management 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 @@ -17615,6 +17630,11 @@ components:
in the current date for all organizations.
format: int64
type: integer
vuln_management_host_count_top99p:
description: Shows the 99th percentile of all Application Vulnerability
Management hosts over all hours in the current date for the given org.
format: int64
type: integer
type: object
UsageSummaryDateOrg:
description: Global hourly report of all data billed by Datadog for a given
Expand Down Expand Up @@ -18020,6 +18040,11 @@ components:
in the current date for the given org.
format: int64
type: integer
vuln_management_host_count_top99p:
description: Shows the 99th percentile of all Application Vulnerability
Management hosts over all hours in the current date for the given org.
format: int64
type: integer
type: object
UsageSummaryResponse:
description: Response summarizing all usage aggregated across the months in
Expand Down Expand Up @@ -18472,6 +18497,11 @@ components:
in the current months for all organizations.
format: int64
type: integer
vuln_management_host_count_top99p_sum:
description: Shows the 99th percentile of all Application Vulnerability
Management hosts over all hours in the current months for all organizations.
format: int64
type: integer
type: object
UsageSyntheticsAPIHour:
description: Number of Synthetics API tests run for each hour for a given organization.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export type HourlyUsageAttributionUsageType =
| typeof SNMP_USAGE
| typeof ESTIMATED_RUM_SESSIONS_USAGE
| typeof UNIVERSAL_SERVICE_MONITORING_USAGE
| typeof VULN_MANAGEMENT_HOSTS_USAGE
| UnparsedObject;
export const API_USAGE = "api_usage";
export const APM_FARGATE_USAGE = "apm_fargate_usage";
Expand Down Expand Up @@ -76,3 +77,4 @@ 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";
export const VULN_MANAGEMENT_HOSTS_USAGE = "vuln_management_hosts_usage";
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export type MonthlyUsageAttributionSupportedMetrics =
| typeof ESTIMATED_RUM_SESSIONS_PERCENTAGE
| typeof UNIVERSAL_SERVICE_MONITORING_USAGE
| typeof UNIVERSAL_SERVICE_MONITORING_PERCENTAGE
| typeof VULN_MANAGEMENT_HOSTS_USAGE
| typeof VULN_MANAGEMENT_HOSTS_PERCENTAGE
| typeof ALL
| UnparsedObject;
export const API_USAGE = "api_usage";
Expand Down Expand Up @@ -147,4 +149,7 @@ export const UNIVERSAL_SERVICE_MONITORING_USAGE =
"universal_service_monitoring_usage";
export const UNIVERSAL_SERVICE_MONITORING_PERCENTAGE =
"universal_service_monitoring_percentage";
export const VULN_MANAGEMENT_HOSTS_USAGE = "vuln_management_hosts_usage";
export const VULN_MANAGEMENT_HOSTS_PERCENTAGE =
"vuln_management_hosts_percentage";
export const ALL = "*";
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,14 @@ export class MonthlyUsageAttributionValues {
* The universal service monitoring usage by tag(s).
*/
"universalServiceMonitoringUsage"?: number;
/**
* The percentage of Application Vulnerability Management usage by tag(s).
*/
"vulnManagementHostsPercentage"?: number;
/**
* The Application Vulnerability Management usage by tag(s).
*/
"vulnManagementHostsUsage"?: number;

/**
* @ignore
Expand Down Expand Up @@ -578,6 +586,16 @@ export class MonthlyUsageAttributionValues {
type: "number",
format: "double",
},
vulnManagementHostsPercentage: {
baseName: "vuln_management_hosts_percentage",
type: "number",
format: "double",
},
vulnManagementHostsUsage: {
baseName: "vuln_management_hosts_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 @@ -746,6 +746,7 @@ const enumsMap: { [key: string]: any[] } = {
"snmp_usage",
"estimated_rum_sessions_usage",
"universal_service_monitoring_usage",
"vuln_management_hosts_usage",
],
IFrameWidgetDefinitionType: ["iframe"],
ImageWidgetDefinitionType: ["image"],
Expand Down Expand Up @@ -931,6 +932,8 @@ const enumsMap: { [key: string]: any[] } = {
"estimated_rum_sessions_percentage",
"universal_service_monitoring_usage",
"universal_service_monitoring_percentage",
"vuln_management_hosts_usage",
"vuln_management_hosts_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 @@ -327,6 +327,10 @@ export class UsageSummaryDate {
* Shows the 99th percentile of all vSphere hosts over all hours in the current date for all organizations.
*/
"vsphereHostTop99p"?: number;
/**
* Shows the 99th percentile of all Application Vulnerability Management hosts over all hours in the current date for the given org.
*/
"vulnManagementHostCountTop99p"?: number;

/**
* @ignore
Expand Down Expand Up @@ -731,6 +735,11 @@ export class UsageSummaryDate {
type: "number",
format: "int64",
},
vulnManagementHostCountTop99p: {
baseName: "vuln_management_host_count_top99p",
type: "number",
format: "int64",
},
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@ export class UsageSummaryDateOrg {
* Shows the 99th percentile of all vSphere hosts over all hours in the current date for the given org.
*/
"vsphereHostTop99p"?: number;
/**
* Shows the 99th percentile of all Application Vulnerability Management hosts over all hours in the current date for the given org.
*/
"vulnManagementHostCountTop99p"?: number;

/**
* @ignore
Expand Down Expand Up @@ -745,6 +749,11 @@ export class UsageSummaryDateOrg {
type: "number",
format: "int64",
},
vulnManagementHostCountTop99p: {
baseName: "vuln_management_host_count_top99p",
type: "number",
format: "int64",
},
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,10 @@ export class UsageSummaryResponse {
* Shows the 99th percentile of all vSphere hosts over all hours in the current months for all organizations.
*/
"vsphereHostTop99pSum"?: number;
/**
* Shows the 99th percentile of all Application Vulnerability Management hosts over all hours in the current months for all organizations.
*/
"vulnManagementHostCountTop99pSum"?: number;

/**
* @ignore
Expand Down Expand Up @@ -812,6 +816,11 @@ export class UsageSummaryResponse {
type: "number",
format: "int64",
},
vulnManagementHostCountTop99pSum: {
baseName: "vuln_management_host_count_top99p_sum",
type: "number",
format: "int64",
},
};

/**
Expand Down