Skip to content

Commit 7d0ee09

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit d882020 of spec repo (#138)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 396d23b commit 7d0ee09

File tree

9 files changed

+43
-9
lines changed

9 files changed

+43
-9
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.2.0",
7-
"regenerated": "2020-10-28 14:20:20.282987",
8-
"spec_repo_commit": "2af7762"
7+
"regenerated": "2020-10-29 21:52:05.320026",
8+
"spec_repo_commit": "d882020"
99
},
1010
"v2": {
1111
"apigentools_version": "1.2.0",
12-
"regenerated": "2020-10-28 14:20:31.908334",
13-
"spec_repo_commit": "2af7762"
12+
"regenerated": "2020-10-29 21:52:16.620530",
13+
"spec_repo_commit": "d882020"
1414
}
1515
}
1616
}

docs/v1/EventsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Name | Type | Description | Notes
9797
9898
Query the event stream
9999

100-
The event stream can be queried and filtered by time, priority, sources and tags. **Note**: If the event you’re querying contains markdown formatting of any kind, you may see characters such as %,\\,n in your output.
100+
The event stream can be queried and filtered by time, priority, sources and tags. **Notes**: - If the event you’re querying contains markdown formatting of any kind, you may see characters such as `%`,`\\`,`n` in your output. - This endpoint returns a maximum of `1000` most recent results. To return additional results, identify the last timestamp of the last result and set that as the `end` query time to paginate the results.
101101

102102
### Example
103103

docs/v1/Monitor.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**name** | **str** | The monitor name. | [optional]
1515
**options** | [**MonitorOptions**](MonitorOptions.md) | | [optional]
1616
**overall_state** | [**MonitorOverallStates**](MonitorOverallStates.md) | | [optional]
17+
**priority** | **int** | Integer from 1 (high) to 5 (low) indicating alert severity. | [optional]
1718
**query** | **str** | The monitor query. | [optional]
1819
**state** | [**MonitorState**](MonitorState.md) | | [optional]
1920
**tags** | **[str]** | Tags associated to your monitor. | [optional]

docs/v1/MonitorUpdateRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**name** | **str** | The monitor name. | [optional]
1515
**options** | [**MonitorOptions**](MonitorOptions.md) | | [optional]
1616
**overall_state** | [**MonitorOverallStates**](MonitorOverallStates.md) | | [optional]
17+
**priority** | **int** | Integer from 1 (high) to 5 (low) indicating alert severity. | [optional]
1718
**query** | **str** | The monitor query. | [optional]
1819
**state** | [**MonitorState**](MonitorState.md) | | [optional]
1920
**tags** | **[str]** | Tags associated to your monitor. | [optional]

docs/v1/MonitorsApi.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
199199
timeout_h=1,
200200
),
201201
overall_state=MonitorOverallStates("Alert"),
202+
priority=1,
202203
query="query_example",
203204
state=MonitorState(
204205
groups={
@@ -647,6 +648,7 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
647648
timeout_h=1,
648649
),
649650
overall_state=MonitorOverallStates("Alert"),
651+
priority=1,
650652
query="query_example",
651653
state=MonitorState(
652654
groups={
@@ -805,6 +807,7 @@ with datadog_api_client.v1.ApiClient(configuration) as api_client:
805807
timeout_h=1,
806808
),
807809
overall_state=MonitorOverallStates("Alert"),
810+
priority=1,
808811
query="query_example",
809812
state=MonitorState(
810813
groups={

src/datadog_api_client/v1/api/events_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def __list_events(
164164
):
165165
"""Query the event stream # noqa: E501
166166
167-
The event stream can be queried and filtered by time, priority, sources and tags. **Note**: If the event you’re querying contains markdown formatting of any kind, you may see characters such as %,\\,n in your output. # noqa: E501
167+
The event stream can be queried and filtered by time, priority, sources and tags. **Notes**: - If the event you’re querying contains markdown formatting of any kind, you may see characters such as `%`,`\\`,`n` in your output. - This endpoint returns a maximum of `1000` most recent results. To return additional results, identify the last timestamp of the last result and set that as the `end` query time to paginate the results. # noqa: E501
168168
This method makes a synchronous HTTP request by default. To make an
169169
asynchronous HTTP request, please pass async_req=True
170170

src/datadog_api_client/v1/model/monitor.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ class Monitor(ModelNormal):
6666
}
6767

6868
validations = {
69+
('priority',): {
70+
'inclusive_maximum': 5,
71+
'inclusive_minimum': 1,
72+
},
6973
}
7074

7175
additional_properties_type = None
@@ -94,6 +98,7 @@ def openapi_types():
9498
'name': (str,), # noqa: E501
9599
'options': (MonitorOptions,), # noqa: E501
96100
'overall_state': (MonitorOverallStates,), # noqa: E501
101+
'priority': (int,), # noqa: E501
97102
'query': (str,), # noqa: E501
98103
'state': (MonitorState,), # noqa: E501
99104
'tags': ([str],), # noqa: E501
@@ -116,6 +121,7 @@ def discriminator():
116121
'name': 'name', # noqa: E501
117122
'options': 'options', # noqa: E501
118123
'overall_state': 'overall_state', # noqa: E501
124+
'priority': 'priority', # noqa: E501
119125
'query': 'query', # noqa: E501
120126
'state': 'state', # noqa: E501
121127
'tags': 'tags', # noqa: E501
@@ -178,6 +184,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
178184
name (str): The monitor name.. [optional] # noqa: E501
179185
options (MonitorOptions): [optional] # noqa: E501
180186
overall_state (MonitorOverallStates): [optional] # noqa: E501
187+
priority (int): Integer from 1 (high) to 5 (low) indicating alert severity.. [optional] # noqa: E501
181188
query (str): The monitor query.. [optional] # noqa: E501
182189
state (MonitorState): [optional] # noqa: E501
183190
tags ([str]): Tags associated to your monitor.. [optional] # noqa: E501

src/datadog_api_client/v1/model/monitor_update_request.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ class MonitorUpdateRequest(ModelNormal):
6666
}
6767

6868
validations = {
69+
('priority',): {
70+
'inclusive_maximum': 5,
71+
'inclusive_minimum': 1,
72+
},
6973
}
7074

7175
additional_properties_type = None
@@ -94,6 +98,7 @@ def openapi_types():
9498
'name': (str,), # noqa: E501
9599
'options': (MonitorOptions,), # noqa: E501
96100
'overall_state': (MonitorOverallStates,), # noqa: E501
101+
'priority': (int,), # noqa: E501
97102
'query': (str,), # noqa: E501
98103
'state': (MonitorState,), # noqa: E501
99104
'tags': ([str],), # noqa: E501
@@ -116,6 +121,7 @@ def discriminator():
116121
'name': 'name', # noqa: E501
117122
'options': 'options', # noqa: E501
118123
'overall_state': 'overall_state', # noqa: E501
124+
'priority': 'priority', # noqa: E501
119125
'query': 'query', # noqa: E501
120126
'state': 'state', # noqa: E501
121127
'tags': 'tags', # noqa: E501
@@ -178,6 +184,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
178184
name (str): The monitor name.. [optional] # noqa: E501
179185
options (MonitorOptions): [optional] # noqa: E501
180186
overall_state (MonitorOverallStates): [optional] # noqa: E501
187+
priority (int): Integer from 1 (high) to 5 (low) indicating alert severity.. [optional] # noqa: E501
181188
query (str): The monitor query.. [optional] # noqa: E501
182189
state (MonitorState): [optional] # noqa: E501
183190
tags ([str]): Tags associated to your monitor.. [optional] # noqa: E501

src/datadog_api_client/v1/openapi.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3746,6 +3746,12 @@ components:
37463746
$ref: '#/components/schemas/MonitorOptions'
37473747
overall_state:
37483748
$ref: '#/components/schemas/MonitorOverallStates'
3749+
priority:
3750+
description: Integer from 1 (high) to 5 (low) indicating alert severity.
3751+
format: int64
3752+
maximum: 5
3753+
minimum: 1
3754+
type: integer
37493755
query:
37503756
description: The monitor query.
37513757
type: string
@@ -4174,6 +4180,12 @@ components:
41744180
$ref: '#/components/schemas/MonitorOptions'
41754181
overall_state:
41764182
$ref: '#/components/schemas/MonitorOverallStates'
4183+
priority:
4184+
description: Integer from 1 (high) to 5 (low) indicating alert severity.
4185+
format: int64
4186+
maximum: 5
4187+
minimum: 1
4188+
type: integer
41774189
query:
41784190
description: The monitor query.
41794191
type: string
@@ -10149,9 +10161,12 @@ paths:
1014910161
/api/v1/events:
1015010162
get:
1015110163
description: "The event stream can be queried and filtered by time, priority,\
10152-
\ sources and tags.\n\n**Note**: If the event you\u2019re querying contains\
10153-
\ markdown formatting of any kind, you may see characters such as %,\\,n in\
10154-
\ your output."
10164+
\ sources and tags.\n\n**Notes**:\n- If the event you\u2019re querying contains\
10165+
\ markdown formatting of any kind,\nyou may see characters such as `%`,`\\\
10166+
`,`n` in your output.\n\n- This endpoint returns a maximum of `1000` most\
10167+
\ recent results. To return additional results,\nidentify the last timestamp\
10168+
\ of the last result and set that as the `end` query time to\npaginate the\
10169+
\ results."
1015510170
operationId: ListEvents
1015610171
parameters:
1015710172
- description: POSIX timestamp.

0 commit comments

Comments
 (0)