Skip to content

Commit dd0da89

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit aead216 of spec repo (#83)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent cc220dc commit dd0da89

File tree

4 files changed

+13
-44
lines changed

4 files changed

+13
-44
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-09-23 13:49:10.874257",
8-
"spec_repo_commit": "c6c8f47"
7+
"regenerated": "2020-09-24 08:35:20.476647",
8+
"spec_repo_commit": "aead216"
99
},
1010
"v2": {
1111
"apigentools_version": "1.2.0",
12-
"regenerated": "2020-09-23 13:49:22.529799",
13-
"spec_repo_commit": "c6c8f47"
12+
"regenerated": "2020-09-24 08:35:30.325667",
13+
"spec_repo_commit": "aead216"
1414
}
1515
}
1616
}

docs/v1/Event.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,17 @@ Object representing an event.
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**text** | **str** | The body of the event. Limited to 4000 characters. The text supports markdown. Use &#x60;msg_text&#x60; with the Datadog Ruby library. |
8-
**title** | **str** | The event title. Limited to 100 characters. Use &#x60;msg_title&#x60; with the Datadog Ruby library. |
9-
**aggregation_key** | **str** | An arbitrary string to use for aggregation. Limited to 100 characters. If you specify a key, all events using that key are grouped together in the Event Stream. | [optional]
107
**alert_type** | [**EventAlertType**](EventAlertType.md) | | [optional]
118
**date_happened** | **int** | POSIX timestamp of the event. Must be sent as an integer (i.e. no quotes). Limited to events no older than 7 days. | [optional]
129
**device_name** | **str** | A device name. | [optional]
1310
**host** | **str** | Host name to associate with the event. Any tags associated with the host are also applied to this event. | [optional]
1411
**id** | **int** | Integer ID of the event. | [optional] [readonly]
1512
**payload** | **str** | Payload of the event. | [optional] [readonly]
1613
**priority** | [**EventPriority**](EventPriority.md) | | [optional]
17-
**related_event_id** | **int** | ID of the parent event. Must be sent as an integer (i.e. no quotes). | [optional]
1814
**source_type_name** | **str** | The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. A complete list of source attribute values [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). | [optional]
1915
**tags** | **[str]** | A list of tags to apply to the event. | [optional]
16+
**text** | **str** | The body of the event. Limited to 4000 characters. The text supports markdown. Use &#x60;msg_text&#x60; with the Datadog Ruby library. | [optional]
17+
**title** | **str** | The event title. Limited to 100 characters. Use &#x60;msg_title&#x60; with the Datadog Ruby library. | [optional]
2018
**url** | **str** | URL of the event. | [optional] [readonly]
2119

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

src/datadog_api_client/v1/model/event.py

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ class Event(ModelNormal):
6666
('title',): {
6767
'max_length': 100,
6868
},
69-
('aggregation_key',): {
70-
'max_length': 100,
71-
},
7269
}
7370

7471
additional_properties_type = None
@@ -87,19 +84,17 @@ def openapi_types():
8784
"""
8885
lazy_import()
8986
return {
90-
'text': (str,), # noqa: E501
91-
'title': (str,), # noqa: E501
92-
'aggregation_key': (str,), # noqa: E501
9387
'alert_type': (EventAlertType,), # noqa: E501
9488
'date_happened': (int,), # noqa: E501
9589
'device_name': (str,), # noqa: E501
9690
'host': (str,), # noqa: E501
9791
'id': (int,), # noqa: E501
9892
'payload': (str,), # noqa: E501
9993
'priority': (EventPriority,), # noqa: E501
100-
'related_event_id': (int,), # noqa: E501
10194
'source_type_name': (str,), # noqa: E501
10295
'tags': ([str],), # noqa: E501
96+
'text': (str,), # noqa: E501
97+
'title': (str,), # noqa: E501
10398
'url': (str,), # noqa: E501
10499
}
105100

@@ -109,19 +104,17 @@ def discriminator():
109104

110105

111106
attribute_map = {
112-
'text': 'text', # noqa: E501
113-
'title': 'title', # noqa: E501
114-
'aggregation_key': 'aggregation_key', # noqa: E501
115107
'alert_type': 'alert_type', # noqa: E501
116108
'date_happened': 'date_happened', # noqa: E501
117109
'device_name': 'device_name', # noqa: E501
118110
'host': 'host', # noqa: E501
119111
'id': 'id', # noqa: E501
120112
'payload': 'payload', # noqa: E501
121113
'priority': 'priority', # noqa: E501
122-
'related_event_id': 'related_event_id', # noqa: E501
123114
'source_type_name': 'source_type_name', # noqa: E501
124115
'tags': 'tags', # noqa: E501
116+
'text': 'text', # noqa: E501
117+
'title': 'title', # noqa: E501
125118
'url': 'url', # noqa: E501
126119
}
127120

@@ -137,13 +130,9 @@ def discriminator():
137130
])
138131

139132
@convert_js_args_to_python_args
140-
def __init__(self, text, title, *args, **kwargs): # noqa: E501
133+
def __init__(self, *args, **kwargs): # noqa: E501
141134
"""Event - a model defined in OpenAPI
142135
143-
Args:
144-
text (str): The body of the event. Limited to 4000 characters. The text supports markdown. Use &#x60;msg_text&#x60; with the Datadog Ruby library.
145-
title (str): The event title. Limited to 100 characters. Use &#x60;msg_title&#x60; with the Datadog Ruby library.
146-
147136
Keyword Args:
148137
_check_type (bool): if True, values for parameters in openapi_types
149138
will be type checked and a TypeError will be
@@ -175,17 +164,17 @@ def __init__(self, text, title, *args, **kwargs): # noqa: E501
175164
Animal class but this time we won't travel
176165
through its discriminator because we passed in
177166
_visited_composed_classes = (Animal,)
178-
aggregation_key (str): An arbitrary string to use for aggregation. Limited to 100 characters. If you specify a key, all events using that key are grouped together in the Event Stream.. [optional] # noqa: E501
179167
alert_type (EventAlertType): [optional] # noqa: E501
180168
date_happened (int): POSIX timestamp of the event. Must be sent as an integer (i.e. no quotes). Limited to events no older than 7 days.. [optional] # noqa: E501
181169
device_name (str): A device name.. [optional] # noqa: E501
182170
host (str): Host name to associate with the event. Any tags associated with the host are also applied to this event.. [optional] # noqa: E501
183171
id (int): Integer ID of the event.. [optional] # noqa: E501
184172
payload (str): Payload of the event.. [optional] # noqa: E501
185173
priority (EventPriority): [optional] # noqa: E501
186-
related_event_id (int): ID of the parent event. Must be sent as an integer (i.e. no quotes).. [optional] # noqa: E501
187174
source_type_name (str): The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. A complete list of source attribute values [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).. [optional] # noqa: E501
188175
tags ([str]): A list of tags to apply to the event.. [optional] # noqa: E501
176+
text (str): The body of the event. Limited to 4000 characters. The text supports markdown. Use &#x60;msg_text&#x60; with the Datadog Ruby library.. [optional] # noqa: E501
177+
title (str): The event title. Limited to 100 characters. Use &#x60;msg_title&#x60; with the Datadog Ruby library.. [optional] # noqa: E501
189178
url (str): URL of the event.. [optional] # noqa: E501
190179
"""
191180

@@ -212,8 +201,6 @@ def __init__(self, text, title, *args, **kwargs): # noqa: E501
212201
self._configuration = _configuration
213202
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
214203

215-
self.text = text
216-
self.title = title
217204
for var_name, var_value in kwargs.items():
218205
if var_name not in self.attribute_map and \
219206
self._configuration is not None and \

src/datadog_api_client/v1/openapi.yaml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,14 +1233,6 @@ components:
12331233
Event:
12341234
description: Object representing an event.
12351235
properties:
1236-
aggregation_key:
1237-
description: 'An arbitrary string to use for aggregation. Limited to 100
1238-
characters.
1239-
1240-
If you specify a key, all events using that key are grouped together in
1241-
the Event Stream.'
1242-
maxLength: 100
1243-
type: string
12441236
alert_type:
12451237
$ref: '#/components/schemas/EventAlertType'
12461238
date_happened:
@@ -1270,11 +1262,6 @@ components:
12701262
type: string
12711263
priority:
12721264
$ref: '#/components/schemas/EventPriority'
1273-
related_event_id:
1274-
description: ID of the parent event. Must be sent as an integer (i.e. no
1275-
quotes).
1276-
format: int64
1277-
type: integer
12781265
source_type_name:
12791266
description: 'The type of event being posted. Option examples include nagios,
12801267
hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc.
@@ -1307,9 +1294,6 @@ components:
13071294
description: URL of the event.
13081295
readOnly: true
13091296
type: string
1310-
required:
1311-
- title
1312-
- text
13131297
type: object
13141298
EventAlertType:
13151299
description: 'If an alert event is enabled, set its type.

0 commit comments

Comments
 (0)