Skip to content

Commit 5d9b157

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 3445859 of spec repo (#434)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 81393b4 commit 5d9b157

File tree

10 files changed

+494
-4
lines changed

10 files changed

+494
-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.4.1.dev6",
7-
"regenerated": "2021-05-12 09:32:34.223841",
8-
"spec_repo_commit": "62c8ffe"
7+
"regenerated": "2021-05-12 18:19:21.712592",
8+
"spec_repo_commit": "3445859"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev6",
12-
"regenerated": "2021-05-12 09:33:01.936662",
13-
"spec_repo_commit": "62c8ffe"
12+
"regenerated": "2021-05-12 18:19:53.536116",
13+
"spec_repo_commit": "3445859"
1414
}
1515
}
1616
}

docs/v1/Downtime.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Downtiming gives you greater control over monitor notifications by allowing you
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**active** | **bool** | If a scheduled downtime currently exists. | [optional] [readonly]
9+
**active_child** | [**DowntimeChild**](DowntimeChild.md) | | [optional]
910
**canceled** | **int, none_type** | If a scheduled downtime is canceled. | [optional] [readonly]
1011
**creator_id** | **int** | User ID of the downtime creator. | [optional] [readonly]
1112
**disabled** | **bool** | If a downtime has been disabled. | [optional]

docs/v1/DowntimeChild.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# DowntimeChild
2+
3+
The downtime object definition of the active child for the original parent recurring downtime. This field will only exist on recurring downtimes.
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**active** | **bool** | If a scheduled downtime currently exists. | [optional] [readonly]
9+
**canceled** | **int, none_type** | If a scheduled downtime is canceled. | [optional] [readonly]
10+
**creator_id** | **int** | User ID of the downtime creator. | [optional] [readonly]
11+
**disabled** | **bool** | If a downtime has been disabled. | [optional]
12+
**downtime_type** | **int** | &#x60;0&#x60; for a downtime applied on &#x60;*&#x60; or all, &#x60;1&#x60; when the downtime is only scoped to hosts, or &#x60;2&#x60; when the downtime is scoped to anything but hosts. | [optional] [readonly]
13+
**end** | **int, none_type** | POSIX timestamp to end the downtime. If not provided, the downtime is in effect indefinitely until you cancel it. | [optional]
14+
**id** | **int** | The downtime ID. | [optional] [readonly]
15+
**message** | **str** | A message to include with notifications for this downtime. Email notifications can be sent to specific users by using the same &#x60;@username&#x60; notation as events. | [optional]
16+
**monitor_id** | **int, none_type** | A single monitor to which the downtime applies. If not provided, the downtime applies to all monitors. | [optional]
17+
**monitor_tags** | **[str]** | A comma-separated list of monitor tags. For example, tags that are applied directly to monitors, not tags that are used in monitor queries (which are filtered by the scope parameter), to which the downtime applies. The resulting downtime applies to monitors that match ALL provided monitor tags. For example, &#x60;service:postgres&#x60; **AND** &#x60;team:frontend&#x60;. | [optional]
18+
**parent_id** | **int, none_type** | ID of the parent Downtime. | [optional]
19+
**recurrence** | [**DowntimeRecurrence**](DowntimeRecurrence.md) | | [optional]
20+
**scope** | **[str]** | The scope(s) to which the downtime applies. For example, &#x60;host:app2&#x60;. Provide multiple scopes as a comma-separated list like &#x60;env:dev,env:prod&#x60;. The resulting downtime applies to sources that matches ALL provided scopes (&#x60;env:dev&#x60; **AND** &#x60;env:prod&#x60;). | [optional]
21+
**start** | **int** | POSIX timestamp to start the downtime. If not provided, the downtime starts the moment it is created. | [optional]
22+
**timezone** | **str** | The timezone in which to display the downtime&#39;s start and end times in Datadog applications. | [optional]
23+
**updater_id** | **int, none_type** | ID of the last user that updated the downtime. | [optional] [readonly]
24+
25+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
26+
27+

docs/v1/DowntimesApi.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,31 @@ with ApiClient(configuration) as api_client:
174174
api_instance = downtimes_api.DowntimesApi(api_client)
175175
body = Downtime(
176176
active=True,
177+
active_child=DowntimeChild(
178+
active=True,
179+
canceled=1412799983,
180+
creator_id=123456,
181+
disabled=False,
182+
downtime_type=2,
183+
end=1412793983,
184+
id=1626,
185+
message="Message on the downtime",
186+
monitor_id=123456,
187+
monitor_tags=["*"],
188+
parent_id=123,
189+
recurrence=DowntimeRecurrence(
190+
period=1,
191+
rrule="FREQ=MONTHLY;BYSETPOS=3;BYDAY=WE;INTERVAL=1",
192+
type="weeks",
193+
until_date=1447786293,
194+
until_occurrences=2,
195+
week_days=["Mon","Tue"],
196+
),
197+
scope=["env:staging"],
198+
start=1412792983,
199+
timezone="America/New_York",
200+
updater_id=123456,
201+
),
177202
canceled=1412799983,
178203
creator_id=123456,
179204
disabled=False,
@@ -463,6 +488,31 @@ with ApiClient(configuration) as api_client:
463488
downtime_id = 123456 # int | ID of the downtime to update.
464489
body = Downtime(
465490
active=True,
491+
active_child=DowntimeChild(
492+
active=True,
493+
canceled=1412799983,
494+
creator_id=123456,
495+
disabled=False,
496+
downtime_type=2,
497+
end=1412793983,
498+
id=1626,
499+
message="Message on the downtime",
500+
monitor_id=123456,
501+
monitor_tags=["*"],
502+
parent_id=123,
503+
recurrence=DowntimeRecurrence(
504+
period=1,
505+
rrule="FREQ=MONTHLY;BYSETPOS=3;BYDAY=WE;INTERVAL=1",
506+
type="weeks",
507+
until_date=1447786293,
508+
until_occurrences=2,
509+
week_days=["Mon","Tue"],
510+
),
511+
scope=["env:staging"],
512+
start=1412792983,
513+
timezone="America/New_York",
514+
updater_id=123456,
515+
),
466516
canceled=1412799983,
467517
creator_id=123456,
468518
disabled=False,

docs/v1/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ Class | Method | HTTP request | Description
350350
- [DistributionWidgetXAxis](DistributionWidgetXAxis.md)
351351
- [DistributionWidgetYAxis](DistributionWidgetYAxis.md)
352352
- [Downtime](Downtime.md)
353+
- [DowntimeChild](DowntimeChild.md)
353354
- [DowntimeRecurrence](DowntimeRecurrence.md)
354355
- [Event](Event.md)
355356
- [EventAlertType](EventAlertType.md)

src/datadog_api_client/v1/model/downtime.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@
2323

2424

2525
def lazy_import():
26+
from datadog_api_client.v1.model.downtime_child import DowntimeChild
2627
from datadog_api_client.v1.model.downtime_recurrence import DowntimeRecurrence
2728

29+
globals()["DowntimeChild"] = DowntimeChild
2830
globals()["DowntimeRecurrence"] = DowntimeRecurrence
2931

3032

@@ -83,6 +85,7 @@ def openapi_types():
8385
lazy_import()
8486
return {
8587
"active": (bool,), # noqa: E501
88+
"active_child": (DowntimeChild,), # noqa: E501
8689
"canceled": (
8790
int,
8891
none_type,
@@ -121,6 +124,7 @@ def discriminator():
121124

122125
attribute_map = {
123126
"active": "active", # noqa: E501
127+
"active_child": "active_child", # noqa: E501
124128
"canceled": "canceled", # noqa: E501
125129
"creator_id": "creator_id", # noqa: E501
126130
"disabled": "disabled", # noqa: E501
@@ -187,6 +191,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
187191
through its discriminator because we passed in
188192
_visited_composed_classes = (Animal,)
189193
active (bool): If a scheduled downtime currently exists.. [optional] # noqa: E501
194+
active_child (DowntimeChild): [optional] # noqa: E501
190195
canceled (int, none_type): If a scheduled downtime is canceled.. [optional] # noqa: E501
191196
creator_id (int): User ID of the downtime creator.. [optional] # noqa: E501
192197
disabled (bool): If a downtime has been disabled.. [optional] # noqa: E501

0 commit comments

Comments
 (0)