Skip to content

Commit db67def

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit a7ac3db of spec repo (#795)
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>
1 parent 01b348f commit db67def

15 files changed

+186
-22
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.1",
7-
"regenerated": "2022-01-21 12:35:44.829142",
8-
"spec_repo_commit": "23b4462"
7+
"regenerated": "2022-01-21 15:36:42.752034",
8+
"spec_repo_commit": "a7ac3db"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.1",
12-
"regenerated": "2022-01-21 12:35:45.261075",
13-
"spec_repo_commit": "23b4462"
12+
"regenerated": "2022-01-21 15:36:43.187598",
13+
"spec_repo_commit": "a7ac3db"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13057,16 +13057,36 @@ components:
1305713057
description: Cloud Security Posture Management usage for a given organization
1305813058
for a given hour.
1305913059
properties:
13060+
aas_host_count:
13061+
description: The number of Cloud Security Posture Management Azure app services
13062+
hosts during a given hour.
13063+
format: double
13064+
nullable: true
13065+
type: number
13066+
azure_host_count:
13067+
description: The number of Cloud Security Posture Management Azure hosts
13068+
during a given hour.
13069+
format: double
13070+
nullable: true
13071+
type: number
13072+
compliance_host_count:
13073+
description: The number of Cloud Security Posture Management hosts during
13074+
a given hour.
13075+
format: double
13076+
nullable: true
13077+
type: number
1306013078
container_count:
1306113079
description: The total number of Cloud Security Posture Management containers
1306213080
during a given hour.
13063-
format: int64
13064-
type: integer
13081+
format: double
13082+
nullable: true
13083+
type: number
1306513084
host_count:
1306613085
description: The total number of Cloud Security Posture Management hosts
1306713086
during a given hour.
13068-
format: int64
13069-
type: integer
13087+
format: double
13088+
nullable: true
13089+
type: number
1307013090
hour:
1307113091
description: The hour for the usage.
1307213092
format: date-time
@@ -13939,6 +13959,16 @@ components:
1393913959
hours in the current date for all organizations.
1394013960
format: int64
1394113961
type: integer
13962+
cspm_aas_host_top99p:
13963+
description: Shows the 99th percentile of all Cloud Security Posture Management
13964+
Azure app services hosts over all hours in the current date for all organizations.
13965+
format: int64
13966+
type: integer
13967+
cspm_azure_host_top99p:
13968+
description: Shows the 99th percentile of all Cloud Security Posture Management
13969+
Azure hosts over all hours in the current date for all organizations.
13970+
format: int64
13971+
type: integer
1394213972
cspm_container_avg:
1394313973
description: Shows the average number of Cloud Security Posture Management
1394413974
containers over all hours in the current date for all organizations.
@@ -14219,6 +14249,17 @@ components:
1421914249
hours in the current date for the given org.
1422014250
format: int64
1422114251
type: integer
14252+
cspm_aas_host_top99p:
14253+
description: Shows the 99th percentile of all Cloud Security Posture Management
14254+
Azure app services hosts over all hours in the current date for the given
14255+
org.
14256+
format: int64
14257+
type: integer
14258+
cspm_azure_host_top99p:
14259+
description: Shows the 99th percentile of all Cloud Security Posture Management
14260+
Azure hosts over all hours in the current date for the given org.
14261+
format: int64
14262+
type: integer
1422214263
cspm_container_avg:
1422314264
description: Shows the average number of Cloud Security Posture Management
1422414265
containers over all hours in the current date for the given org.
@@ -14504,6 +14545,17 @@ components:
1450414545
over all hours in the current months for all organizations.
1450514546
format: int64
1450614547
type: integer
14548+
cspm_aas_host_top99p_sum:
14549+
description: Shows the 99th percentile of all Cloud Security Posture Management
14550+
Azure app services hosts over all hours in the current months for all
14551+
organizations.
14552+
format: int64
14553+
type: integer
14554+
cspm_azure_host_top99p_sum:
14555+
description: Shows the 99th percentile of all Cloud Security Posture Management
14556+
Azure hosts over all hours in the current months for all organizations.
14557+
format: int64
14558+
type: integer
1450714559
cspm_container_avg_sum:
1450814560
description: Shows the average number of Cloud Security Posture Management
1450914561
containers over all hours in the current months for all organizations.

docs/v1/UsageCloudSecurityPostureManagementHour.md

Lines changed: 10 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/v1/UsageSummaryDate.md

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/v1/UsageSummaryDateOrg.md

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/v1/UsageSummaryResponse.md

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""
2+
Get hourly usage for CSPM returns "OK" response
3+
"""
4+
5+
from datetime import datetime
6+
from dateutil.relativedelta import relativedelta
7+
from datadog_api_client.v1 import ApiClient, Configuration
8+
from datadog_api_client.v1.api.usage_metering_api import UsageMeteringApi
9+
10+
configuration = Configuration()
11+
with ApiClient(configuration) as api_client:
12+
api_instance = UsageMeteringApi(api_client)
13+
response = api_instance.get_usage_cloud_security_posture_management(
14+
start_hr=(datetime.now() + relativedelta(days=-3)).isoformat(timespec="seconds")
15+
)
16+
17+
print(response)

src/datadog_api_client/v1/model/usage_cloud_security_posture_management_hour.py

Lines changed: 29 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v1/model/usage_summary_date.py

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)