Skip to content

Commit 826e247

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add message field to audit logs response (#1608)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 71299a3 commit 826e247

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-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.6.5",
7-
"regenerated": "2023-08-02 14:07:31.852968",
8-
"spec_repo_commit": "75a8c502"
7+
"regenerated": "2023-08-03 15:19:24.722715",
8+
"spec_repo_commit": "200d56a1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-08-02 14:07:31.870804",
13-
"spec_repo_commit": "75a8c502"
12+
"regenerated": "2023-08-03 15:19:24.742180",
13+
"spec_repo_commit": "200d56a1"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,9 @@ components:
859859
customAttribute: 123
860860
duration: 2345
861861
type: object
862+
message:
863+
description: Message of the event.
864+
type: string
862865
service:
863866
description: 'Name of the application or service generating Audit Logs events.
864867

src/datadog_api_client/v2/model/audit_logs_event_attributes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@ def openapi_types(_):
3535
)
3636
},
3737
),
38+
"message": (str,),
3839
"service": (str,),
3940
"tags": ([str],),
4041
"timestamp": (datetime,),
4142
}
4243

4344
attribute_map = {
4445
"attributes": "attributes",
46+
"message": "message",
4547
"service": "service",
4648
"tags": "tags",
4749
"timestamp": "timestamp",
@@ -50,6 +52,7 @@ def openapi_types(_):
5052
def __init__(
5153
self_,
5254
attributes: Union[Dict[str, Any], UnsetType] = unset,
55+
message: Union[str, UnsetType] = unset,
5356
service: Union[str, UnsetType] = unset,
5457
tags: Union[List[str], UnsetType] = unset,
5558
timestamp: Union[datetime, UnsetType] = unset,
@@ -61,6 +64,9 @@ def __init__(
6164
:param attributes: JSON object of attributes from Audit Logs events.
6265
:type attributes: {str: (bool, date, datetime, dict, float, int, list, str, none_type,)}, optional
6366
67+
:param message: Message of the event.
68+
:type message: str, optional
69+
6470
:param service: Name of the application or service generating Audit Logs events.
6571
This name is used to correlate Audit Logs to APM, so make sure you specify the same
6672
value when you use both products.
@@ -74,6 +80,8 @@ def __init__(
7480
"""
7581
if attributes is not unset:
7682
kwargs["attributes"] = attributes
83+
if message is not unset:
84+
kwargs["message"] = message
7785
if service is not unset:
7886
kwargs["service"] = service
7987
if tags is not unset:

0 commit comments

Comments
 (0)