Skip to content

Commit bcbd68d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 605e8f8 of spec repo (#166)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 67b050f commit bcbd68d

File tree

4 files changed

+29
-5
lines changed

4 files changed

+29
-5
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-24 09:46:11.720897",
8-
"spec_repo_commit": "8ea24b0"
7+
"regenerated": "2020-11-24 10:21:04.823364",
8+
"spec_repo_commit": "605e8f8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.3.0",
12-
"regenerated": "2020-11-24 09:46:22.351897",
13-
"spec_repo_commit": "8ea24b0"
12+
"regenerated": "2020-11-24 10:21:18.659367",
13+
"spec_repo_commit": "605e8f8"
1414
}
1515
}
1616
}

docs/v1/UsageMeteringApi.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2527,6 +2527,7 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
25272527
names = [
25282528
"names_example",
25292529
] # [str] | Comma-separated list of metric names. (optional)
2530+
limit = 500 # int | Maximum number of results to return. (optional) if omitted the server will use the default value of 500
25302531

25312532
# example passing only required values which don't have defaults set
25322533
try:
@@ -2540,7 +2541,7 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
25402541
# and optional values
25412542
try:
25422543
# Get top 500 custom metrics by hourly average
2543-
api_response = api_instance.get_usage_top_avg_metrics(month, names=names)
2544+
api_response = api_instance.get_usage_top_avg_metrics(month, names=names, limit=limit)
25442545
pprint(api_response)
25452546
except datadog_api_client.v1.ApiException as e:
25462547
print("Exception when calling UsageMeteringApi->get_usage_top_avg_metrics: %s\n" % e)
@@ -2552,6 +2553,7 @@ Name | Type | Description | Notes
25522553
------------- | ------------- | ------------- | -------------
25532554
**month** | **datetime**| Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM] for usage beginning at this hour. |
25542555
**names** | **[str]**| Comma-separated list of metric names. | [optional]
2556+
**limit** | **int**| Maximum number of results to return. | [optional] if omitted the server will use the default value of 500
25552557

25562558
### Return type
25572559

src/datadog_api_client/v1/api/usage_metering_api.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3392,6 +3392,7 @@ def __get_usage_top_avg_metrics(
33923392
33933393
Keyword Args:
33943394
names ([str]): Comma-separated list of metric names.. [optional]
3395+
limit (int): Maximum number of results to return.. [optional] if omitted the server will use the default value of 500
33953396
_return_http_data_only (bool): response data without head status
33963397
code and headers. Default is True.
33973398
_preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -3456,6 +3457,7 @@ def __get_usage_top_avg_metrics(
34563457
'all': [
34573458
'month',
34583459
'names',
3460+
'limit',
34593461
],
34603462
'required': [
34613463
'month',
@@ -3465,10 +3467,16 @@ def __get_usage_top_avg_metrics(
34653467
'enum': [
34663468
],
34673469
'validation': [
3470+
'limit',
34683471
]
34693472
},
34703473
root_map={
34713474
'validations': {
3475+
('limit',): {
3476+
3477+
'inclusive_maximum': 5000,
3478+
'inclusive_minimum': 1,
3479+
},
34723480
},
34733481
'allowed_values': {
34743482
},
@@ -3477,14 +3485,18 @@ def __get_usage_top_avg_metrics(
34773485
(datetime,),
34783486
'names':
34793487
([str],),
3488+
'limit':
3489+
(int,),
34803490
},
34813491
'attribute_map': {
34823492
'month': 'month',
34833493
'names': 'names',
3494+
'limit': 'limit',
34843495
},
34853496
'location_map': {
34863497
'month': 'query',
34873498
'names': 'query',
3499+
'limit': 'query',
34883500
},
34893501
'collection_format_map': {
34903502
'names': 'multi',

src/datadog_api_client/v1/openapi.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15837,6 +15837,16 @@ paths:
1583715837
items:
1583815838
type: string
1583915839
type: array
15840+
- description: Maximum number of results to return.
15841+
in: query
15842+
name: limit
15843+
required: false
15844+
schema:
15845+
default: 500
15846+
format: int32
15847+
maximum: 5000
15848+
minimum: 1
15849+
type: integer
1584015850
responses:
1584115851
'200':
1584215852
content:

0 commit comments

Comments
 (0)