Skip to content

Commit 490e026

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2cde5242 of spec repo
1 parent abf0285 commit 490e026

File tree

5 files changed

+128
-4
lines changed

5 files changed

+128
-4
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.6.4",
7-
"regenerated": "2022-12-23 14:08:41.709526",
8-
"spec_repo_commit": "c3b2f174"
7+
"regenerated": "2022-12-23 16:46:35.787135",
8+
"spec_repo_commit": "2cde5242"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-12-23 14:08:41.721393",
13-
"spec_repo_commit": "c3b2f174"
12+
"regenerated": "2022-12-23 16:46:35.798098",
13+
"spec_repo_commit": "2cde5242"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9694,6 +9694,14 @@ components:
96949694
description: A tag to apply to your SLO.
96959695
type: string
96969696
type: array
9697+
target_threshold:
9698+
description: 'The target value for the service level indicator within the
9699+
corresponding
9700+
9701+
timeframe.'
9702+
example: 99.9
9703+
format: double
9704+
type: number
96979705
thresholds:
96989706
description: 'The thresholds (timeframes and associated targets) for this
96999707
service level
@@ -9708,8 +9716,15 @@ components:
97089716
items:
97099717
$ref: '#/components/schemas/SLOThreshold'
97109718
type: array
9719+
timeframe:
9720+
$ref: '#/components/schemas/SLOTimeframe'
97119721
type:
97129722
$ref: '#/components/schemas/SLOType'
9723+
warning_threshold:
9724+
description: The warning value for the service level objective.
9725+
example: 90.0
9726+
format: double
9727+
type: number
97139728
type: object
97149729
SLOThreshold:
97159730
description: SLO thresholds (target and optionally warning) for a single time
@@ -10593,6 +10608,14 @@ components:
1059310608
description: A tag to apply to your SLO.
1059410609
type: string
1059510610
type: array
10611+
target_threshold:
10612+
description: 'The target value for the service level indicator within the
10613+
corresponding
10614+
10615+
timeframe.'
10616+
example: 99.9
10617+
format: double
10618+
type: number
1059610619
thresholds:
1059710620
description: 'The thresholds (timeframes and associated targets) for this
1059810621
service level
@@ -10607,8 +10630,15 @@ components:
1060710630
items:
1060810631
$ref: '#/components/schemas/SLOThreshold'
1060910632
type: array
10633+
timeframe:
10634+
$ref: '#/components/schemas/SLOTimeframe'
1061010635
type:
1061110636
$ref: '#/components/schemas/SLOType'
10637+
warning_threshold:
10638+
description: The warning value for the service level objective.
10639+
example: 90.0
10640+
format: double
10641+
type: number
1061210642
required:
1061310643
- name
1061410644
- thresholds
@@ -10697,6 +10727,12 @@ components:
1069710727
description: A tag to apply to your SLO.
1069810728
type: string
1069910729
type: array
10730+
target_threshold:
10731+
description: The target value for the service level indicator within the
10732+
corresponding timeframe.
10733+
example: 99.9
10734+
format: double
10735+
type: number
1070010736
thresholds:
1070110737
description: 'The thresholds (timeframes and associated targets) for this
1070210738
service level
@@ -10711,8 +10747,16 @@ components:
1071110747
items:
1071210748
$ref: '#/components/schemas/SLOThreshold'
1071310749
type: array
10750+
timeframe:
10751+
$ref: '#/components/schemas/SLOTimeframe'
1071410752
type:
1071510753
$ref: '#/components/schemas/SLOType'
10754+
warning_threshold:
10755+
description: The (optional) warning value for the service level objective.
10756+
Must be greater than the target.
10757+
example: 99.95
10758+
format: double
10759+
type: number
1071610760
required:
1071710761
- name
1071810762
- thresholds

src/datadog_api_client/v1/model/service_level_objective.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from datadog_api_client.v1.model.creator import Creator
1919
from datadog_api_client.v1.model.service_level_objective_query import ServiceLevelObjectiveQuery
2020
from datadog_api_client.v1.model.slo_threshold import SLOThreshold
21+
from datadog_api_client.v1.model.slo_timeframe import SLOTimeframe
2122
from datadog_api_client.v1.model.slo_type import SLOType
2223

2324

@@ -27,6 +28,7 @@ def openapi_types(_):
2728
from datadog_api_client.v1.model.creator import Creator
2829
from datadog_api_client.v1.model.service_level_objective_query import ServiceLevelObjectiveQuery
2930
from datadog_api_client.v1.model.slo_threshold import SLOThreshold
31+
from datadog_api_client.v1.model.slo_timeframe import SLOTimeframe
3032
from datadog_api_client.v1.model.slo_type import SLOType
3133

3234
return {
@@ -41,8 +43,11 @@ def openapi_types(_):
4143
"name": (str,),
4244
"query": (ServiceLevelObjectiveQuery,),
4345
"tags": ([str],),
46+
"target_threshold": (float,),
4447
"thresholds": ([SLOThreshold],),
48+
"timeframe": (SLOTimeframe,),
4549
"type": (SLOType,),
50+
"warning_threshold": (float,),
4651
}
4752

4853
attribute_map = {
@@ -57,8 +62,11 @@ def openapi_types(_):
5762
"name": "name",
5863
"query": "query",
5964
"tags": "tags",
65+
"target_threshold": "target_threshold",
6066
"thresholds": "thresholds",
67+
"timeframe": "timeframe",
6168
"type": "type",
69+
"warning_threshold": "warning_threshold",
6270
}
6371
read_only_vars = {
6472
"created_at",
@@ -82,6 +90,9 @@ def __init__(
8290
monitor_tags: Union[List[str], UnsetType] = unset,
8391
query: Union[ServiceLevelObjectiveQuery, UnsetType] = unset,
8492
tags: Union[List[str], UnsetType] = unset,
93+
target_threshold: Union[float, UnsetType] = unset,
94+
timeframe: Union[SLOTimeframe, UnsetType] = unset,
95+
warning_threshold: Union[float, UnsetType] = unset,
8596
**kwargs,
8697
):
8798
"""
@@ -144,12 +155,22 @@ def __init__(
144155
Optional in create/update requests.
145156
:type tags: [str], optional
146157
158+
:param target_threshold: The target value for the service level indicator within the corresponding
159+
timeframe.
160+
:type target_threshold: float, optional
161+
147162
:param thresholds: The thresholds (timeframes and associated targets) for this service level
148163
objective object.
149164
:type thresholds: [SLOThreshold]
150165
166+
:param timeframe: The SLO time window options.
167+
:type timeframe: SLOTimeframe, optional
168+
151169
:param type: The type of the service level objective.
152170
:type type: SLOType
171+
172+
:param warning_threshold: The warning value for the service level objective.
173+
:type warning_threshold: float, optional
153174
"""
154175
if created_at is not unset:
155176
kwargs["created_at"] = created_at
@@ -171,6 +192,12 @@ def __init__(
171192
kwargs["query"] = query
172193
if tags is not unset:
173194
kwargs["tags"] = tags
195+
if target_threshold is not unset:
196+
kwargs["target_threshold"] = target_threshold
197+
if timeframe is not unset:
198+
kwargs["timeframe"] = timeframe
199+
if warning_threshold is not unset:
200+
kwargs["warning_threshold"] = warning_threshold
174201
super().__init__(kwargs)
175202

176203
self_.name = name

src/datadog_api_client/v1/model/service_level_objective_request.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
if TYPE_CHECKING:
1818
from datadog_api_client.v1.model.service_level_objective_query import ServiceLevelObjectiveQuery
1919
from datadog_api_client.v1.model.slo_threshold import SLOThreshold
20+
from datadog_api_client.v1.model.slo_timeframe import SLOTimeframe
2021
from datadog_api_client.v1.model.slo_type import SLOType
2122

2223

@@ -25,6 +26,7 @@ class ServiceLevelObjectiveRequest(ModelNormal):
2526
def openapi_types(_):
2627
from datadog_api_client.v1.model.service_level_objective_query import ServiceLevelObjectiveQuery
2728
from datadog_api_client.v1.model.slo_threshold import SLOThreshold
29+
from datadog_api_client.v1.model.slo_timeframe import SLOTimeframe
2830
from datadog_api_client.v1.model.slo_type import SLOType
2931

3032
return {
@@ -34,8 +36,11 @@ def openapi_types(_):
3436
"name": (str,),
3537
"query": (ServiceLevelObjectiveQuery,),
3638
"tags": ([str],),
39+
"target_threshold": (float,),
3740
"thresholds": ([SLOThreshold],),
41+
"timeframe": (SLOTimeframe,),
3842
"type": (SLOType,),
43+
"warning_threshold": (float,),
3944
}
4045

4146
attribute_map = {
@@ -45,8 +50,11 @@ def openapi_types(_):
4550
"name": "name",
4651
"query": "query",
4752
"tags": "tags",
53+
"target_threshold": "target_threshold",
4854
"thresholds": "thresholds",
55+
"timeframe": "timeframe",
4956
"type": "type",
57+
"warning_threshold": "warning_threshold",
5058
}
5159

5260
def __init__(
@@ -59,6 +67,9 @@ def __init__(
5967
monitor_ids: Union[List[int], UnsetType] = unset,
6068
query: Union[ServiceLevelObjectiveQuery, UnsetType] = unset,
6169
tags: Union[List[str], UnsetType] = unset,
70+
target_threshold: Union[float, UnsetType] = unset,
71+
timeframe: Union[SLOTimeframe, UnsetType] = unset,
72+
warning_threshold: Union[float, UnsetType] = unset,
6273
**kwargs,
6374
):
6475
"""
@@ -95,12 +106,21 @@ def __init__(
95106
Optional in create/update requests.
96107
:type tags: [str], optional
97108
109+
:param target_threshold: The target value for the service level indicator within the corresponding timeframe.
110+
:type target_threshold: float, optional
111+
98112
:param thresholds: The thresholds (timeframes and associated targets) for this service level
99113
objective object.
100114
:type thresholds: [SLOThreshold]
101115
116+
:param timeframe: The SLO time window options.
117+
:type timeframe: SLOTimeframe, optional
118+
102119
:param type: The type of the service level objective.
103120
:type type: SLOType
121+
122+
:param warning_threshold: The (optional) warning value for the service level objective. Must be greater than the target.
123+
:type warning_threshold: float, optional
104124
"""
105125
if description is not unset:
106126
kwargs["description"] = description
@@ -112,6 +132,12 @@ def __init__(
112132
kwargs["query"] = query
113133
if tags is not unset:
114134
kwargs["tags"] = tags
135+
if target_threshold is not unset:
136+
kwargs["target_threshold"] = target_threshold
137+
if timeframe is not unset:
138+
kwargs["timeframe"] = timeframe
139+
if warning_threshold is not unset:
140+
kwargs["warning_threshold"] = warning_threshold
115141
super().__init__(kwargs)
116142

117143
self_.name = name

src/datadog_api_client/v1/model/slo_response_data.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from datadog_api_client.v1.model.creator import Creator
1919
from datadog_api_client.v1.model.service_level_objective_query import ServiceLevelObjectiveQuery
2020
from datadog_api_client.v1.model.slo_threshold import SLOThreshold
21+
from datadog_api_client.v1.model.slo_timeframe import SLOTimeframe
2122
from datadog_api_client.v1.model.slo_type import SLOType
2223

2324

@@ -27,6 +28,7 @@ def openapi_types(_):
2728
from datadog_api_client.v1.model.creator import Creator
2829
from datadog_api_client.v1.model.service_level_objective_query import ServiceLevelObjectiveQuery
2930
from datadog_api_client.v1.model.slo_threshold import SLOThreshold
31+
from datadog_api_client.v1.model.slo_timeframe import SLOTimeframe
3032
from datadog_api_client.v1.model.slo_type import SLOType
3133

3234
return {
@@ -42,8 +44,11 @@ def openapi_types(_):
4244
"name": (str,),
4345
"query": (ServiceLevelObjectiveQuery,),
4446
"tags": ([str],),
47+
"target_threshold": (float,),
4548
"thresholds": ([SLOThreshold],),
49+
"timeframe": (SLOTimeframe,),
4650
"type": (SLOType,),
51+
"warning_threshold": (float,),
4752
}
4853

4954
attribute_map = {
@@ -59,8 +64,11 @@ def openapi_types(_):
5964
"name": "name",
6065
"query": "query",
6166
"tags": "tags",
67+
"target_threshold": "target_threshold",
6268
"thresholds": "thresholds",
69+
"timeframe": "timeframe",
6370
"type": "type",
71+
"warning_threshold": "warning_threshold",
6472
}
6573
read_only_vars = {
6674
"created_at",
@@ -83,8 +91,11 @@ def __init__(
8391
name: Union[str, UnsetType] = unset,
8492
query: Union[ServiceLevelObjectiveQuery, UnsetType] = unset,
8593
tags: Union[List[str], UnsetType] = unset,
94+
target_threshold: Union[float, UnsetType] = unset,
8695
thresholds: Union[List[SLOThreshold], UnsetType] = unset,
96+
timeframe: Union[SLOTimeframe, UnsetType] = unset,
8797
type: Union[SLOType, UnsetType] = unset,
98+
warning_threshold: Union[float, UnsetType] = unset,
8899
**kwargs,
89100
):
90101
"""
@@ -150,12 +161,22 @@ def __init__(
150161
Optional in create/update requests.
151162
:type tags: [str], optional
152163
164+
:param target_threshold: The target value for the service level indicator within the corresponding
165+
timeframe.
166+
:type target_threshold: float, optional
167+
153168
:param thresholds: The thresholds (timeframes and associated targets) for this service level
154169
objective object.
155170
:type thresholds: [SLOThreshold], optional
156171
172+
:param timeframe: The SLO time window options.
173+
:type timeframe: SLOTimeframe, optional
174+
157175
:param type: The type of the service level objective.
158176
:type type: SLOType, optional
177+
178+
:param warning_threshold: The warning value for the service level objective.
179+
:type warning_threshold: float, optional
159180
"""
160181
if configured_alert_ids is not unset:
161182
kwargs["configured_alert_ids"] = configured_alert_ids
@@ -181,8 +202,14 @@ def __init__(
181202
kwargs["query"] = query
182203
if tags is not unset:
183204
kwargs["tags"] = tags
205+
if target_threshold is not unset:
206+
kwargs["target_threshold"] = target_threshold
184207
if thresholds is not unset:
185208
kwargs["thresholds"] = thresholds
209+
if timeframe is not unset:
210+
kwargs["timeframe"] = timeframe
186211
if type is not unset:
187212
kwargs["type"] = type
213+
if warning_threshold is not unset:
214+
kwargs["warning_threshold"] = warning_threshold
188215
super().__init__(kwargs)

0 commit comments

Comments
 (0)