Skip to content

Commit 0600c34

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit e3c8008 of spec repo (#159)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent c0e30e2 commit 0600c34

19 files changed

+866
-109
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.3.0",
7-
"regenerated": "2020-11-18 15:48:57.027817",
8-
"spec_repo_commit": "1014300"
7+
"regenerated": "2020-11-18 17:04:46.172436",
8+
"spec_repo_commit": "e3c8008"
99
},
1010
"v2": {
1111
"apigentools_version": "1.3.0",
12-
"regenerated": "2020-11-18 15:49:07.165244",
13-
"spec_repo_commit": "1014300"
12+
"regenerated": "2020-11-18 17:04:56.312456",
13+
"spec_repo_commit": "e3c8008"
1414
}
1515
}
1616
}

docs/v1/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ Class | Method | HTTP request | Description
238238
*TagsApi* | [**list_host_tags**](TagsApi.md#list_host_tags) | **GET** /api/v1/tags/hosts | Get Tags
239239
*TagsApi* | [**update_host_tags**](TagsApi.md#update_host_tags) | **PUT** /api/v1/tags/hosts/{host_name} | Update host tags
240240
*UsageMeteringApi* | [**get_daily_custom_reports**](UsageMeteringApi.md#get_daily_custom_reports) | **GET** /api/v1/daily_custom_reports | Get the list of available daily custom reports
241+
*UsageMeteringApi* | [**get_incident_management**](UsageMeteringApi.md#get_incident_management) | **GET** /api/v1/usage/incident-management | Get hourly usage for incident management
241242
*UsageMeteringApi* | [**get_ingested_spans**](UsageMeteringApi.md#get_ingested_spans) | **GET** /api/v1/usage/ingested-spans | Get hourly usage for ingested spans
242243
*UsageMeteringApi* | [**get_monthly_custom_reports**](UsageMeteringApi.md#get_monthly_custom_reports) | **GET** /api/v1/monthly_custom_reports | Get the list of available monthly custom reports
243244
*UsageMeteringApi* | [**get_specified_daily_custom_reports**](UsageMeteringApi.md#get_specified_daily_custom_reports) | **GET** /api/v1/daily_custom_reports/{report_id} | Get specified daily custom reports
@@ -610,6 +611,8 @@ Class | Method | HTTP request | Description
610611
- [UsageFargateResponse](UsageFargateResponse.md)
611612
- [UsageHostHour](UsageHostHour.md)
612613
- [UsageHostsResponse](UsageHostsResponse.md)
614+
- [UsageIncidentManagementHour](UsageIncidentManagementHour.md)
615+
- [UsageIncidentManagementResponse](UsageIncidentManagementResponse.md)
613616
- [UsageIndexedSpansHour](UsageIndexedSpansHour.md)
614617
- [UsageIndexedSpansResponse](UsageIndexedSpansResponse.md)
615618
- [UsageIngestedSpansHour](UsageIngestedSpansHour.md)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# UsageIncidentManagementHour
2+
3+
Incident management usage for a given organization for a given hour.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**hour** | **datetime** | The hour for the usage. | [optional]
8+
**monthly_active_users** | **int** | Contains the total number monthly active users from the start of the given hour&#39;s month until the given hour. | [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+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# UsageIncidentManagementResponse
2+
3+
Response containing the incident management usage for each hour for a given organization.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**usage** | [**[UsageIncidentManagementHour]**](UsageIncidentManagementHour.md) | Get hourly usage for incident management. | [optional]
8+
9+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
10+
11+

docs/v1/UsageMeteringApi.md

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.datadoghq.com*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**get_daily_custom_reports**](UsageMeteringApi.md#get_daily_custom_reports) | **GET** /api/v1/daily_custom_reports | Get the list of available daily custom reports
8+
[**get_incident_management**](UsageMeteringApi.md#get_incident_management) | **GET** /api/v1/usage/incident-management | Get hourly usage for incident management
89
[**get_ingested_spans**](UsageMeteringApi.md#get_ingested_spans) | **GET** /api/v1/usage/ingested-spans | Get hourly usage for ingested spans
910
[**get_monthly_custom_reports**](UsageMeteringApi.md#get_monthly_custom_reports) | **GET** /api/v1/monthly_custom_reports | Get the list of available monthly custom reports
1011
[**get_specified_daily_custom_reports**](UsageMeteringApi.md#get_specified_daily_custom_reports) | **GET** /api/v1/daily_custom_reports/{report_id} | Get specified daily custom reports
@@ -122,6 +123,101 @@ Name | Type | Description | Notes
122123

123124
[[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)
124125

126+
# **get_incident_management**
127+
> UsageIncidentManagementResponse get_incident_management(start_hr)
128+
129+
Get hourly usage for incident management
130+
131+
Get hourly usage for incident management.
132+
133+
### Example
134+
135+
* Api Key Authentication (apiKeyAuth):
136+
* Api Key Authentication (appKeyAuth):
137+
```python
138+
import os
139+
from dateutil.parser import parse as dateutil_parser
140+
import datadog_api_client.v1
141+
from datadog_api_client.v1.api import usage_metering_api
142+
from datadog_api_client.v1.models import *
143+
from pprint import pprint
144+
# Defining the host is optional and defaults to https://api.datadoghq.com
145+
# See configuration.py for a list of all supported configuration parameters.
146+
configuration = datadog_api_client.v1.Configuration(
147+
host = "https://api.datadoghq.com"
148+
)
149+
150+
# The client must configure the authentication and authorization parameters
151+
# in accordance with the API server security policy.
152+
# Examples for each auth method are provided below, use the example that
153+
# satisfies your auth use case.
154+
155+
# Configure API key authorization: apiKeyAuth
156+
configuration.api_key['apiKeyAuth'] = os.getenv('DD_CLIENT_API_KEY')
157+
158+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
159+
# configuration.api_key_prefix['apiKeyAuth'] = 'Bearer'
160+
161+
# Configure API key authorization: appKeyAuth
162+
configuration.api_key['appKeyAuth'] = os.getenv('DD_CLIENT_APP_KEY')
163+
164+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
165+
# configuration.api_key_prefix['appKeyAuth'] = 'Bearer'
166+
167+
# Enter a context with an instance of the API client
168+
with datadog_api_client.v1.ApiClient(configuration) as api_client:
169+
# Create an instance of the API class
170+
api_instance = usage_metering_api.UsageMeteringApi(api_client)
171+
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.
172+
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)
173+
174+
# example passing only required values which don't have defaults set
175+
try:
176+
# Get hourly usage for incident management
177+
api_response = api_instance.get_incident_management(start_hr)
178+
pprint(api_response)
179+
except datadog_api_client.v1.ApiException as e:
180+
print("Exception when calling UsageMeteringApi->get_incident_management: %s\n" % e)
181+
182+
# example passing only required values which don't have defaults set
183+
# and optional values
184+
try:
185+
# Get hourly usage for incident management
186+
api_response = api_instance.get_incident_management(start_hr, end_hr=end_hr)
187+
pprint(api_response)
188+
except datadog_api_client.v1.ApiException as e:
189+
print("Exception when calling UsageMeteringApi->get_incident_management: %s\n" % e)
190+
```
191+
192+
### Parameters
193+
194+
Name | Type | Description | Notes
195+
------------- | ------------- | ------------- | -------------
196+
**start_hr** | **datetime**| Datetime in ISO-8601 format, UTC, precise to hour: &#x60;[YYYY-MM-DDThh]&#x60; for usage beginning at this hour. |
197+
**end_hr** | **datetime**| Datetime in ISO-8601 format, UTC, precise to hour: &#x60;[YYYY-MM-DDThh]&#x60; for usage ending **before** this hour. | [optional]
198+
199+
### Return type
200+
201+
[**UsageIncidentManagementResponse**](UsageIncidentManagementResponse.md)
202+
203+
### Authorization
204+
205+
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
206+
207+
### HTTP request headers
208+
209+
- **Content-Type**: Not defined
210+
- **Accept**: application/json;datetime-format=rfc3339
211+
212+
### HTTP response details
213+
| Status code | Description | Response headers |
214+
|-------------|-------------|------------------|
215+
**200** | OK | - |
216+
**400** | Bad Request | - |
217+
**403** | Forbidden - User is not authorized | - |
218+
219+
[[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)
220+
125221
# **get_ingested_spans**
126222
> UsageIngestedSpansResponse get_ingested_spans(start_hr)
127223

docs/v1/UsageSummaryDate.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ Name | Type | Description | Notes
1212
**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]
1313
**billable_ingested_bytes_sum** | **int** | Shows the sum of all log bytes ingested over all hours in the current date for all organizations. | [optional]
1414
**container_avg** | **int** | Shows the average of all distinct containers over all hours in the current date for all organizations. | [optional]
15-
**container_hwm** | **int** | Shows the high watermark of all distinct containers over all hours in the current date for all organizations. | [optional]
15+
**container_hwm** | **int** | Shows the high-water mark of all distinct containers over all hours in the current date for all organizations. | [optional]
1616
**custom_ts_avg** | **int** | Shows the average number of distinct custom metrics over all hours in the current date for all organizations. | [optional]
1717
**date** | **datetime** | The date for the usage. | [optional]
18-
**fargate_tasks_count_avg** | **int** | Shows the high watermark of all Fargate tasks over all hours in the current date for all organizations. | [optional]
18+
**fargate_tasks_count_avg** | **int** | Shows the high-watermark of all Fargate tasks over all hours in the current date for all organizations. | [optional]
1919
**fargate_tasks_count_hwm** | **int** | Shows the average of all Fargate tasks over all hours in the current date for all organizations. | [optional]
2020
**gcp_host_top99p** | **int** | Shows the 99th percentile of all GCP hosts over all hours in the current date for all organizations. | [optional]
21+
**incident_management_monthly_active_users_hwm** | **int** | Shows the high-water mark of incident management monthly active users over all hours in the current date for all organizations. | [optional]
2122
**indexed_events_count_sum** | **int** | Shows the sum of all log events indexed over all hours in the current date for all organizations. | [optional]
2223
**infra_host_top99p** | **int** | Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for all organizations. | [optional]
2324
**ingested_events_bytes_sum** | **int** | Shows the sum of all log bytes ingested over all hours in the current date for all organizations. | [optional]

docs/v1/UsageSummaryDateOrg.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ Name | Type | Description | Notes
1111
**aws_lambda_invocations_sum** | **int** | Shows the sum of all AWS Lambda invocations over all hours in the current date for the given org. | [optional]
1212
**billable_ingested_bytes_sum** | **int** | Shows the sum of all log bytes ingested over all hours in the current date for the given org. | [optional]
1313
**container_avg** | **int** | Shows the average of all distinct containers over all hours in the current date for the given org. | [optional]
14-
**container_hwm** | **int** | Shows the high watermark of all distinct containers over all hours in the current date for the given org. | [optional]
14+
**container_hwm** | **int** | Shows the high-water mark of all distinct containers over all hours in the current date for the given org. | [optional]
1515
**custom_ts_avg** | **int** | Shows the average number of distinct custom metrics over all hours in the current date for the given org. | [optional]
1616
**fargate_tasks_count_avg** | **int** | The average task count for Fargate. | [optional]
17-
**fargate_tasks_count_hwm** | **int** | Shows the high watermark of all Fargate tasks over all hours in the current date for the given org. | [optional]
17+
**fargate_tasks_count_hwm** | **int** | Shows the high-water mark of all Fargate tasks over all hours in the current date for the given org. | [optional]
1818
**gcp_host_top99p** | **int** | Shows the 99th percentile of all GCP hosts over all hours in the current date for the given org. | [optional]
1919
**id** | **str** | The organization id. | [optional]
20+
**incident_management_monthly_active_users_hwm** | **int** | Shows the high-water mark of incident management monthly active users over all hours in the current date for the given org. | [optional]
2021
**indexed_events_count_sum** | **int** | Shows the sum of all log events indexed over all hours in the current date for the given org. | [optional]
2122
**infra_host_top99p** | **int** | Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for the given org. | [optional]
2223
**ingested_events_bytes_sum** | **int** | Shows the sum of all log bytes ingested over all hours in the current date for the given org. | [optional]

0 commit comments

Comments
 (0)