File tree Expand file tree Collapse file tree 4 files changed +29
-5
lines changed
src/datadog_api_client/v1 Expand file tree Collapse file tree 4 files changed +29
-5
lines changed Original file line number Diff line number Diff line change 4
4
"spec_versions": {
5
5
"v1": {
6
6
"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 "
9
9
},
10
10
"v2": {
11
11
"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 "
14
14
}
15
15
}
16
16
}
Original file line number Diff line number Diff line change @@ -2527,6 +2527,7 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
2527
2527
names = [
2528
2528
" names_example" ,
2529
2529
] # [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
2530
2531
2531
2532
# example passing only required values which don't have defaults set
2532
2533
try :
@@ -2540,7 +2541,7 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
2540
2541
# and optional values
2541
2542
try :
2542
2543
# 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 )
2544
2545
pprint(api_response)
2545
2546
except datadog_api_client.v1.ApiException as e:
2546
2547
print (" Exception when calling UsageMeteringApi->get_usage_top_avg_metrics: %s \n " % e)
@@ -2552,6 +2553,7 @@ Name | Type | Description | Notes
2552
2553
------------- | ------------- | ------------- | -------------
2553
2554
** month** | ** datetime** | Datetime in ISO-8601 format, UTC, precise to month: [ YYYY-MM] for usage beginning at this hour. |
2554
2555
** 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
2555
2557
2556
2558
### Return type
2557
2559
Original file line number Diff line number Diff line change @@ -3392,6 +3392,7 @@ def __get_usage_top_avg_metrics(
3392
3392
3393
3393
Keyword Args:
3394
3394
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
3395
3396
_return_http_data_only (bool): response data without head status
3396
3397
code and headers. Default is True.
3397
3398
_preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -3456,6 +3457,7 @@ def __get_usage_top_avg_metrics(
3456
3457
'all' : [
3457
3458
'month' ,
3458
3459
'names' ,
3460
+ 'limit' ,
3459
3461
],
3460
3462
'required' : [
3461
3463
'month' ,
@@ -3465,10 +3467,16 @@ def __get_usage_top_avg_metrics(
3465
3467
'enum' : [
3466
3468
],
3467
3469
'validation' : [
3470
+ 'limit' ,
3468
3471
]
3469
3472
},
3470
3473
root_map = {
3471
3474
'validations' : {
3475
+ ('limit' ,): {
3476
+
3477
+ 'inclusive_maximum' : 5000 ,
3478
+ 'inclusive_minimum' : 1 ,
3479
+ },
3472
3480
},
3473
3481
'allowed_values' : {
3474
3482
},
@@ -3477,14 +3485,18 @@ def __get_usage_top_avg_metrics(
3477
3485
(datetime ,),
3478
3486
'names' :
3479
3487
([str ],),
3488
+ 'limit' :
3489
+ (int ,),
3480
3490
},
3481
3491
'attribute_map' : {
3482
3492
'month' : 'month' ,
3483
3493
'names' : 'names' ,
3494
+ 'limit' : 'limit' ,
3484
3495
},
3485
3496
'location_map' : {
3486
3497
'month' : 'query' ,
3487
3498
'names' : 'query' ,
3499
+ 'limit' : 'query' ,
3488
3500
},
3489
3501
'collection_format_map' : {
3490
3502
'names' : 'multi' ,
Original file line number Diff line number Diff line change @@ -15837,6 +15837,16 @@ paths:
15837
15837
items:
15838
15838
type: string
15839
15839
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
15840
15850
responses:
15841
15851
'200':
15842
15852
content:
You can’t perform that action at this time.
0 commit comments