Skip to content

Commit adb3191

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 92744ec of spec repo (#374)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 71b6a5e commit adb3191

File tree

4 files changed

+40
-6
lines changed

4 files changed

+40
-6
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.dev6",
7-
"regenerated": "2021-04-12 12:07:14.768911",
8-
"spec_repo_commit": "fd4a082"
7+
"regenerated": "2021-04-12 14:29:01.947373",
8+
"spec_repo_commit": "92744ec"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev6",
12-
"regenerated": "2021-04-12 12:07:44.877474",
13-
"spec_repo_commit": "fd4a082"
12+
"regenerated": "2021-04-12 14:29:29.532815",
13+
"spec_repo_commit": "92744ec"
1414
}
1515
}
1616
}

docs/v1/ServiceLevelObjectivesApi.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ with ApiClient(configuration) as api_client:
412412
slo_id = "slo_id_example" # str | The ID of the service level objective object.
413413
from_ts = 1 # int | The `from` timestamp for the query window in epoch seconds.
414414
to_ts = 1 # int | The `to` timestamp for the query window in epoch seconds.
415+
target = 0 # float | The SLO target. If `target` is passed in, the response will include the error budget that remains. (optional)
415416

416417
# example passing only required values which don't have defaults set
417418
try:
@@ -420,6 +421,15 @@ with ApiClient(configuration) as api_client:
420421
pprint(api_response)
421422
except ApiException as e:
422423
print("Exception when calling ServiceLevelObjectivesApi->get_slo_history: %s\n" % e)
424+
425+
# example passing only required values which don't have defaults set
426+
# and optional values
427+
try:
428+
# Get an SLO's history
429+
api_response = api_instance.get_slo_history(slo_id, from_ts, to_ts, target=target)
430+
pprint(api_response)
431+
except ApiException as e:
432+
print("Exception when calling ServiceLevelObjectivesApi->get_slo_history: %s\n" % e)
423433
```
424434

425435

@@ -430,6 +440,7 @@ Name | Type | Description | Notes
430440
**slo_id** | **str**| The ID of the service level objective object. |
431441
**from_ts** | **int**| The &#x60;from&#x60; timestamp for the query window in epoch seconds. |
432442
**to_ts** | **int**| The &#x60;to&#x60; timestamp for the query window in epoch seconds. |
443+
**target** | **float**| The SLO target. If &#x60;target&#x60; is passed in, the response will include the error budget that remains. | [optional]
433444

434445
### Return type
435446

src/datadog_api_client/v1/api/service_level_objectives_api.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ def __init__(self, api_client=None):
253253
"slo_id",
254254
"from_ts",
255255
"to_ts",
256+
"target",
256257
],
257258
"required": [
258259
"slo_id",
@@ -261,25 +262,35 @@ def __init__(self, api_client=None):
261262
],
262263
"nullable": [],
263264
"enum": [],
264-
"validation": [],
265+
"validation": [
266+
"target",
267+
],
265268
},
266269
root_map={
267-
"validations": {},
270+
"validations": {
271+
("target",): {
272+
"exclusive_maximum" "inclusive_maximum": 100,
273+
"exclusive_minimum" "inclusive_minimum": 0,
274+
},
275+
},
268276
"allowed_values": {},
269277
"openapi_types": {
270278
"slo_id": (str,),
271279
"from_ts": (int,),
272280
"to_ts": (int,),
281+
"target": (float,),
273282
},
274283
"attribute_map": {
275284
"slo_id": "slo_id",
276285
"from_ts": "from_ts",
277286
"to_ts": "to_ts",
287+
"target": "target",
278288
},
279289
"location_map": {
280290
"slo_id": "path",
281291
"from_ts": "query",
282292
"to_ts": "query",
293+
"target": "query",
283294
},
284295
"collection_format_map": {},
285296
},
@@ -615,6 +626,7 @@ def get_slo_history(self, slo_id, from_ts, to_ts, **kwargs):
615626
to_ts (int): The `to` timestamp for the query window in epoch seconds.
616627
617628
Keyword Args:
629+
target (float): The SLO target. If `target` is passed in, the response will include the error budget that remains.. [optional]
618630
_return_http_data_only (bool): response data without head status
619631
code and headers. Default is True.
620632
_preload_content (bool): if False, the urllib3.HTTPResponse object

src/datadog_api_client/v1/openapi.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16874,6 +16874,17 @@ paths:
1687416874
schema:
1687516875
format: int64
1687616876
type: integer
16877+
- description: The SLO target. If `target` is passed in, the response will include
16878+
the error budget that remains.
16879+
in: query
16880+
name: target
16881+
schema:
16882+
exclusiveMaximum: true
16883+
exclusiveMinimum: true
16884+
format: double
16885+
maximum: 100
16886+
minimum: 0
16887+
type: number
1687716888
responses:
1687816889
'200':
1687916890
content:

0 commit comments

Comments
 (0)