Skip to content

Commit d42c7df

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add Application Vulnerability Management to usage metering API (#1461)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 3827665 commit d42c7df

8 files changed

+91
-6
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.4",
7-
"regenerated": "2023-05-12 13:13:08.052638",
8-
"spec_repo_commit": "9eca3996"
7+
"regenerated": "2023-05-17 14:44:49.208852",
8+
"spec_repo_commit": "f8bfb8c1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-05-12 13:13:08.068754",
13-
"spec_repo_commit": "9eca3996"
12+
"regenerated": "2023-05-17 14:44:49.255286",
13+
"spec_repo_commit": "f8bfb8c1"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3764,6 +3764,7 @@ components:
37643764
- snmp_usage
37653765
- estimated_rum_sessions_usage
37663766
- universal_service_monitoring_usage
3767+
- vuln_management_hosts_usage
37673768
type: string
37683769
x-enum-varnames:
37693770
- API_USAGE
@@ -3797,6 +3798,7 @@ components:
37973798
- SNMP_USAGE
37983799
- ESTIMATED_RUM_SESSIONS_USAGE
37993800
- UNIVERSAL_SERVICE_MONITORING_USAGE
3801+
- VULN_MANAGEMENT_HOSTS_USAGE
38003802
IFrameWidgetDefinition:
38013803
description: The iframe widget allows you to embed a portion of any other web
38023804
page on your dashboard. Only available on FREE layout dashboards.
@@ -7260,6 +7262,8 @@ components:
72607262
- estimated_rum_sessions_percentage
72617263
- universal_service_monitoring_usage
72627264
- universal_service_monitoring_percentage
7265+
- vuln_management_hosts_usage
7266+
- vuln_management_hosts_percentage
72637267
- '*'
72647268
type: string
72657269
x-enum-varnames:
@@ -7325,6 +7329,8 @@ components:
73257329
- ESTIMATED_RUM_SESSIONS_PERCENTAGE
73267330
- UNIVERSAL_SERVICE_MONITORING_USAGE
73277331
- UNIVERSAL_SERVICE_MONITORING_PERCENTAGE
7332+
- VULN_MANAGEMENT_HOSTS_USAGE
7333+
- VULN_MANAGEMENT_HOSTS_PERCENTAGE
73287334
- ALL
73297335
MonthlyUsageAttributionValues:
73307336
description: Fields in Usage Summary by tag(s).
@@ -7582,6 +7588,15 @@ components:
75827588
description: The universal service monitoring usage by tag(s).
75837589
format: double
75847590
type: number
7591+
vuln_management_hosts_percentage:
7592+
description: The percentage of Application Vulnerability Management usage
7593+
by tag(s).
7594+
format: double
7595+
type: number
7596+
vuln_management_hosts_usage:
7597+
description: The Application Vulnerability Management usage by tag(s).
7598+
format: double
7599+
type: number
75857600
type: object
75867601
NoteWidgetDefinition:
75877602
description: The notes and links widget is similar to free text widget, but
@@ -17615,6 +17630,11 @@ components:
1761517630
in the current date for all organizations.
1761617631
format: int64
1761717632
type: integer
17633+
vuln_management_host_count_top99p:
17634+
description: Shows the 99th percentile of all Application Vulnerability
17635+
Management hosts over all hours in the current date for the given org.
17636+
format: int64
17637+
type: integer
1761817638
type: object
1761917639
UsageSummaryDateOrg:
1762017640
description: Global hourly report of all data billed by Datadog for a given
@@ -18020,6 +18040,11 @@ components:
1802018040
in the current date for the given org.
1802118041
format: int64
1802218042
type: integer
18043+
vuln_management_host_count_top99p:
18044+
description: Shows the 99th percentile of all Application Vulnerability
18045+
Management hosts over all hours in the current date for the given org.
18046+
format: int64
18047+
type: integer
1802318048
type: object
1802418049
UsageSummaryResponse:
1802518050
description: Response summarizing all usage aggregated across the months in
@@ -18472,6 +18497,11 @@ components:
1847218497
in the current months for all organizations.
1847318498
format: int64
1847418499
type: integer
18500+
vuln_management_host_count_top99p_sum:
18501+
description: Shows the 99th percentile of all Application Vulnerability
18502+
Management hosts over all hours in the current months for all organizations.
18503+
format: int64
18504+
type: integer
1847518505
type: object
1847618506
UsageSyntheticsAPIHour:
1847718507
description: Number of Synthetics API tests run for each hour for a given organization.

src/datadog_api_client/v1/model/hourly_usage_attribution_usage_type.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class HourlyUsageAttributionUsageType(ModelSimple):
1616
"""
1717
Supported products for hourly usage attribution requests.
1818
19-
:param value: Must be one of ["api_usage", "apm_fargate_usage", "apm_host_usage", "appsec_fargate_usage", "appsec_usage", "browser_usage", "container_excl_agent_usage", "container_usage", "cspm_containers_usage", "cspm_hosts_usage", "custom_ingested_timeseries_usage", "custom_timeseries_usage", "cws_containers_usage", "cws_hosts_usage", "dbm_hosts_usage", "dbm_queries_usage", "estimated_indexed_logs_usage", "estimated_ingested_logs_usage", "estimated_indexed_spans_usage", "estimated_ingested_spans_usage", "fargate_usage", "functions_usage", "infra_host_usage", "invocations_usage", "npm_host_usage", "profiled_container_usage", "profiled_fargate_usage", "profiled_host_usage", "snmp_usage", "estimated_rum_sessions_usage", "universal_service_monitoring_usage"].
19+
:param value: Must be one of ["api_usage", "apm_fargate_usage", "apm_host_usage", "appsec_fargate_usage", "appsec_usage", "browser_usage", "container_excl_agent_usage", "container_usage", "cspm_containers_usage", "cspm_hosts_usage", "custom_ingested_timeseries_usage", "custom_timeseries_usage", "cws_containers_usage", "cws_hosts_usage", "dbm_hosts_usage", "dbm_queries_usage", "estimated_indexed_logs_usage", "estimated_ingested_logs_usage", "estimated_indexed_spans_usage", "estimated_ingested_spans_usage", "fargate_usage", "functions_usage", "infra_host_usage", "invocations_usage", "npm_host_usage", "profiled_container_usage", "profiled_fargate_usage", "profiled_host_usage", "snmp_usage", "estimated_rum_sessions_usage", "universal_service_monitoring_usage", "vuln_management_hosts_usage"].
2020
:type value: str
2121
"""
2222

@@ -52,6 +52,7 @@ class HourlyUsageAttributionUsageType(ModelSimple):
5252
"snmp_usage",
5353
"estimated_rum_sessions_usage",
5454
"universal_service_monitoring_usage",
55+
"vuln_management_hosts_usage",
5556
}
5657
API_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
5758
APM_FARGATE_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
@@ -84,6 +85,7 @@ class HourlyUsageAttributionUsageType(ModelSimple):
8485
SNMP_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
8586
ESTIMATED_RUM_SESSIONS_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
8687
UNIVERSAL_SERVICE_MONITORING_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
88+
VULN_MANAGEMENT_HOSTS_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
8789

8890
@cached_property
8991
def openapi_types(_):
@@ -139,3 +141,6 @@ def openapi_types(_):
139141
HourlyUsageAttributionUsageType.UNIVERSAL_SERVICE_MONITORING_USAGE = HourlyUsageAttributionUsageType(
140142
"universal_service_monitoring_usage"
141143
)
144+
HourlyUsageAttributionUsageType.VULN_MANAGEMENT_HOSTS_USAGE = HourlyUsageAttributionUsageType(
145+
"vuln_management_hosts_usage"
146+
)

src/datadog_api_client/v1/model/monthly_usage_attribution_supported_metrics.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class MonthlyUsageAttributionSupportedMetrics(ModelSimple):
1616
"""
1717
Supported metrics for monthly usage attribution requests.
1818
19-
:param value: Must be one of ["api_usage", "api_percentage", "apm_fargate_usage", "apm_fargate_percentage", "appsec_fargate_usage", "appsec_fargate_percentage", "apm_host_usage", "apm_host_percentage", "appsec_usage", "appsec_percentage", "browser_usage", "browser_percentage", "container_excl_agent_usage", "container_excl_agent_percentage", "container_usage", "container_percentage", "cspm_containers_percentage", "cspm_containers_usage", "cspm_hosts_percentage", "cspm_hosts_usage", "custom_timeseries_usage", "custom_timeseries_percentage", "custom_ingested_timeseries_usage", "custom_ingested_timeseries_percentage", "cws_containers_percentage", "cws_containers_usage", "cws_hosts_percentage", "cws_hosts_usage", "dbm_hosts_percentage", "dbm_hosts_usage", "dbm_queries_percentage", "dbm_queries_usage", "estimated_indexed_logs_usage", "estimated_indexed_logs_percentage", "estimated_ingested_logs_usage", "estimated_ingested_logs_percentage", "estimated_indexed_spans_usage", "estimated_indexed_spans_percentage", "estimated_ingested_spans_usage", "estimated_ingested_spans_percentage", "fargate_usage", "fargate_percentage", "functions_usage", "functions_percentage", "infra_host_usage", "infra_host_percentage", "invocations_usage", "invocations_percentage", "npm_host_usage", "npm_host_percentage", "profiled_container_usage", "profiled_container_percentage", "profiled_fargate_usage", "profiled_fargate_percentage", "profiled_host_usage", "profiled_host_percentage", "snmp_usage", "snmp_percentage", "estimated_rum_sessions_usage", "estimated_rum_sessions_percentage", "universal_service_monitoring_usage", "universal_service_monitoring_percentage", "*"].
19+
:param value: Must be one of ["api_usage", "api_percentage", "apm_fargate_usage", "apm_fargate_percentage", "appsec_fargate_usage", "appsec_fargate_percentage", "apm_host_usage", "apm_host_percentage", "appsec_usage", "appsec_percentage", "browser_usage", "browser_percentage", "container_excl_agent_usage", "container_excl_agent_percentage", "container_usage", "container_percentage", "cspm_containers_percentage", "cspm_containers_usage", "cspm_hosts_percentage", "cspm_hosts_usage", "custom_timeseries_usage", "custom_timeseries_percentage", "custom_ingested_timeseries_usage", "custom_ingested_timeseries_percentage", "cws_containers_percentage", "cws_containers_usage", "cws_hosts_percentage", "cws_hosts_usage", "dbm_hosts_percentage", "dbm_hosts_usage", "dbm_queries_percentage", "dbm_queries_usage", "estimated_indexed_logs_usage", "estimated_indexed_logs_percentage", "estimated_ingested_logs_usage", "estimated_ingested_logs_percentage", "estimated_indexed_spans_usage", "estimated_indexed_spans_percentage", "estimated_ingested_spans_usage", "estimated_ingested_spans_percentage", "fargate_usage", "fargate_percentage", "functions_usage", "functions_percentage", "infra_host_usage", "infra_host_percentage", "invocations_usage", "invocations_percentage", "npm_host_usage", "npm_host_percentage", "profiled_container_usage", "profiled_container_percentage", "profiled_fargate_usage", "profiled_fargate_percentage", "profiled_host_usage", "profiled_host_percentage", "snmp_usage", "snmp_percentage", "estimated_rum_sessions_usage", "estimated_rum_sessions_percentage", "universal_service_monitoring_usage", "universal_service_monitoring_percentage", "vuln_management_hosts_usage", "vuln_management_hosts_percentage", "*"].
2020
:type value: str
2121
"""
2222

@@ -83,6 +83,8 @@ class MonthlyUsageAttributionSupportedMetrics(ModelSimple):
8383
"estimated_rum_sessions_percentage",
8484
"universal_service_monitoring_usage",
8585
"universal_service_monitoring_percentage",
86+
"vuln_management_hosts_usage",
87+
"vuln_management_hosts_percentage",
8688
"*",
8789
}
8890
API_USAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
@@ -147,6 +149,8 @@ class MonthlyUsageAttributionSupportedMetrics(ModelSimple):
147149
ESTIMATED_RUM_SESSIONS_PERCENTAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
148150
UNIVERSAL_SERVICE_MONITORING_USAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
149151
UNIVERSAL_SERVICE_MONITORING_PERCENTAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
152+
VULN_MANAGEMENT_HOSTS_USAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
153+
VULN_MANAGEMENT_HOSTS_PERCENTAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
150154
ALL: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
151155

152156
@cached_property
@@ -304,4 +308,10 @@ def openapi_types(_):
304308
MonthlyUsageAttributionSupportedMetrics.UNIVERSAL_SERVICE_MONITORING_PERCENTAGE = (
305309
MonthlyUsageAttributionSupportedMetrics("universal_service_monitoring_percentage")
306310
)
311+
MonthlyUsageAttributionSupportedMetrics.VULN_MANAGEMENT_HOSTS_USAGE = MonthlyUsageAttributionSupportedMetrics(
312+
"vuln_management_hosts_usage"
313+
)
314+
MonthlyUsageAttributionSupportedMetrics.VULN_MANAGEMENT_HOSTS_PERCENTAGE = MonthlyUsageAttributionSupportedMetrics(
315+
"vuln_management_hosts_percentage"
316+
)
307317
MonthlyUsageAttributionSupportedMetrics.ALL = MonthlyUsageAttributionSupportedMetrics("*")

src/datadog_api_client/v1/model/monthly_usage_attribution_values.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ def openapi_types(_):
7979
"snmp_usage": (float,),
8080
"universal_service_monitoring_percentage": (float,),
8181
"universal_service_monitoring_usage": (float,),
82+
"vuln_management_hosts_percentage": (float,),
83+
"vuln_management_hosts_usage": (float,),
8284
}
8385

8486
attribute_map = {
@@ -144,6 +146,8 @@ def openapi_types(_):
144146
"snmp_usage": "snmp_usage",
145147
"universal_service_monitoring_percentage": "universal_service_monitoring_percentage",
146148
"universal_service_monitoring_usage": "universal_service_monitoring_usage",
149+
"vuln_management_hosts_percentage": "vuln_management_hosts_percentage",
150+
"vuln_management_hosts_usage": "vuln_management_hosts_usage",
147151
}
148152

149153
def __init__(
@@ -210,6 +214,8 @@ def __init__(
210214
snmp_usage: Union[float, UnsetType] = unset,
211215
universal_service_monitoring_percentage: Union[float, UnsetType] = unset,
212216
universal_service_monitoring_usage: Union[float, UnsetType] = unset,
217+
vuln_management_hosts_percentage: Union[float, UnsetType] = unset,
218+
vuln_management_hosts_usage: Union[float, UnsetType] = unset,
213219
**kwargs,
214220
):
215221
"""
@@ -400,6 +406,12 @@ def __init__(
400406
401407
:param universal_service_monitoring_usage: The universal service monitoring usage by tag(s).
402408
:type universal_service_monitoring_usage: float, optional
409+
410+
:param vuln_management_hosts_percentage: The percentage of Application Vulnerability Management usage by tag(s).
411+
:type vuln_management_hosts_percentage: float, optional
412+
413+
:param vuln_management_hosts_usage: The Application Vulnerability Management usage by tag(s).
414+
:type vuln_management_hosts_usage: float, optional
403415
"""
404416
if api_percentage is not unset:
405417
kwargs["api_percentage"] = api_percentage
@@ -525,4 +537,8 @@ def __init__(
525537
kwargs["universal_service_monitoring_percentage"] = universal_service_monitoring_percentage
526538
if universal_service_monitoring_usage is not unset:
527539
kwargs["universal_service_monitoring_usage"] = universal_service_monitoring_usage
540+
if vuln_management_hosts_percentage is not unset:
541+
kwargs["vuln_management_hosts_percentage"] = vuln_management_hosts_percentage
542+
if vuln_management_hosts_usage is not unset:
543+
kwargs["vuln_management_hosts_usage"] = vuln_management_hosts_usage
528544
super().__init__(kwargs)

src/datadog_api_client/v1/model/usage_summary_date.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def openapi_types(_):
103103
"twol_ingested_events_bytes_sum": (int,),
104104
"universal_service_monitoring_host_top99p": (int,),
105105
"vsphere_host_top99p": (int,),
106+
"vuln_management_host_count_top99p": (int,),
106107
}
107108

108109
attribute_map = {
@@ -185,6 +186,7 @@ def openapi_types(_):
185186
"twol_ingested_events_bytes_sum": "twol_ingested_events_bytes_sum",
186187
"universal_service_monitoring_host_top99p": "universal_service_monitoring_host_top99p",
187188
"vsphere_host_top99p": "vsphere_host_top99p",
189+
"vuln_management_host_count_top99p": "vuln_management_host_count_top99p",
188190
}
189191

190192
def __init__(
@@ -268,6 +270,7 @@ def __init__(
268270
twol_ingested_events_bytes_sum: Union[int, UnsetType] = unset,
269271
universal_service_monitoring_host_top99p: Union[int, UnsetType] = unset,
270272
vsphere_host_top99p: Union[int, UnsetType] = unset,
273+
vuln_management_host_count_top99p: Union[int, UnsetType] = unset,
271274
**kwargs,
272275
):
273276
"""
@@ -509,6 +512,9 @@ def __init__(
509512
510513
:param vsphere_host_top99p: Shows the 99th percentile of all vSphere hosts over all hours in the current date for all organizations.
511514
:type vsphere_host_top99p: int, optional
515+
516+
:param vuln_management_host_count_top99p: Shows the 99th percentile of all Application Vulnerability Management hosts over all hours in the current date for the given org.
517+
:type vuln_management_host_count_top99p: int, optional
512518
"""
513519
if agent_host_top99p is not unset:
514520
kwargs["agent_host_top99p"] = agent_host_top99p
@@ -668,4 +674,6 @@ def __init__(
668674
kwargs["universal_service_monitoring_host_top99p"] = universal_service_monitoring_host_top99p
669675
if vsphere_host_top99p is not unset:
670676
kwargs["vsphere_host_top99p"] = vsphere_host_top99p
677+
if vuln_management_host_count_top99p is not unset:
678+
kwargs["vuln_management_host_count_top99p"] = vuln_management_host_count_top99p
671679
super().__init__(kwargs)

src/datadog_api_client/v1/model/usage_summary_date_org.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def openapi_types(_):
9898
"twol_ingested_events_bytes_sum": (int,),
9999
"universal_service_monitoring_host_top99p": (int,),
100100
"vsphere_host_top99p": (int,),
101+
"vuln_management_host_count_top99p": (int,),
101102
}
102103

103104
attribute_map = {
@@ -182,6 +183,7 @@ def openapi_types(_):
182183
"twol_ingested_events_bytes_sum": "twol_ingested_events_bytes_sum",
183184
"universal_service_monitoring_host_top99p": "universal_service_monitoring_host_top99p",
184185
"vsphere_host_top99p": "vsphere_host_top99p",
186+
"vuln_management_host_count_top99p": "vuln_management_host_count_top99p",
185187
}
186188

187189
def __init__(
@@ -267,6 +269,7 @@ def __init__(
267269
twol_ingested_events_bytes_sum: Union[int, UnsetType] = unset,
268270
universal_service_monitoring_host_top99p: Union[int, UnsetType] = unset,
269271
vsphere_host_top99p: Union[int, UnsetType] = unset,
272+
vuln_management_host_count_top99p: Union[int, UnsetType] = unset,
270273
**kwargs,
271274
):
272275
"""
@@ -514,6 +517,9 @@ def __init__(
514517
515518
:param vsphere_host_top99p: Shows the 99th percentile of all vSphere hosts over all hours in the current date for the given org.
516519
:type vsphere_host_top99p: int, optional
520+
521+
:param vuln_management_host_count_top99p: Shows the 99th percentile of all Application Vulnerability Management hosts over all hours in the current date for the given org.
522+
:type vuln_management_host_count_top99p: int, optional
517523
"""
518524
if agent_host_top99p is not unset:
519525
kwargs["agent_host_top99p"] = agent_host_top99p
@@ -677,4 +683,6 @@ def __init__(
677683
kwargs["universal_service_monitoring_host_top99p"] = universal_service_monitoring_host_top99p
678684
if vsphere_host_top99p is not unset:
679685
kwargs["vsphere_host_top99p"] = vsphere_host_top99p
686+
if vuln_management_host_count_top99p is not unset:
687+
kwargs["vuln_management_host_count_top99p"] = vuln_management_host_count_top99p
680688
super().__init__(kwargs)

0 commit comments

Comments
 (0)