Skip to content

Commit 9250f01

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit ea553b9 of spec repo (#466)
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 0c71f30 commit 9250f01

23 files changed

+828
-166
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-28 09:09:08.991765",
8-
"spec_repo_commit": "2a54e42"
7+
"regenerated": "2021-06-02 15:25:12.861970",
8+
"spec_repo_commit": "ea553b9"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev8",
12-
"regenerated": "2021-05-28 09:09:36.666979",
13-
"spec_repo_commit": "2a54e42"
12+
"regenerated": "2021-06-02 15:25:40.405619",
13+
"spec_repo_commit": "ea553b9"
1414
}
1515
}
1616
}

docs/v1/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,9 @@ Class | Method | HTTP request | Description
257257
*UsageMeteringApi* | [**get_tracing_without_limits**](UsageMeteringApi.md#get_tracing_without_limits) | **GET** /api/v1/usage/tracing-without-limits | Get hourly usage for tracing without limits
258258
*UsageMeteringApi* | [**get_usage_analyzed_logs**](UsageMeteringApi.md#get_usage_analyzed_logs) | **GET** /api/v1/usage/analyzed_logs | Get hourly usage for analyzed logs
259259
*UsageMeteringApi* | [**get_usage_attribution**](UsageMeteringApi.md#get_usage_attribution) | **GET** /api/v1/usage/attribution | Get Usage Attribution
260+
*UsageMeteringApi* | [**get_usage_audit_logs**](UsageMeteringApi.md#get_usage_audit_logs) | **GET** /api/v1/usage/audit_logs | Get hourly usage for audit logs
260261
*UsageMeteringApi* | [**get_usage_billable_summary**](UsageMeteringApi.md#get_usage_billable_summary) | **GET** /api/v1/usage/billable-summary | Get billable usage across your account
261-
*UsageMeteringApi* | [**get_usage_compliance_monitoring**](UsageMeteringApi.md#get_usage_compliance_monitoring) | **GET** /api/v1/usage/compliance-monitoring | Get hourly usage for Compliance Monitoring
262+
*UsageMeteringApi* | [**get_usage_cloud_security_posture_management**](UsageMeteringApi.md#get_usage_cloud_security_posture_management) | **GET** /api/v1/usage/cspm | Get hourly usage for CSPM
262263
*UsageMeteringApi* | [**get_usage_fargate**](UsageMeteringApi.md#get_usage_fargate) | **GET** /api/v1/usage/fargate | Get hourly usage for Fargate
263264
*UsageMeteringApi* | [**get_usage_hosts**](UsageMeteringApi.md#get_usage_hosts) | **GET** /api/v1/usage/hosts | Get hourly usage for hosts and containers
264265
*UsageMeteringApi* | [**get_usage_indexed_spans**](UsageMeteringApi.md#get_usage_indexed_spans) | **GET** /api/v1/usage/indexed-spans | Get hourly usage for indexed spans
@@ -761,12 +762,14 @@ Class | Method | HTTP request | Description
761762
- [UsageAttributionSupportedMetrics](UsageAttributionSupportedMetrics.md)
762763
- [UsageAttributionTagNames](UsageAttributionTagNames.md)
763764
- [UsageAttributionValues](UsageAttributionValues.md)
765+
- [UsageAuditLogsHour](UsageAuditLogsHour.md)
766+
- [UsageAuditLogsResponse](UsageAuditLogsResponse.md)
764767
- [UsageBillableSummaryBody](UsageBillableSummaryBody.md)
765768
- [UsageBillableSummaryHour](UsageBillableSummaryHour.md)
766769
- [UsageBillableSummaryKeys](UsageBillableSummaryKeys.md)
767770
- [UsageBillableSummaryResponse](UsageBillableSummaryResponse.md)
768-
- [UsageComplianceHour](UsageComplianceHour.md)
769-
- [UsageComplianceResponse](UsageComplianceResponse.md)
771+
- [UsageCloudSecurityPostureManagementHour](UsageCloudSecurityPostureManagementHour.md)
772+
- [UsageCloudSecurityPostureManagementResponse](UsageCloudSecurityPostureManagementResponse.md)
770773
- [UsageCustomReportsAttributes](UsageCustomReportsAttributes.md)
771774
- [UsageCustomReportsData](UsageCustomReportsData.md)
772775
- [UsageCustomReportsMeta](UsageCustomReportsMeta.md)

docs/v1/UsageAuditLogsHour.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# UsageAuditLogsHour
2+
3+
Audit logs usage for a given organization for a given hour.
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**hour** | **datetime** | The hour for the usage. | [optional]
9+
**lines_indexed** | **int** | The total number of audit logs lines indexed during a given hour. | [optional]
10+
11+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
12+
13+

docs/v1/UsageComplianceResponse.md renamed to docs/v1/UsageAuditLogsResponse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# UsageComplianceResponse
1+
# UsageAuditLogsResponse
22

3-
The response containing the Compliance Monitoring usage for each hour for a given organization.
3+
Response containing the audit logs usage for each hour for a given organization.
44

55
## Properties
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**usage** | [**[UsageComplianceHour]**](UsageComplianceHour.md) | Get hourly usage for Compliance Monitoring. | [optional]
8+
**usage** | [**[UsageAuditLogsHour]**](UsageAuditLogsHour.md) | Get hourly usage for audit logs. | [optional]
99

1010
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
1111

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# UsageCloudSecurityPostureManagementHour
2+
3+
Cloud Security Posture Management usage for a given organization for a given hour.
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**container_count** | **int** | The total number of Cloud Security Posture Management containers during a given hour. | [optional]
9+
**host_count** | **int** | The total number of Cloud Security Posture Management hosts during a given hour. | [optional]
10+
**hour** | **datetime** | The hour for the usage. | [optional]
11+
12+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
13+
14+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# UsageCloudSecurityPostureManagementResponse
2+
3+
The response containing the Cloud Security Posture Management usage for each hour for a given organization.
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**usage** | [**[UsageCloudSecurityPostureManagementHour]**](UsageCloudSecurityPostureManagementHour.md) | Get hourly usage for Cloud Security Posture Management. | [optional]
9+
10+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
11+
12+

docs/v1/UsageComplianceHour.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/v1/UsageMeteringApi.md

Lines changed: 90 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ Method | HTTP request | Description
1313
[**get_tracing_without_limits**](UsageMeteringApi.md#get_tracing_without_limits) | **GET** /api/v1/usage/tracing-without-limits | Get hourly usage for tracing without limits
1414
[**get_usage_analyzed_logs**](UsageMeteringApi.md#get_usage_analyzed_logs) | **GET** /api/v1/usage/analyzed_logs | Get hourly usage for analyzed logs
1515
[**get_usage_attribution**](UsageMeteringApi.md#get_usage_attribution) | **GET** /api/v1/usage/attribution | Get Usage Attribution
16+
[**get_usage_audit_logs**](UsageMeteringApi.md#get_usage_audit_logs) | **GET** /api/v1/usage/audit_logs | Get hourly usage for audit logs
1617
[**get_usage_billable_summary**](UsageMeteringApi.md#get_usage_billable_summary) | **GET** /api/v1/usage/billable-summary | Get billable usage across your account
17-
[**get_usage_compliance_monitoring**](UsageMeteringApi.md#get_usage_compliance_monitoring) | **GET** /api/v1/usage/compliance-monitoring | Get hourly usage for Compliance Monitoring
18+
[**get_usage_cloud_security_posture_management**](UsageMeteringApi.md#get_usage_cloud_security_posture_management) | **GET** /api/v1/usage/cspm | Get hourly usage for CSPM
1819
[**get_usage_fargate**](UsageMeteringApi.md#get_usage_fargate) | **GET** /api/v1/usage/fargate | Get hourly usage for Fargate
1920
[**get_usage_hosts**](UsageMeteringApi.md#get_usage_hosts) | **GET** /api/v1/usage/hosts | Get hourly usage for hosts and containers
2021
[**get_usage_indexed_spans**](UsageMeteringApi.md#get_usage_indexed_spans) | **GET** /api/v1/usage/indexed-spans | Get hourly usage for indexed spans
@@ -709,6 +710,83 @@ Name | Type | Description | Notes
709710

710711
[[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)
711712

713+
# **get_usage_audit_logs**
714+
> UsageAuditLogsResponse get_usage_audit_logs(start_hr)
715+
716+
Get hourly usage for audit logs
717+
718+
Get hourly usage for audit logs.
719+
720+
### Example
721+
722+
* Api Key Authentication (apiKeyAuth):
723+
* Api Key Authentication (appKeyAuth):
724+
```python
725+
import os
726+
from dateutil.parser import parse as dateutil_parser
727+
from datadog_api_client.v1 import ApiClient, ApiException, Configuration
728+
from datadog_api_client.v1.api import usage_metering_api
729+
from datadog_api_client.v1.models import *
730+
from pprint import pprint
731+
# See configuration.py for a list of all supported configuration parameters.
732+
configuration = Configuration()
733+
734+
# Enter a context with an instance of the API client
735+
with ApiClient(configuration) as api_client:
736+
# Create an instance of the API class
737+
api_instance = usage_metering_api.UsageMeteringApi(api_client)
738+
start_hr = dateutil_parser('1970-01-01T00:00:00.00Z') # datetime | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
739+
end_hr = dateutil_parser('1970-01-01T00:00:00.00Z') # datetime | Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. (optional)
740+
741+
# example passing only required values which don't have defaults set
742+
try:
743+
# Get hourly usage for audit logs
744+
api_response = api_instance.get_usage_audit_logs(start_hr)
745+
pprint(api_response)
746+
except ApiException as e:
747+
print("Exception when calling UsageMeteringApi->get_usage_audit_logs: %s\n" % e)
748+
749+
# example passing only required values which don't have defaults set
750+
# and optional values
751+
try:
752+
# Get hourly usage for audit logs
753+
api_response = api_instance.get_usage_audit_logs(start_hr, end_hr=end_hr)
754+
pprint(api_response)
755+
except ApiException as e:
756+
print("Exception when calling UsageMeteringApi->get_usage_audit_logs: %s\n" % e)
757+
```
758+
759+
760+
### Parameters
761+
762+
Name | Type | Description | Notes
763+
------------- | ------------- | ------------- | -------------
764+
**start_hr** | **datetime**| Datetime in ISO-8601 format, UTC, precise to hour: &#x60;[YYYY-MM-DDThh]&#x60; for usage beginning at this hour. |
765+
**end_hr** | **datetime**| Datetime in ISO-8601 format, UTC, precise to hour: &#x60;[YYYY-MM-DDThh]&#x60; for usage ending **before** this hour. | [optional]
766+
767+
### Return type
768+
769+
[**UsageAuditLogsResponse**](UsageAuditLogsResponse.md)
770+
771+
### Authorization
772+
773+
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
774+
775+
### HTTP request headers
776+
777+
- **Content-Type**: Not defined
778+
- **Accept**: application/json;datetime-format=rfc3339
779+
780+
781+
### HTTP response details
782+
| Status code | Description | Response headers |
783+
|-------------|-------------|------------------|
784+
**200** | OK | - |
785+
**400** | Bad Request | - |
786+
**403** | Forbidden - User is not authorized | - |
787+
788+
[[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)
789+
712790
# **get_usage_billable_summary**
713791
> UsageBillableSummaryResponse get_usage_billable_summary()
714792
@@ -776,12 +854,12 @@ Name | Type | Description | Notes
776854

777855
[[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)
778856

779-
# **get_usage_compliance_monitoring**
780-
> UsageComplianceResponse get_usage_compliance_monitoring(start_hr)
857+
# **get_usage_cloud_security_posture_management**
858+
> UsageCloudSecurityPostureManagementResponse get_usage_cloud_security_posture_management(start_hr)
781859
782-
Get hourly usage for Compliance Monitoring
860+
Get hourly usage for CSPM
783861

784-
Get hourly usage for Compliance Monitoring.
862+
Get hourly usage for Cloud Security Posture Management (CSPM).
785863

786864
### Example
787865

@@ -806,20 +884,20 @@ with ApiClient(configuration) as api_client:
806884

807885
# example passing only required values which don't have defaults set
808886
try:
809-
# Get hourly usage for Compliance Monitoring
810-
api_response = api_instance.get_usage_compliance_monitoring(start_hr)
887+
# Get hourly usage for CSPM
888+
api_response = api_instance.get_usage_cloud_security_posture_management(start_hr)
811889
pprint(api_response)
812890
except ApiException as e:
813-
print("Exception when calling UsageMeteringApi->get_usage_compliance_monitoring: %s\n" % e)
891+
print("Exception when calling UsageMeteringApi->get_usage_cloud_security_posture_management: %s\n" % e)
814892

815893
# example passing only required values which don't have defaults set
816894
# and optional values
817895
try:
818-
# Get hourly usage for Compliance Monitoring
819-
api_response = api_instance.get_usage_compliance_monitoring(start_hr, end_hr=end_hr)
896+
# Get hourly usage for CSPM
897+
api_response = api_instance.get_usage_cloud_security_posture_management(start_hr, end_hr=end_hr)
820898
pprint(api_response)
821899
except ApiException as e:
822-
print("Exception when calling UsageMeteringApi->get_usage_compliance_monitoring: %s\n" % e)
900+
print("Exception when calling UsageMeteringApi->get_usage_cloud_security_posture_management: %s\n" % e)
823901
```
824902

825903

@@ -832,7 +910,7 @@ Name | Type | Description | Notes
832910

833911
### Return type
834912

835-
[**UsageComplianceResponse**](UsageComplianceResponse.md)
913+
[**UsageCloudSecurityPostureManagementResponse**](UsageCloudSecurityPostureManagementResponse.md)
836914

837915
### Authorization
838916

docs/v1/UsageSummaryDate.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,17 @@ Name | Type | Description | Notes
88
**agent_host_top99p** | **int** | Shows the 99th percentile of all agent hosts over all hours in the current date for all organizations. | [optional]
99
**apm_azure_app_service_host_top99p** | **int** | Shows the 99th percentile of all Azure app services using APM over all hours in the current date all organizations. | [optional]
1010
**apm_host_top99p** | **int** | Shows the 99th percentile of all distinct APM hosts over all hours in the current date for all organizations. | [optional]
11+
**audit_logs_lines_indexed_sum** | **int** | Shows the sum of audit logs lines indexed over all hours in the current date for all organizations. | [optional]
1112
**aws_host_top99p** | **int** | Shows the 99th percentile of all AWS hosts over all hours in the current date for all organizations. | [optional]
1213
**aws_lambda_func_count** | **int** | Shows the average of the number of functions that executed 1 or more times each hour in the current date for all organizations. | [optional]
1314
**aws_lambda_invocations_sum** | **int** | Shows the sum of all AWS Lambda invocations over all hours in the current date for all organizations. | [optional]
1415
**azure_app_service_top99p** | **int** | Shows the 99th percentile of all Azure app services over all hours in the current date for all organizations. | [optional]
1516
**billable_ingested_bytes_sum** | **int** | Shows the sum of all log bytes ingested over all hours in the current date for all organizations. | [optional]
16-
**compliance_container_count_sum** | **bool, date, datetime, dict, float, int, list, str, none_type** | Shows the sum of compliance containers over all hours in the current date for all organizations. | [optional]
17-
**compliance_host_count_sum** | **int** | Shows the sum of compliance hosts over all hours in the current date for all organizations. | [optional]
1817
**container_avg** | **int** | Shows the average of all distinct containers over all hours in the current date for all organizations. | [optional]
1918
**container_hwm** | **int** | Shows the high-water mark of all distinct containers over all hours in the current date for all organizations. | [optional]
19+
**cspm_container_avg** | **int** | Shows the average number of Cloud Security Posture Management containers over all hours in the current date for all organizations. | [optional]
20+
**cspm_container_hwm** | **int** | Shows the high-water mark of Cloud Security Posture Management containers over all hours in the current date for all organizations. | [optional]
21+
**cspm_host_top99p** | **int** | Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current date for all organizations. | [optional]
2022
**custom_ts_avg** | **int** | Shows the average number of distinct custom metrics over all hours in the current date for all organizations. | [optional]
2123
**date** | **datetime** | The date for the usage. | [optional]
2224
**fargate_tasks_count_avg** | **int** | Shows the high-watermark of all Fargate tasks over all hours in the current date for all organizations. | [optional]

0 commit comments

Comments
 (0)