Skip to content

Commit 2ca3e4f

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9e5e391d of spec repo
1 parent 4897d61 commit 2ca3e4f

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-18 23:59:54.263751",
8-
"spec_repo_commit": "7dba000a"
7+
"regenerated": "2024-01-19 15:56:49.593317",
8+
"spec_repo_commit": "9e5e391d"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-01-18 23:59:54.282131",
13-
"spec_repo_commit": "7dba000a"
12+
"regenerated": "2024-01-19 15:56:49.607657",
13+
"spec_repo_commit": "9e5e391d"
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.

features/v2/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

packages/datadog-api-client-v2/models/DORADeploymentRequestAttributes.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1111
* Attributes to create a DORA deployment event.
1212
*/
1313
export class DORADeploymentRequestAttributes {
14+
/**
15+
* Environment name to where the service was deployed.
16+
*/
17+
"env"?: string;
1418
/**
1519
* Unix timestamp in nanoseconds when the deployment finished. It should not be older than 3 hours.
1620
*/
@@ -45,6 +49,10 @@ export class DORADeploymentRequestAttributes {
4549
* @ignore
4650
*/
4751
static readonly attributeTypeMap: AttributeTypeMap = {
52+
env: {
53+
baseName: "env",
54+
type: "string",
55+
},
4856
finishedAt: {
4957
baseName: "finished_at",
5058
type: "number",

packages/datadog-api-client-v2/models/DORAIncidentRequestAttributes.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1111
* Attributes to create a DORA incident event.
1212
*/
1313
export class DORAIncidentRequestAttributes {
14+
/**
15+
* Environment name that was impacted by the incident.
16+
*/
17+
"env"?: string;
1418
/**
1519
* Unix timestamp in nanoseconds when the incident finished. It should not be older than 3 hours.
1620
*/
@@ -53,6 +57,10 @@ export class DORAIncidentRequestAttributes {
5357
* @ignore
5458
*/
5559
static readonly attributeTypeMap: AttributeTypeMap = {
60+
env: {
61+
baseName: "env",
62+
type: "string",
63+
},
5664
finishedAt: {
5765
baseName: "finished_at",
5866
type: "number",

0 commit comments

Comments
 (0)