Skip to content

Commit

Permalink
Regenerate client from commit 3445859 of spec repo (#434)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored May 12, 2021
1 parent 81393b4 commit 5d9b157
Show file tree
Hide file tree
Showing 10 changed files with 494 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.4.1.dev6",
"regenerated": "2021-05-12 09:32:34.223841",
"spec_repo_commit": "62c8ffe"
"regenerated": "2021-05-12 18:19:21.712592",
"spec_repo_commit": "3445859"
},
"v2": {
"apigentools_version": "1.4.1.dev6",
"regenerated": "2021-05-12 09:33:01.936662",
"spec_repo_commit": "62c8ffe"
"regenerated": "2021-05-12 18:19:53.536116",
"spec_repo_commit": "3445859"
}
}
}
1 change: 1 addition & 0 deletions docs/v1/Downtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Downtiming gives you greater control over monitor notifications by allowing you
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**active** | **bool** | If a scheduled downtime currently exists. | [optional] [readonly]
**active_child** | [**DowntimeChild**](DowntimeChild.md) | | [optional]
**canceled** | **int, none_type** | If a scheduled downtime is canceled. | [optional] [readonly]
**creator_id** | **int** | User ID of the downtime creator. | [optional] [readonly]
**disabled** | **bool** | If a downtime has been disabled. | [optional]
Expand Down
27 changes: 27 additions & 0 deletions docs/v1/DowntimeChild.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# DowntimeChild

The downtime object definition of the active child for the original parent recurring downtime. This field will only exist on recurring downtimes.

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**active** | **bool** | If a scheduled downtime currently exists. | [optional] [readonly]
**canceled** | **int, none_type** | If a scheduled downtime is canceled. | [optional] [readonly]
**creator_id** | **int** | User ID of the downtime creator. | [optional] [readonly]
**disabled** | **bool** | If a downtime has been disabled. | [optional]
**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]
**end** | **int, none_type** | POSIX timestamp to end the downtime. If not provided, the downtime is in effect indefinitely until you cancel it. | [optional]
**id** | **int** | The downtime ID. | [optional] [readonly]
**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]
**monitor_id** | **int, none_type** | A single monitor to which the downtime applies. If not provided, the downtime applies to all monitors. | [optional]
**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]
**parent_id** | **int, none_type** | ID of the parent Downtime. | [optional]
**recurrence** | [**DowntimeRecurrence**](DowntimeRecurrence.md) | | [optional]
**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]
**start** | **int** | POSIX timestamp to start the downtime. If not provided, the downtime starts the moment it is created. | [optional]
**timezone** | **str** | The timezone in which to display the downtime&#39;s start and end times in Datadog applications. | [optional]
**updater_id** | **int, none_type** | ID of the last user that updated the downtime. | [optional] [readonly]

[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)


50 changes: 50 additions & 0 deletions docs/v1/DowntimesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,31 @@ with ApiClient(configuration) as api_client:
api_instance = downtimes_api.DowntimesApi(api_client)
body = Downtime(
active=True,
active_child=DowntimeChild(
active=True,
canceled=1412799983,
creator_id=123456,
disabled=False,
downtime_type=2,
end=1412793983,
id=1626,
message="Message on the downtime",
monitor_id=123456,
monitor_tags=["*"],
parent_id=123,
recurrence=DowntimeRecurrence(
period=1,
rrule="FREQ=MONTHLY;BYSETPOS=3;BYDAY=WE;INTERVAL=1",
type="weeks",
until_date=1447786293,
until_occurrences=2,
week_days=["Mon","Tue"],
),
scope=["env:staging"],
start=1412792983,
timezone="America/New_York",
updater_id=123456,
),
canceled=1412799983,
creator_id=123456,
disabled=False,
Expand Down Expand Up @@ -463,6 +488,31 @@ with ApiClient(configuration) as api_client:
downtime_id = 123456 # int | ID of the downtime to update.
body = Downtime(
active=True,
active_child=DowntimeChild(
active=True,
canceled=1412799983,
creator_id=123456,
disabled=False,
downtime_type=2,
end=1412793983,
id=1626,
message="Message on the downtime",
monitor_id=123456,
monitor_tags=["*"],
parent_id=123,
recurrence=DowntimeRecurrence(
period=1,
rrule="FREQ=MONTHLY;BYSETPOS=3;BYDAY=WE;INTERVAL=1",
type="weeks",
until_date=1447786293,
until_occurrences=2,
week_days=["Mon","Tue"],
),
scope=["env:staging"],
start=1412792983,
timezone="America/New_York",
updater_id=123456,
),
canceled=1412799983,
creator_id=123456,
disabled=False,
Expand Down
1 change: 1 addition & 0 deletions docs/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ Class | Method | HTTP request | Description
- [DistributionWidgetXAxis](DistributionWidgetXAxis.md)
- [DistributionWidgetYAxis](DistributionWidgetYAxis.md)
- [Downtime](Downtime.md)
- [DowntimeChild](DowntimeChild.md)
- [DowntimeRecurrence](DowntimeRecurrence.md)
- [Event](Event.md)
- [EventAlertType](EventAlertType.md)
Expand Down
5 changes: 5 additions & 0 deletions src/datadog_api_client/v1/model/downtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@


def lazy_import():
from datadog_api_client.v1.model.downtime_child import DowntimeChild
from datadog_api_client.v1.model.downtime_recurrence import DowntimeRecurrence

globals()["DowntimeChild"] = DowntimeChild
globals()["DowntimeRecurrence"] = DowntimeRecurrence


Expand Down Expand Up @@ -83,6 +85,7 @@ def openapi_types():
lazy_import()
return {
"active": (bool,), # noqa: E501
"active_child": (DowntimeChild,), # noqa: E501
"canceled": (
int,
none_type,
Expand Down Expand Up @@ -121,6 +124,7 @@ def discriminator():

attribute_map = {
"active": "active", # noqa: E501
"active_child": "active_child", # noqa: E501
"canceled": "canceled", # noqa: E501
"creator_id": "creator_id", # noqa: E501
"disabled": "disabled", # noqa: E501
Expand Down Expand Up @@ -187,6 +191,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
active (bool): If a scheduled downtime currently exists.. [optional] # noqa: E501
active_child (DowntimeChild): [optional] # noqa: E501
canceled (int, none_type): If a scheduled downtime is canceled.. [optional] # noqa: E501
creator_id (int): User ID of the downtime creator.. [optional] # noqa: E501
disabled (bool): If a downtime has been disabled.. [optional] # noqa: E501
Expand Down
Loading

0 comments on commit 5d9b157

Please sign in to comment.