Skip to content

Commit 797c28f

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5a431b84 of spec repo
1 parent a863de0 commit 797c28f

25 files changed

Lines changed: 93 additions & 60 deletions

File tree

.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.6",
7-
"regenerated": "2025-05-27 17:12:13.841874",
8-
"spec_repo_commit": "ed439f7c"
7+
"regenerated": "2025-06-02 21:09:18.143842",
8+
"spec_repo_commit": "5a431b84"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-27 17:12:13.857049",
13-
"spec_repo_commit": "ed439f7c"
12+
"regenerated": "2025-06-02 21:09:18.252202",
13+
"spec_repo_commit": "5a431b84"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10994,6 +10994,17 @@ components:
1099410994
- version
1099510995
- name
1099610996
type: object
10997+
DORACustomTags:
10998+
description: A list of user-defined tags. The tags must follow the `key:value`
10999+
pattern. Up to 100 may be added per event.
11000+
example:
11001+
- language:java
11002+
- department:engineering
11003+
items:
11004+
description: Tags in the form of `key:value`.
11005+
type: string
11006+
nullable: true
11007+
type: array
1099711008
DORADeploymentRequest:
1099811009
description: Request to create a DORA deployment event.
1099911010
properties:
@@ -11005,6 +11016,8 @@ components:
1100511016
DORADeploymentRequestAttributes:
1100611017
description: Attributes to create a DORA deployment event.
1100711018
properties:
11019+
custom_tags:
11020+
$ref: '#/components/schemas/DORACustomTags'
1100811021
env:
1100911022
description: Environment name to where the service was deployed.
1101011023
example: staging
@@ -11124,6 +11137,8 @@ components:
1112411137
DORAIncidentRequestAttributes:
1112511138
description: Attributes to create a DORA incident event.
1112611139
properties:
11140+
custom_tags:
11141+
$ref: '#/components/schemas/DORACustomTags'
1112711142
env:
1112811143
description: Environment name that was impacted by the incident.
1112911144
example: staging

src/datadog_api_client/v2/model/dora_deployment_request_attributes.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union, TYPE_CHECKING
6+
from typing import List, Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
none_type,
1112
unset,
1213
UnsetType,
1314
)
@@ -23,6 +24,7 @@ def openapi_types(_):
2324
from datadog_api_client.v2.model.dora_git_info import DORAGitInfo
2425

2526
return {
27+
"custom_tags": ([str],),
2628
"env": (str,),
2729
"finished_at": (int,),
2830
"git": (DORAGitInfo,),
@@ -34,6 +36,7 @@ def openapi_types(_):
3436
}
3537

3638
attribute_map = {
39+
"custom_tags": "custom_tags",
3740
"env": "env",
3841
"finished_at": "finished_at",
3942
"git": "git",
@@ -49,6 +52,7 @@ def __init__(
4952
finished_at: int,
5053
service: str,
5154
started_at: int,
55+
custom_tags: Union[List[str], none_type, UnsetType] = unset,
5256
env: Union[str, UnsetType] = unset,
5357
git: Union[DORAGitInfo, UnsetType] = unset,
5458
id: Union[str, UnsetType] = unset,
@@ -59,6 +63,9 @@ def __init__(
5963
"""
6064
Attributes to create a DORA deployment event.
6165
66+
:param custom_tags: A list of user-defined tags. The tags must follow the ``key:value`` pattern. Up to 100 may be added per event.
67+
:type custom_tags: [str], none_type, optional
68+
6269
:param env: Environment name to where the service was deployed.
6370
:type env: str, optional
6471
@@ -83,6 +90,8 @@ def __init__(
8390
:param version: Version to correlate with `APM Deployment Tracking <https://docs.datadoghq.com/tracing/services/deployment_tracking/>`_.
8491
:type version: str, optional
8592
"""
93+
if custom_tags is not unset:
94+
kwargs["custom_tags"] = custom_tags
8695
if env is not unset:
8796
kwargs["env"] = env
8897
if git is not unset:

src/datadog_api_client/v2/model/dora_incident_request_attributes.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
none_type,
1112
unset,
1213
UnsetType,
1314
)
@@ -23,6 +24,7 @@ def openapi_types(_):
2324
from datadog_api_client.v2.model.dora_git_info import DORAGitInfo
2425

2526
return {
27+
"custom_tags": ([str],),
2628
"env": (str,),
2729
"finished_at": (int,),
2830
"git": (DORAGitInfo,),
@@ -36,6 +38,7 @@ def openapi_types(_):
3638
}
3739

3840
attribute_map = {
41+
"custom_tags": "custom_tags",
3942
"env": "env",
4043
"finished_at": "finished_at",
4144
"git": "git",
@@ -51,6 +54,7 @@ def openapi_types(_):
5154
def __init__(
5255
self_,
5356
started_at: int,
57+
custom_tags: Union[List[str], none_type, UnsetType] = unset,
5458
env: Union[str, UnsetType] = unset,
5559
finished_at: Union[int, UnsetType] = unset,
5660
git: Union[DORAGitInfo, UnsetType] = unset,
@@ -65,6 +69,9 @@ def __init__(
6569
"""
6670
Attributes to create a DORA incident event.
6771
72+
:param custom_tags: A list of user-defined tags. The tags must follow the ``key:value`` pattern. Up to 100 may be added per event.
73+
:type custom_tags: [str], none_type, optional
74+
6875
:param env: Environment name that was impacted by the incident.
6976
:type env: str, optional
7077
@@ -95,6 +102,8 @@ def __init__(
95102
:param version: Version to correlate with `APM Deployment Tracking <https://docs.datadoghq.com/tracing/services/deployment_tracking/>`_.
96103
:type version: str, optional
97104
"""
105+
if custom_tags is not unset:
106+
kwargs["custom_tags"] = custom_tags
98107
if env is not unset:
99108
kwargs["env"] = env
100109
if finished_at is not unset:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-04-10T10:29:43.940Z
1+
2025-04-03T20:58:02.871Z

tests/v2/cassettes/test_scenarios/test_create_a_monitor_notification_rule_returns_bad_request_response.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"filter":{"tags":["test:test-create_a_monitor_notification_rule_returns_bad_request_response-1744280983","host:abc"]},"name":"test
3+
body: '{"data":{"attributes":{"filter":{"tags":["test:test-create_a_monitor_notification_rule_returns_bad_request_response-1743713882","host:abc"]},"name":"test
44
rule","recipients":["@slack-test-channel","@jira-test"]},"type":"monitor-notification-rule"}}'
55
headers:
66
accept:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-04-10T10:29:44.273Z
1+
2025-04-03T20:58:03.005Z

tests/v2/cassettes/test_scenarios/test_create_a_monitor_notification_rule_returns_ok_response.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"filter":{"tags":["test:test-create_a_monitor_notification_rule_returns_ok_response-1744280984"]},"name":"test
3+
body: '{"data":{"attributes":{"filter":{"tags":["test:test-create_a_monitor_notification_rule_returns_ok_response-1743713883"]},"name":"test
44
rule","recipients":["slack-test-channel","jira-test"]},"type":"monitor-notification-rule"}}'
55
headers:
66
accept:
@@ -11,8 +11,8 @@ interactions:
1111
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule
1212
response:
1313
body:
14-
string: '{"data":{"type":"monitor-notification-rule","attributes":{"filter":{"tags":["test:test-create_a_monitor_notification_rule_returns_ok_response-1744280984"]},"recipients":["slack-test-channel","jira-test"],"name":"test
15-
rule","created_at":"2025-04-10T10:29:44.595607+00:00","modified_at":"1970-01-01T00:00:00+00:00"},"id":"a3323ef6-2a04-4ef9-8de8-cbcff5c3c203","relationships":{"created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}}}},"included":[{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"name":"frog","handle":"frog@datadoghq.com","created_at":"2019-10-02T08:15:39.795051+00:00","modified_at":"2025-04-07T20:19:46.118466+00:00","email":"frog@datadoghq.com","icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro","title":null,"verified":true,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Active"}}]}
14+
string: '{"data":{"type":"monitor-notification-rule","id":"55959a04-463a-4579-8386-8c2ca120aa52","attributes":{"creator_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","filter":{"tags":["test:test-create_a_monitor_notification_rule_returns_ok_response-1743713883"]},"created_at":"2025-04-03T20:58:03.137650+00:00","recipients":["slack-test-channel","jira-test"],"name":"test
15+
rule","modified_at":"1970-01-01T00:00:00+00:00"}}}
1616
1717
'
1818
headers:
@@ -27,7 +27,7 @@ interactions:
2727
accept:
2828
- '*/*'
2929
method: DELETE
30-
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule/a3323ef6-2a04-4ef9-8de8-cbcff5c3c203
30+
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule/55959a04-463a-4579-8386-8c2ca120aa52
3131
response:
3232
body:
3333
string: ''
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-04-10T10:29:46.694Z
1+
2025-04-03T20:58:03.324Z

tests/v2/cassettes/test_scenarios/test_delete_a_monitor_notification_rule_returns_not_found_response.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interactions:
88
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule/00000000-0000-1234-0000-000000000000
99
response:
1010
body:
11-
string: '{"errors":["Monitor Notification Rule not found"]}'
11+
string: '{"errors":["Monitor notification rule not found"]}'
1212
headers:
1313
content-type:
1414
- application/json

0 commit comments

Comments
 (0)