Skip to content

Commit 60c0be6

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add fields for CSPM GCP usage (#1237)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 504ad5d commit 60c0be6

File tree

6 files changed

+57
-4
lines changed

6 files changed

+57
-4
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": "2022-11-15 14:55:26.354217",
8-
"spec_repo_commit": "63774181"
7+
"regenerated": "2022-11-16 21:36:47.350273",
8+
"spec_repo_commit": "b9a1fc71"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-11-15 14:55:26.366493",
13-
"spec_repo_commit": "63774181"
12+
"regenerated": "2022-11-16 21:36:47.361486",
13+
"spec_repo_commit": "b9a1fc71"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15044,6 +15044,12 @@ components:
1504415044
format: double
1504515045
nullable: true
1504615046
type: number
15047+
gcp_host_count:
15048+
description: The number of Cloud Security Posture Management GCP hosts during
15049+
a given hour.
15050+
format: double
15051+
nullable: true
15052+
type: number
1504715053
host_count:
1504815054
description: The total number of Cloud Security Posture Management hosts
1504915055
during a given hour.
@@ -16119,6 +16125,11 @@ components:
1611916125
containers over all hours in the current date for all organizations.
1612016126
format: int64
1612116127
type: integer
16128+
cspm_gcp_host_top99p:
16129+
description: Shows the 99th percentile of all Cloud Security Posture Management
16130+
GCP hosts over all hours in the current date for all organizations.
16131+
format: int64
16132+
type: integer
1612216133
cspm_host_top99p:
1612316134
description: Shows the 99th percentile of all Cloud Security Posture Management
1612416135
hosts over all hours in the current date for all organizations.
@@ -16475,6 +16486,11 @@ components:
1647516486
containers over all hours in the current date for the given org.
1647616487
format: int64
1647716488
type: integer
16489+
cspm_gcp_host_top99p:
16490+
description: Shows the 99th percentile of all Cloud Security Posture Management
16491+
GCP hosts over all hours in the current date for the given org.
16492+
format: int64
16493+
type: integer
1647816494
cspm_host_top99p:
1647916495
description: Shows the 99th percentile of all Cloud Security Posture Management
1648016496
hosts over all hours in the current date for the given org.
@@ -16840,6 +16856,11 @@ components:
1684016856
all organizations.
1684116857
format: int64
1684216858
type: integer
16859+
cspm_gcp_host_top99p_sum:
16860+
description: Shows the 99th percentile of all Cloud Security Posture Management
16861+
GCP hosts over all hours in the current months for all organizations.
16862+
format: int64
16863+
type: integer
1684316864
cspm_host_top99p_sum:
1684416865
description: Shows the 99th percentile of all Cloud Security Posture Management
1684516866
hosts over all hours in the current months for all organizations.

src/datadog_api_client/v1/model/usage_cloud_security_posture_management_hour.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def openapi_types(_):
2424
"azure_host_count": (float, none_type),
2525
"compliance_host_count": (float, none_type),
2626
"container_count": (float, none_type),
27+
"gcp_host_count": (float, none_type),
2728
"host_count": (float, none_type),
2829
"hour": (datetime,),
2930
"org_name": (str,),
@@ -36,6 +37,7 @@ def openapi_types(_):
3637
"azure_host_count": "azure_host_count",
3738
"compliance_host_count": "compliance_host_count",
3839
"container_count": "container_count",
40+
"gcp_host_count": "gcp_host_count",
3941
"host_count": "host_count",
4042
"hour": "hour",
4143
"org_name": "org_name",
@@ -49,6 +51,7 @@ def __init__(
4951
azure_host_count: Union[float, none_type, UnsetType] = unset,
5052
compliance_host_count: Union[float, none_type, UnsetType] = unset,
5153
container_count: Union[float, none_type, UnsetType] = unset,
54+
gcp_host_count: Union[float, none_type, UnsetType] = unset,
5255
host_count: Union[float, none_type, UnsetType] = unset,
5356
hour: Union[datetime, UnsetType] = unset,
5457
org_name: Union[str, UnsetType] = unset,
@@ -73,6 +76,9 @@ def __init__(
7376
:param container_count: The total number of Cloud Security Posture Management containers during a given hour.
7477
:type container_count: float, none_type, optional
7578
79+
:param gcp_host_count: The number of Cloud Security Posture Management GCP hosts during a given hour.
80+
:type gcp_host_count: float, none_type, optional
81+
7682
:param host_count: The total number of Cloud Security Posture Management hosts during a given hour.
7783
:type host_count: float, none_type, optional
7884
@@ -95,6 +101,8 @@ def __init__(
95101
kwargs["compliance_host_count"] = compliance_host_count
96102
if container_count is not unset:
97103
kwargs["container_count"] = container_count
104+
if gcp_host_count is not unset:
105+
kwargs["gcp_host_count"] = gcp_host_count
98106
if host_count is not unset:
99107
kwargs["host_count"] = host_count
100108
if hour is not unset:

src/datadog_api_client/v1/model/usage_summary_date.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def openapi_types(_):
5050
"cspm_azure_host_top99p": (int,),
5151
"cspm_container_avg": (int,),
5252
"cspm_container_hwm": (int,),
53+
"cspm_gcp_host_top99p": (int,),
5354
"cspm_host_top99p": (int,),
5455
"custom_ts_avg": (int,),
5556
"cws_container_count_avg": (int,),
@@ -123,6 +124,7 @@ def openapi_types(_):
123124
"cspm_azure_host_top99p": "cspm_azure_host_top99p",
124125
"cspm_container_avg": "cspm_container_avg",
125126
"cspm_container_hwm": "cspm_container_hwm",
127+
"cspm_gcp_host_top99p": "cspm_gcp_host_top99p",
126128
"cspm_host_top99p": "cspm_host_top99p",
127129
"custom_ts_avg": "custom_ts_avg",
128130
"cws_container_count_avg": "cws_container_count_avg",
@@ -197,6 +199,7 @@ def __init__(
197199
cspm_azure_host_top99p: Union[int, UnsetType] = unset,
198200
cspm_container_avg: Union[int, UnsetType] = unset,
199201
cspm_container_hwm: Union[int, UnsetType] = unset,
202+
cspm_gcp_host_top99p: Union[int, UnsetType] = unset,
200203
cspm_host_top99p: Union[int, UnsetType] = unset,
201204
custom_ts_avg: Union[int, UnsetType] = unset,
202205
cws_container_count_avg: Union[int, UnsetType] = unset,
@@ -324,6 +327,9 @@ def __init__(
324327
:param cspm_container_hwm: Shows the high-water mark of Cloud Security Posture Management containers over all hours in the current date for all organizations.
325328
:type cspm_container_hwm: int, optional
326329
330+
:param cspm_gcp_host_top99p: Shows the 99th percentile of all Cloud Security Posture Management GCP hosts over all hours in the current date for all organizations.
331+
:type cspm_gcp_host_top99p: int, optional
332+
327333
:param cspm_host_top99p: Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current date for all organizations.
328334
:type cspm_host_top99p: int, optional
329335
@@ -508,6 +514,8 @@ def __init__(
508514
kwargs["cspm_container_avg"] = cspm_container_avg
509515
if cspm_container_hwm is not unset:
510516
kwargs["cspm_container_hwm"] = cspm_container_hwm
517+
if cspm_gcp_host_top99p is not unset:
518+
kwargs["cspm_gcp_host_top99p"] = cspm_gcp_host_top99p
511519
if cspm_host_top99p is not unset:
512520
kwargs["cspm_host_top99p"] = cspm_host_top99p
513521
if custom_ts_avg is not unset:

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
@@ -43,6 +43,7 @@ def openapi_types(_):
4343
"cspm_azure_host_top99p": (int,),
4444
"cspm_container_avg": (int,),
4545
"cspm_container_hwm": (int,),
46+
"cspm_gcp_host_top99p": (int,),
4647
"cspm_host_top99p": (int,),
4748
"custom_ts_avg": (int,),
4849
"cws_container_count_avg": (int,),
@@ -118,6 +119,7 @@ def openapi_types(_):
118119
"cspm_azure_host_top99p": "cspm_azure_host_top99p",
119120
"cspm_container_avg": "cspm_container_avg",
120121
"cspm_container_hwm": "cspm_container_hwm",
122+
"cspm_gcp_host_top99p": "cspm_gcp_host_top99p",
121123
"cspm_host_top99p": "cspm_host_top99p",
122124
"custom_ts_avg": "custom_ts_avg",
123125
"cws_container_count_avg": "cws_container_count_avg",
@@ -194,6 +196,7 @@ def __init__(
194196
cspm_azure_host_top99p: Union[int, UnsetType] = unset,
195197
cspm_container_avg: Union[int, UnsetType] = unset,
196198
cspm_container_hwm: Union[int, UnsetType] = unset,
199+
cspm_gcp_host_top99p: Union[int, UnsetType] = unset,
197200
cspm_host_top99p: Union[int, UnsetType] = unset,
198201
custom_ts_avg: Union[int, UnsetType] = unset,
199202
cws_container_count_avg: Union[int, UnsetType] = unset,
@@ -323,6 +326,9 @@ def __init__(
323326
:param cspm_container_hwm: Shows the high-water mark of Cloud Security Posture Management containers over all hours in the current date for the given org.
324327
:type cspm_container_hwm: int, optional
325328
329+
:param cspm_gcp_host_top99p: Shows the 99th percentile of all Cloud Security Posture Management GCP hosts over all hours in the current date for the given org.
330+
:type cspm_gcp_host_top99p: int, optional
331+
326332
:param cspm_host_top99p: Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current date for the given org.
327333
:type cspm_host_top99p: int, optional
328334
@@ -513,6 +519,8 @@ def __init__(
513519
kwargs["cspm_container_avg"] = cspm_container_avg
514520
if cspm_container_hwm is not unset:
515521
kwargs["cspm_container_hwm"] = cspm_container_hwm
522+
if cspm_gcp_host_top99p is not unset:
523+
kwargs["cspm_gcp_host_top99p"] = cspm_gcp_host_top99p
516524
if cspm_host_top99p is not unset:
517525
kwargs["cspm_host_top99p"] = cspm_host_top99p
518526
if custom_ts_avg is not unset:

src/datadog_api_client/v1/model/usage_summary_response.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def openapi_types(_):
5353
"cspm_azure_host_top99p_sum": (int,),
5454
"cspm_container_avg_sum": (int,),
5555
"cspm_container_hwm_sum": (int,),
56+
"cspm_gcp_host_top99p_sum": (int,),
5657
"cspm_host_top99p_sum": (int,),
5758
"custom_ts_sum": (int,),
5859
"cws_containers_avg_sum": (int,),
@@ -135,6 +136,7 @@ def openapi_types(_):
135136
"cspm_azure_host_top99p_sum": "cspm_azure_host_top99p_sum",
136137
"cspm_container_avg_sum": "cspm_container_avg_sum",
137138
"cspm_container_hwm_sum": "cspm_container_hwm_sum",
139+
"cspm_gcp_host_top99p_sum": "cspm_gcp_host_top99p_sum",
138140
"cspm_host_top99p_sum": "cspm_host_top99p_sum",
139141
"custom_ts_sum": "custom_ts_sum",
140142
"cws_containers_avg_sum": "cws_containers_avg_sum",
@@ -218,6 +220,7 @@ def __init__(
218220
cspm_azure_host_top99p_sum: Union[int, UnsetType] = unset,
219221
cspm_container_avg_sum: Union[int, UnsetType] = unset,
220222
cspm_container_hwm_sum: Union[int, UnsetType] = unset,
223+
cspm_gcp_host_top99p_sum: Union[int, UnsetType] = unset,
221224
cspm_host_top99p_sum: Union[int, UnsetType] = unset,
222225
custom_ts_sum: Union[int, UnsetType] = unset,
223226
cws_containers_avg_sum: Union[int, UnsetType] = unset,
@@ -356,6 +359,9 @@ def __init__(
356359
:param cspm_container_hwm_sum: Shows the sum of the the high-water marks of Cloud Security Posture Management containers over all hours in the current months for all organizations.
357360
:type cspm_container_hwm_sum: int, optional
358361
362+
:param cspm_gcp_host_top99p_sum: Shows the 99th percentile of all Cloud Security Posture Management GCP hosts over all hours in the current months for all organizations.
363+
:type cspm_gcp_host_top99p_sum: int, optional
364+
359365
:param cspm_host_top99p_sum: Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current months for all organizations.
360366
:type cspm_host_top99p_sum: int, optional
361367
@@ -566,6 +572,8 @@ def __init__(
566572
kwargs["cspm_container_avg_sum"] = cspm_container_avg_sum
567573
if cspm_container_hwm_sum is not unset:
568574
kwargs["cspm_container_hwm_sum"] = cspm_container_hwm_sum
575+
if cspm_gcp_host_top99p_sum is not unset:
576+
kwargs["cspm_gcp_host_top99p_sum"] = cspm_gcp_host_top99p_sum
569577
if cspm_host_top99p_sum is not unset:
570578
kwargs["cspm_host_top99p_sum"] = cspm_host_top99p_sum
571579
if custom_ts_sum is not unset:

0 commit comments

Comments
 (0)