Skip to content

Commit 093d466

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit ea553b9 of spec repo (#168)
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 d9fdd12 commit 093d466

18 files changed

+761
-138
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.4.1.dev8",
7-
"regenerated": "2021-05-31 10:52:01.415775",
8-
"spec_repo_commit": "ce05618"
7+
"regenerated": "2021-06-02 15:26:34.547345",
8+
"spec_repo_commit": "ea553b9"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev8",
12-
"regenerated": "2021-05-31 10:52:41.450839",
13-
"spec_repo_commit": "ce05618"
12+
"regenerated": "2021-06-02 15:27:31.226128",
13+
"spec_repo_commit": "ea553b9"
1414
}
1515
}
1616
}

docs/v1/UsageMeteringApi.md

Lines changed: 67 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ Method | HTTP request | Description
1313
[**getTracingWithoutLimits**](UsageMeteringApi.md#getTracingWithoutLimits) | **GET** /api/v1/usage/tracing-without-limits | Get hourly usage for tracing without limits
1414
[**getUsageAnalyzedLogs**](UsageMeteringApi.md#getUsageAnalyzedLogs) | **GET** /api/v1/usage/analyzed_logs | Get hourly usage for analyzed logs
1515
[**getUsageAttribution**](UsageMeteringApi.md#getUsageAttribution) | **GET** /api/v1/usage/attribution | Get Usage Attribution
16+
[**getUsageAuditLogs**](UsageMeteringApi.md#getUsageAuditLogs) | **GET** /api/v1/usage/audit_logs | Get hourly usage for audit logs
1617
[**getUsageBillableSummary**](UsageMeteringApi.md#getUsageBillableSummary) | **GET** /api/v1/usage/billable-summary | Get billable usage across your account
17-
[**getUsageComplianceMonitoring**](UsageMeteringApi.md#getUsageComplianceMonitoring) | **GET** /api/v1/usage/compliance-monitoring | Get hourly usage for Compliance Monitoring
18+
[**getUsageCloudSecurityPostureManagement**](UsageMeteringApi.md#getUsageCloudSecurityPostureManagement) | **GET** /api/v1/usage/cspm | Get hourly usage for CSPM
1819
[**getUsageFargate**](UsageMeteringApi.md#getUsageFargate) | **GET** /api/v1/usage/fargate | Get hourly usage for Fargate
1920
[**getUsageHosts**](UsageMeteringApi.md#getUsageHosts) | **GET** /api/v1/usage/hosts | Get hourly usage for hosts and containers
2021
[**getUsageIndexedSpans**](UsageMeteringApi.md#getUsageIndexedSpans) | **GET** /api/v1/usage/indexed-spans | Get hourly usage for indexed spans
@@ -581,6 +582,65 @@ Name | Type | Description | Notes
581582

582583
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
583584

585+
## **getUsageAuditLogs**
586+
> UsageAuditLogsResponse getUsageAuditLogs()
587+
588+
Get hourly usage for audit logs.
589+
590+
### Example
591+
592+
593+
```typescript
594+
import { v1 } from 'datadog-api-client';
595+
import * as fs from 'fs';
596+
597+
const configuration = v1.createConfiguration();
598+
const apiInstance = new v1.UsageMeteringApi(configuration);
599+
600+
let params:v1.UsageMeteringApiGetUsageAuditLogsRequest = {
601+
// Date | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
602+
startHr: new Date('1970-01-01T00:00:00.00Z'),
603+
// Date | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. (optional)
604+
endHr: new Date('1970-01-01T00:00:00.00Z'),
605+
};
606+
607+
apiInstance.getUsageAuditLogs(params).then((data:any) => {
608+
console.log('API called successfully. Returned data: ' + data);
609+
}).catch((error:any) => console.error(error));
610+
```
611+
612+
613+
### Parameters
614+
615+
Name | Type | Description | Notes
616+
------------- | ------------- | ------------- | -------------
617+
**startHr** | [**Date**] | Datetime in ISO-8601 format, UTC, precise to hour: &#x60;[YYYY-MM-DDThh]&#x60; for usage beginning at this hour. | defaults to undefined
618+
**endHr** | [**Date**] | Datetime in ISO-8601 format, UTC, precise to hour: &#x60;[YYYY-MM-DDThh]&#x60; for usage ending **before** this hour. | (optional) defaults to undefined
619+
620+
621+
### Return type
622+
623+
**UsageAuditLogsResponse**
624+
625+
### Authorization
626+
627+
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
628+
629+
### HTTP request headers
630+
631+
- **Content-Type**: Not defined
632+
- **Accept**: application/json;datetime-format=rfc3339
633+
634+
635+
### HTTP response details
636+
| Status code | Description | Response headers |
637+
|-------------|-------------|------------------|
638+
**200** | OK | - |
639+
**400** | Bad Request | - |
640+
**403** | Forbidden - User is not authorized | - |
641+
642+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
643+
584644
## **getUsageBillableSummary**
585645
> UsageBillableSummaryResponse getUsageBillableSummary()
586646
@@ -637,10 +697,10 @@ Name | Type | Description | Notes
637697

638698
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
639699

640-
## **getUsageComplianceMonitoring**
641-
> UsageComplianceResponse getUsageComplianceMonitoring()
700+
## **getUsageCloudSecurityPostureManagement**
701+
> UsageCloudSecurityPostureManagementResponse getUsageCloudSecurityPostureManagement()
642702
643-
Get hourly usage for Compliance Monitoring.
703+
Get hourly usage for Cloud Security Posture Management (CSPM).
644704

645705
### Example
646706

@@ -652,14 +712,14 @@ import * as fs from 'fs';
652712
const configuration = v1.createConfiguration();
653713
const apiInstance = new v1.UsageMeteringApi(configuration);
654714

655-
let params:v1.UsageMeteringApiGetUsageComplianceMonitoringRequest = {
715+
let params:v1.UsageMeteringApiGetUsageCloudSecurityPostureManagementRequest = {
656716
// Date | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
657717
startHr: new Date('1970-01-01T00:00:00.00Z'),
658718
// Date | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. (optional)
659719
endHr: new Date('1970-01-01T00:00:00.00Z'),
660720
};
661721

662-
apiInstance.getUsageComplianceMonitoring(params).then((data:any) => {
722+
apiInstance.getUsageCloudSecurityPostureManagement(params).then((data:any) => {
663723
console.log('API called successfully. Returned data: ' + data);
664724
}).catch((error:any) => console.error(error));
665725
```
@@ -675,7 +735,7 @@ Name | Type | Description | Notes
675735

676736
### Return type
677737

678-
**UsageComplianceResponse**
738+
**UsageCloudSecurityPostureManagementResponse**
679739

680740
### Authorization
681741

features/v1/undo.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,6 +1069,12 @@
10691069
"type": "safe"
10701070
}
10711071
},
1072+
"GetUsageAuditLogs": {
1073+
"tag": "Usage Metering",
1074+
"undo": {
1075+
"type": "safe"
1076+
}
1077+
},
10721078
"GetUsageLambda": {
10731079
"tag": "Usage Metering",
10741080
"undo": {
@@ -1081,7 +1087,7 @@
10811087
"type": "safe"
10821088
}
10831089
},
1084-
"GetUsageComplianceMonitoring": {
1090+
"GetUsageCloudSecurityPostureManagement": {
10851091
"tag": "Usage Metering",
10861092
"undo": {
10871093
"type": "safe"

features/v1/usage_metering.feature

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ Feature: Usage Metering
5656
Then the response status is 200 OK
5757

5858
@generated @skip
59-
Scenario: Get hourly usage for Compliance Monitoring returns "Bad Request" response
60-
Given new "GetUsageComplianceMonitoring" request
59+
Scenario: Get hourly usage for CSPM returns "Bad Request" response
60+
Given new "GetUsageCloudSecurityPostureManagement" request
6161
When the request is sent
6262
Then the response status is 400 Bad Request
6363

6464
@generated @skip
65-
Scenario: Get hourly usage for Compliance Monitoring returns "OK" response
66-
Given new "GetUsageComplianceMonitoring" request
65+
Scenario: Get hourly usage for CSPM returns "OK" response
66+
Given new "GetUsageCloudSecurityPostureManagement" request
6767
When the request is sent
6868
Then the response status is 200 OK
6969

@@ -235,6 +235,18 @@ Feature: Usage Metering
235235
When the request is sent
236236
Then the response status is 200 OK
237237

238+
@generated @skip
239+
Scenario: Get hourly usage for audit logs returns "Bad Request" response
240+
Given new "GetUsageAuditLogs" request
241+
When the request is sent
242+
Then the response status is 400 Bad Request
243+
244+
@generated @skip
245+
Scenario: Get hourly usage for audit logs returns "OK" response
246+
Given new "GetUsageAuditLogs" request
247+
When the request is sent
248+
Then the response status is 200 OK
249+
238250
@generated @skip
239251
Scenario: Get hourly usage for custom metrics returns "Bad Request" response
240252
Given new "GetUsageTimeseries" request

packages/datadog-api-client-v1/.openapi-generator/FILES

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,12 +526,14 @@ models/UsageAttributionResponse.ts
526526
models/UsageAttributionSort.ts
527527
models/UsageAttributionSupportedMetrics.ts
528528
models/UsageAttributionValues.ts
529+
models/UsageAuditLogsHour.ts
530+
models/UsageAuditLogsResponse.ts
529531
models/UsageBillableSummaryBody.ts
530532
models/UsageBillableSummaryHour.ts
531533
models/UsageBillableSummaryKeys.ts
532534
models/UsageBillableSummaryResponse.ts
533-
models/UsageComplianceHour.ts
534-
models/UsageComplianceResponse.ts
535+
models/UsageCloudSecurityPostureManagementHour.ts
536+
models/UsageCloudSecurityPostureManagementResponse.ts
535537
models/UsageCustomReportsAttributes.ts
536538
models/UsageCustomReportsData.ts
537539
models/UsageCustomReportsMeta.ts

0 commit comments

Comments
 (0)