Skip to content

Commit 9c523e8

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 20461e26 of spec repo
1 parent cd7063a commit 9c523e8

File tree

5 files changed

+29
-5
lines changed

5 files changed

+29
-5
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.6",
7-
"regenerated": "2024-01-19 15:18:14.559252",
8-
"spec_repo_commit": "b407748b"
7+
"regenerated": "2024-01-19 16:05:44.924100",
8+
"spec_repo_commit": "20461e26"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-01-19 15:18:14.573971",
13-
"spec_repo_commit": "b407748b"
12+
"regenerated": "2024-01-19 16:05:44.937783",
13+
"spec_repo_commit": "20461e26"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4930,6 +4930,10 @@ components:
49304930
DORADeploymentRequestAttributes:
49314931
description: Attributes to create a DORA deployment event.
49324932
properties:
4933+
env:
4934+
description: Environment name to where the service was deployed.
4935+
example: staging
4936+
type: string
49334937
finished_at:
49344938
description: Unix timestamp in nanoseconds when the deployment finished.
49354939
It should not be older than 3 hours.
@@ -5018,6 +5022,10 @@ components:
50185022
DORAIncidentRequestAttributes:
50195023
description: Attributes to create a DORA incident event.
50205024
properties:
5025+
env:
5026+
description: Environment name that was impacted by the incident.
5027+
example: staging
5028+
type: string
50215029
finished_at:
50225030
description: Unix timestamp in nanoseconds when the incident finished. It
50235031
should not be older than 3 hours.

src/datadog_api_client/v2/model/dora_deployment_request_attributes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def openapi_types(_):
2323
from datadog_api_client.v2.model.dora_git_info import DORAGitInfo
2424

2525
return {
26+
"env": (str,),
2627
"finished_at": (int,),
2728
"git": (DORAGitInfo,),
2829
"id": (str,),
@@ -32,6 +33,7 @@ def openapi_types(_):
3233
}
3334

3435
attribute_map = {
36+
"env": "env",
3537
"finished_at": "finished_at",
3638
"git": "git",
3739
"id": "id",
@@ -45,6 +47,7 @@ def __init__(
4547
finished_at: int,
4648
service: str,
4749
started_at: int,
50+
env: Union[str, UnsetType] = unset,
4851
git: Union[DORAGitInfo, UnsetType] = unset,
4952
id: Union[str, UnsetType] = unset,
5053
version: Union[str, UnsetType] = unset,
@@ -53,6 +56,9 @@ def __init__(
5356
"""
5457
Attributes to create a DORA deployment event.
5558
59+
:param env: Environment name to where the service was deployed.
60+
:type env: str, optional
61+
5662
:param finished_at: Unix timestamp in nanoseconds when the deployment finished. It should not be older than 3 hours.
5763
:type finished_at: int
5864
@@ -71,6 +77,8 @@ def __init__(
7177
:param version: Version to correlate with `APM Deployment Tracking <https://docs.datadoghq.com/tracing/services/deployment_tracking/>`_.
7278
:type version: str, optional
7379
"""
80+
if env is not unset:
81+
kwargs["env"] = env
7482
if git is not unset:
7583
kwargs["git"] = git
7684
if id is not unset:

src/datadog_api_client/v2/model/dora_incident_request_attributes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def openapi_types(_):
2323
from datadog_api_client.v2.model.dora_git_info import DORAGitInfo
2424

2525
return {
26+
"env": (str,),
2627
"finished_at": (int,),
2728
"git": (DORAGitInfo,),
2829
"id": (str,),
@@ -34,6 +35,7 @@ def openapi_types(_):
3435
}
3536

3637
attribute_map = {
38+
"env": "env",
3739
"finished_at": "finished_at",
3840
"git": "git",
3941
"id": "id",
@@ -48,6 +50,7 @@ def __init__(
4850
self_,
4951
service: str,
5052
started_at: int,
53+
env: Union[str, UnsetType] = unset,
5154
finished_at: Union[int, UnsetType] = unset,
5255
git: Union[DORAGitInfo, UnsetType] = unset,
5356
id: Union[str, UnsetType] = unset,
@@ -59,6 +62,9 @@ def __init__(
5962
"""
6063
Attributes to create a DORA incident event.
6164
65+
:param env: Environment name that was impacted by the incident.
66+
:type env: str, optional
67+
6268
:param finished_at: Unix timestamp in nanoseconds when the incident finished. It should not be older than 3 hours.
6369
:type finished_at: int, optional
6470
@@ -83,6 +89,8 @@ def __init__(
8389
:param version: Version to correlate with `APM Deployment Tracking <https://docs.datadoghq.com/tracing/services/deployment_tracking/>`_.
8490
:type version: str, optional
8591
"""
92+
if env is not unset:
93+
kwargs["env"] = env
8694
if finished_at is not unset:
8795
kwargs["finished_at"] = finished_at
8896
if git is not unset:

tests/v2/features/dora_metrics.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Feature: DORA Metrics
4242
Scenario: Send an incident event for DORA Metrics returns "OK - but delayed due to incident" response
4343
Given operation "CreateDORAIncident" enabled
4444
And new "CreateDORAIncident" request
45-
And body with value {"data": {"attributes": {"finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests", "service": "shopist", "severity": "High", "started_at": 1693491974000000000, "version": "v1.12.07"}}}
45+
And body with value {"data": {"attributes": {"env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests", "service": "shopist", "severity": "High", "started_at": 1693491974000000000, "version": "v1.12.07"}}}
4646
When the request is sent
4747
Then the response status is 202 OK - but delayed due to incident
4848

0 commit comments

Comments
 (0)