Skip to content

Commit 5eb3260

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-specjirikuncar
authored
Regenerate client from commit a7ac3db of spec repo (#1159)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Co-authored-by: Jiri Kuncar <jiri.kuncar@datadoghq.com>
1 parent 1b18c94 commit 5eb3260

15 files changed

+517
-30
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:56.875845",
8-
"spec_repo_commit": "23b4462"
7+
"regenerated": "2022-01-21 15:36:34.084630",
8+
"spec_repo_commit": "a7ac3db"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.1",
12-
"regenerated": "2022-01-21 12:35:58.060001",
13-
"spec_repo_commit": "23b4462"
12+
"regenerated": "2022-01-21 15:36:34.908280",
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.

api_docs/v1/UsageCloudSecurityPostureManagementHour.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ Cloud Security Posture Management usage for a given organization for a given hou
44

55
## Properties
66

7-
| Name | Type | Description | Notes |
8-
| ------------------ | ------------------ | ------------------------------------------------------------------------------------- | ---------- |
9-
| **containerCount** | **Long** | The total number of Cloud Security Posture Management containers during a given hour. | [optional] |
10-
| **hostCount** | **Long** | The total number of Cloud Security Posture Management hosts during a given hour. | [optional] |
11-
| **hour** | **OffsetDateTime** | The hour for the usage. | [optional] |
12-
| **orgName** | **String** | The organization name. | [optional] |
13-
| **publicId** | **String** | The organization public ID. | [optional] |
7+
| Name | Type | Description | Notes |
8+
| ----------------------- | ------------------ | --------------------------------------------------------------------------------------------- | ---------- |
9+
| **aasHostCount** | **Double** | The number of Cloud Security Posture Management Azure app services hosts during a given hour. | [optional] |
10+
| **azureHostCount** | **Double** | The number of Cloud Security Posture Management Azure hosts during a given hour. | [optional] |
11+
| **complianceHostCount** | **Double** | The number of Cloud Security Posture Management hosts during a given hour. | [optional] |
12+
| **containerCount** | **Double** | The total number of Cloud Security Posture Management containers during a given hour. | [optional] |
13+
| **hostCount** | **Double** | The total number of Cloud Security Posture Management hosts during a given hour. | [optional] |
14+
| **hour** | **OffsetDateTime** | The hour for the usage. | [optional] |
15+
| **orgName** | **String** | The organization name. | [optional] |
16+
| **publicId** | **String** | The organization public ID. | [optional] |

api_docs/v1/UsageSummaryDate.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Response with hourly report of all data billed by Datadog all organizations.
2121
| **browserRumUnitsSum** | **Long** | Shows the sum of all browser RUM units over all hours in the current date for all organizations. | [optional] |
2222
| **containerAvg** | **Long** | Shows the average of all distinct containers over all hours in the current date for all organizations. | [optional] |
2323
| **containerHwm** | **Long** | Shows the high-water mark of all distinct containers over all hours in the current date for all organizations. | [optional] |
24+
| **cspmAasHostTop99p** | **Long** | Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current date for all organizations. | [optional] |
25+
| **cspmAzureHostTop99p** | **Long** | Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current date for all organizations. | [optional] |
2426
| **cspmContainerAvg** | **Long** | Shows the average number of Cloud Security Posture Management containers over all hours in the current date for all organizations. | [optional] |
2527
| **cspmContainerHwm** | **Long** | Shows the high-water mark of Cloud Security Posture Management containers over all hours in the current date for all organizations. | [optional] |
2628
| **cspmHostTop99p** | **Long** | Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current date for all organizations. | [optional] |

api_docs/v1/UsageSummaryDateOrg.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Global hourly report of all data billed by Datadog for a given organization.
2121
| **browserRumUnitsSum** | **Long** | Shows the sum of all browser RUM units over all hours in the current date for the given org. | [optional] |
2222
| **containerAvg** | **Long** | Shows the average of all distinct containers over all hours in the current date for the given org. | [optional] |
2323
| **containerHwm** | **Long** | Shows the high-water mark of all distinct containers over all hours in the current date for the given org. | [optional] |
24+
| **cspmAasHostTop99p** | **Long** | Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current date for the given org. | [optional] |
25+
| **cspmAzureHostTop99p** | **Long** | Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current date for the given org. | [optional] |
2426
| **cspmContainerAvg** | **Long** | Shows the average number of Cloud Security Posture Management containers over all hours in the current date for the given org. | [optional] |
2527
| **cspmContainerHwm** | **Long** | Shows the high-water mark of Cloud Security Posture Management containers over all hours in the current date for the given org. | [optional] |
2628
| **cspmHostTop99p** | **Long** | Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current date for the given org. | [optional] |

api_docs/v1/UsageSummaryResponse.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Response summarizing all usage aggregated across the months in the request for a
2222
| **browserRumUnitsAggSum** | **Long** | Shows the sum of all browser RUM units over all hours in the current months for all organizations. | [optional] |
2323
| **containerAvgSum** | **Long** | Shows the average of all distinct containers over all hours in the current months for all organizations. | [optional] |
2424
| **containerHwmSum** | **Long** | Shows the sum of the high-water marks of all distinct containers over all hours in the current months for all organizations. | [optional] |
25+
| **cspmAasHostTop99pSum** | **Long** | Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current months for all organizations. | [optional] |
26+
| **cspmAzureHostTop99pSum** | **Long** | Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current months for all organizations. | [optional] |
2527
| **cspmContainerAvgSum** | **Long** | Shows the average number of Cloud Security Posture Management containers over all hours in the current months for all organizations. | [optional] |
2628
| **cspmContainerHwmSum** | **Long** | 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. | [optional] |
2729
| **cspmHostTop99pSum** | **Long** | Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current months for all organizations. | [optional] |
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Get hourly usage for CSPM returns "OK" response
2+
import com.datadog.api.v1.client.ApiClient;
3+
import com.datadog.api.v1.client.ApiException;
4+
import com.datadog.api.v1.client.Configuration;
5+
import com.datadog.api.v1.client.api.UsageMeteringApi;
6+
import com.datadog.api.v1.client.model.UsageCloudSecurityPostureManagementResponse;
7+
import java.time.*;
8+
import java.util.*;
9+
10+
public class Example {
11+
public static void main(String[] args) {
12+
ApiClient defaultClient = Configuration.getDefaultApiClient();
13+
UsageMeteringApi apiInstance = new UsageMeteringApi(defaultClient);
14+
15+
try {
16+
UsageCloudSecurityPostureManagementResponse result =
17+
apiInstance.getUsageCloudSecurityPostureManagement(OffsetDateTime.now().plusDays(-3));
18+
System.out.println(result);
19+
} catch (ApiException e) {
20+
System.err.println(
21+
"Exception when calling UsageMeteringApi#getUsageCloudSecurityPostureManagement");
22+
System.err.println("Status code: " + e.getCode());
23+
System.err.println("Reason: " + e.getResponseBody());
24+
System.err.println("Response headers: " + e.getResponseHeaders());
25+
e.printStackTrace();
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)