Skip to content

Commit c0d9c03

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 4cc1eed of spec repo (#497)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 3a99de8 commit c0d9c03

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
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-06-29 10:15:19.603968",
8-
"spec_repo_commit": "6fd5e2f"
7+
"regenerated": "2021-06-30 07:22:51.494685",
8+
"spec_repo_commit": "4cc1eed"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev8",
12-
"regenerated": "2021-06-29 10:15:47.477187",
13-
"spec_repo_commit": "6fd5e2f"
12+
"regenerated": "2021-06-30 07:23:17.616373",
13+
"spec_repo_commit": "4cc1eed"
1414
}
1515
}
1616
}

docs/v1/SLOTimeframe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The SLO time window options.
55
## Properties
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**value** | **str** | The SLO time window options. | must be one of ["7d", "30d", "90d", ]
8+
**value** | **str** | The SLO time window options. | must be one of ["7d", "30d", "90d", "custom", ]
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

docs/v1/ServiceLevelObjectivesApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ with ApiClient(configuration) as api_client:
426426
slo_id = "slo_id_example" # str | The ID of the service level objective object.
427427
from_ts = 1 # int | The `from` timestamp for the query window in epoch seconds.
428428
to_ts = 1 # int | The `to` timestamp for the query window in epoch seconds.
429-
target = 0 # float | The SLO target. If `target` is passed in, the response will include the error budget that remains. (optional)
429+
target = 0 # float | The SLO target. If `target` is passed in, the response will include the remaining error budget and a timeframe value of `custom`. (optional)
430430

431431
# example passing only required values which don't have defaults set
432432
try:
@@ -454,7 +454,7 @@ Name | Type | Description | Notes
454454
**slo_id** | **str**| The ID of the service level objective object. |
455455
**from_ts** | **int**| The &#x60;from&#x60; timestamp for the query window in epoch seconds. |
456456
**to_ts** | **int**| The &#x60;to&#x60; timestamp for the query window in epoch seconds. |
457-
**target** | **float**| The SLO target. If &#x60;target&#x60; is passed in, the response will include the error budget that remains. | [optional]
457+
**target** | **float**| The SLO target. If &#x60;target&#x60; is passed in, the response will include the remaining error budget and a timeframe value of &#x60;custom&#x60;. | [optional]
458458

459459
### Return type
460460

src/datadog_api_client/v1/api/service_level_objectives_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ def get_slo_history(self, slo_id, from_ts, to_ts, **kwargs):
639639
to_ts (int): The `to` timestamp for the query window in epoch seconds.
640640
641641
Keyword Args:
642-
target (float): The SLO target. If `target` is passed in, the response will include the error budget that remains.. [optional]
642+
target (float): The SLO target. If `target` is passed in, the response will include the remaining error budget and a timeframe value of `custom`.. [optional]
643643
_return_http_data_only (bool): response data without head status
644644
code and headers. Default is True.
645645
_preload_content (bool): if False, the urllib3.HTTPResponse object

src/datadog_api_client/v1/model/slo_timeframe.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class SLOTimeframe(ModelSimple):
4747
"SEVEN_DAYS": "7d",
4848
"THIRTY_DAYS": "30d",
4949
"NINETY_DAYS": "90d",
50+
"CUSTOM": "custom",
5051
},
5152
}
5253

@@ -96,10 +97,10 @@ def __init__(self, *args, **kwargs):
9697
Note that value can be passed either in args or in kwargs, but not in both.
9798
9899
Args:
99-
args[0] (str): The SLO time window options.., must be one of ["7d", "30d", "90d", ] # noqa: E501
100+
args[0] (str): The SLO time window options.., must be one of ["7d", "30d", "90d", "custom", ] # noqa: E501
100101
101102
Keyword Args:
102-
value (str): The SLO time window options.., must be one of ["7d", "30d", "90d", ] # noqa: E501
103+
value (str): The SLO time window options.., must be one of ["7d", "30d", "90d", "custom", ] # noqa: E501
103104
_check_type (bool): if True, values for parameters in openapi_types
104105
will be type checked and a TypeError will be
105106
raised if the wrong type is input.

src/datadog_api_client/v1/openapi.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7607,11 +7607,13 @@ components:
76077607
- 7d
76087608
- 30d
76097609
- 90d
7610+
- custom
76107611
type: string
76117612
x-enum-varnames:
76127613
- SEVEN_DAYS
76137614
- THIRTY_DAYS
76147615
- NINETY_DAYS
7616+
- CUSTOM
76157617
SLOType:
76167618
description: The type of the service level objective.
76177619
enum:
@@ -19534,7 +19536,7 @@ paths:
1953419536
format: int64
1953519537
type: integer
1953619538
- description: The SLO target. If `target` is passed in, the response will include
19537-
the error budget that remains.
19539+
the remaining error budget and a timeframe value of `custom`.
1953819540
in: query
1953919541
name: target
1954019542
schema:

0 commit comments

Comments
 (0)