Skip to content

Commit 8be6062

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 23b373b of spec repo (#254)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 603ecd1 commit 8be6062

File tree

7 files changed

+21
-24
lines changed

7 files changed

+21
-24
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.dev2",
7-
"regenerated": "2021-01-29 15:55:12.711645",
8-
"spec_repo_commit": "25fc52c"
7+
"regenerated": "2021-01-29 22:08:40.823575",
8+
"spec_repo_commit": "23b373b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev2",
12-
"regenerated": "2021-01-29 15:55:46.429376",
13-
"spec_repo_commit": "25fc52c"
12+
"regenerated": "2021-01-29 22:09:21.022696",
13+
"spec_repo_commit": "23b373b"
1414
}
1515
}
1616
}

docs/v1/Monitor.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
1616
**overall_state** | [**MonitorOverallStates**](MonitorOverallStates.md) | | [optional]
1717
**priority** | **int** | Integer from 1 (high) to 5 (low) indicating alert severity. | [optional]
1818
**query** | **str** | The monitor query. | [optional]
19+
**restricted_roles** | **[str]** | A list of role identifiers that can be pulled from the Roles API. Cannot be used with &#x60;locked&#x60; option. | [optional]
1920
**state** | [**MonitorState**](MonitorState.md) | | [optional]
2021
**tags** | **[str]** | Tags associated to your monitor. | [optional]
2122
**type** | [**MonitorType**](MonitorType.md) | | [optional]

docs/v1/MonitorOptions.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Name | Type | Description | Notes
1919
**notify_no_data** | **bool** | A Boolean indicating whether this monitor notifies when data stops reporting. | [optional] if omitted the server will use the default value of False
2020
**renotify_interval** | **int, none_type** | The number of minutes after the last notification before a monitor re-notifies on the current status. It only re-notifies if it’s not resolved. | [optional]
2121
**require_full_window** | **bool** | A Boolean indicating whether this monitor needs a full window of data before it’s evaluated. We highly recommend you set this to &#x60;false&#x60; for sparse metrics, otherwise some evaluations are skipped. Default is false. | [optional]
22-
**restricted_roles** | **[str]** | A list of role identifiers that can be pulled from the Roles API. Cannot be used with &#x60;locked&#x60;. | [optional]
2322
**silenced** | **{str: (int, none_type)}** | Information about the downtime applied to the monitor. | [optional]
2423
**synthetics_check_id** | **str, none_type** | ID of the corresponding Synthetic check. | [optional]
2524
**threshold_windows** | [**MonitorThresholdWindowOptions**](MonitorThresholdWindowOptions.md) | | [optional]

docs/v1/MonitorsApi.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,6 @@ with ApiClient(configuration) as api_client:
158158
notify_no_data=False,
159159
renotify_interval=1,
160160
require_full_window=True,
161-
restricted_roles=[
162-
"restricted_roles_example",
163-
],
164161
silenced={
165162
"key": 1,
166163
},
@@ -182,6 +179,9 @@ with ApiClient(configuration) as api_client:
182179
overall_state=MonitorOverallStates("Alert"),
183180
priority=1,
184181
query="query_example",
182+
restricted_roles=[
183+
"restricted_roles_example",
184+
],
185185
state=MonitorState(
186186
groups={
187187
"key": MonitorStateGroup(
@@ -566,9 +566,6 @@ with ApiClient(configuration) as api_client:
566566
notify_no_data=False,
567567
renotify_interval=1,
568568
require_full_window=True,
569-
restricted_roles=[
570-
"restricted_roles_example",
571-
],
572569
silenced={
573570
"key": 1,
574571
},
@@ -717,9 +714,6 @@ with ApiClient(configuration) as api_client:
717714
notify_no_data=False,
718715
renotify_interval=1,
719716
require_full_window=True,
720-
restricted_roles=[
721-
"restricted_roles_example",
722-
],
723717
silenced={
724718
"key": 1,
725719
},
@@ -741,6 +735,9 @@ with ApiClient(configuration) as api_client:
741735
overall_state=MonitorOverallStates("Alert"),
742736
priority=1,
743737
query="query_example",
738+
restricted_roles=[
739+
"restricted_roles_example",
740+
],
744741
state=MonitorState(
745742
groups={
746743
"key": MonitorStateGroup(

src/datadog_api_client/v1/model/monitor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def openapi_types():
102102
"overall_state": (MonitorOverallStates,), # noqa: E501
103103
"priority": (int,), # noqa: E501
104104
"query": (str,), # noqa: E501
105+
"restricted_roles": ([str],), # noqa: E501
105106
"state": (MonitorState,), # noqa: E501
106107
"tags": ([str],), # noqa: E501
107108
"type": (MonitorType,), # noqa: E501
@@ -124,6 +125,7 @@ def discriminator():
124125
"overall_state": "overall_state", # noqa: E501
125126
"priority": "priority", # noqa: E501
126127
"query": "query", # noqa: E501
128+
"restricted_roles": "restricted_roles", # noqa: E501
127129
"state": "state", # noqa: E501
128130
"tags": "tags", # noqa: E501
129131
"type": "type", # noqa: E501
@@ -189,6 +191,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
189191
overall_state (MonitorOverallStates): [optional] # noqa: E501
190192
priority (int): Integer from 1 (high) to 5 (low) indicating alert severity.. [optional] # noqa: E501
191193
query (str): The monitor query.. [optional] # noqa: E501
194+
restricted_roles ([str]): A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked` option.. [optional] # noqa: E501
192195
state (MonitorState): [optional] # noqa: E501
193196
tags ([str]): Tags associated to your monitor.. [optional] # noqa: E501
194197
type (MonitorType): [optional] # noqa: E501

src/datadog_api_client/v1/model/monitor_options.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ def openapi_types():
118118
none_type,
119119
), # noqa: E501
120120
"require_full_window": (bool,), # noqa: E501
121-
"restricted_roles": ([str],), # noqa: E501
122121
"silenced": ({str: (int, none_type)},), # noqa: E501
123122
"synthetics_check_id": (
124123
str,
@@ -152,7 +151,6 @@ def discriminator():
152151
"notify_no_data": "notify_no_data", # noqa: E501
153152
"renotify_interval": "renotify_interval", # noqa: E501
154153
"require_full_window": "require_full_window", # noqa: E501
155-
"restricted_roles": "restricted_roles", # noqa: E501
156154
"silenced": "silenced", # noqa: E501
157155
"synthetics_check_id": "synthetics_check_id", # noqa: E501
158156
"threshold_windows": "threshold_windows", # noqa: E501
@@ -223,7 +221,6 @@ def __init__(self, *args, **kwargs): # noqa: E501
223221
notify_no_data (bool): A Boolean indicating whether this monitor notifies when data stops reporting.. [optional] if omitted the server will use the default value of False # noqa: E501
224222
renotify_interval (int, none_type): The number of minutes after the last notification before a monitor re-notifies on the current status. It only re-notifies if it’s not resolved.. [optional] # noqa: E501
225223
require_full_window (bool): A Boolean indicating whether this monitor needs a full window of data before it’s evaluated. We highly recommend you set this to `false` for sparse metrics, otherwise some evaluations are skipped. Default is false.. [optional] # noqa: E501
226-
restricted_roles ([str]): A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked`.. [optional] # noqa: E501
227224
silenced ({str: (int, none_type)}): Information about the downtime applied to the monitor.. [optional] # noqa: E501
228225
synthetics_check_id (str, none_type): ID of the corresponding Synthetic check.. [optional] # noqa: E501
229226
threshold_windows (MonitorThresholdWindowOptions): [optional] # noqa: E501

src/datadog_api_client/v1/openapi.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4002,6 +4002,13 @@ components:
40024002
query:
40034003
description: The monitor query.
40044004
type: string
4005+
restricted_roles:
4006+
description: A list of role identifiers that can be pulled from the Roles
4007+
API. Cannot be used with `locked` option.
4008+
items:
4009+
description: A role UUID.
4010+
type: string
4011+
type: array
40054012
state:
40064013
$ref: '#/components/schemas/MonitorState'
40074014
tags:
@@ -4169,13 +4176,6 @@ components:
41694176
\ to `false` for sparse metrics,\notherwise some evaluations are skipped.\
41704177
\ Default is false."
41714178
type: boolean
4172-
restricted_roles:
4173-
description: A list of role identifiers that can be pulled from the Roles
4174-
API. Cannot be used with `locked`.
4175-
items:
4176-
description: A role UUID.
4177-
type: string
4178-
type: array
41794179
silenced:
41804180
additionalProperties:
41814181
description: ID of the downtime applied to the monitor.

0 commit comments

Comments
 (0)