Skip to content

Commit 025a844

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 1010045c of spec repo (#869)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 3adedbe commit 025a844

File tree

5 files changed

+9
-22
lines changed

5 files changed

+9
-22
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.4",
7-
"regenerated": "2022-10-07 13:12:47.359934",
8-
"spec_repo_commit": "a09fec54"
7+
"regenerated": "2022-10-07 16:18:54.165140",
8+
"spec_repo_commit": "1010045c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-10-07 13:12:47.371759",
13-
"spec_repo_commit": "a09fec54"
12+
"regenerated": "2022-10-07 16:18:54.182362",
13+
"spec_repo_commit": "1010045c"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2620,7 +2620,8 @@ components:
26202620
format: int64
26212621
type: integer
26222622
resolved:
2623-
description: Timestamp when the incident's state was set to resolved.
2623+
description: Timestamp when the incident's state was last changed from active
2624+
or stable to resolved or completed.
26242625
format: date-time
26252626
nullable: true
26262627
type: string
@@ -3129,11 +3130,6 @@ components:
31293130
items:
31303131
$ref: '#/components/schemas/IncidentNotificationHandle'
31313132
type: array
3132-
resolved:
3133-
description: Timestamp when the incident's state was set to resolved.
3134-
format: date-time
3135-
nullable: true
3136-
type: string
31373133
title:
31383134
description: The title of the incident, which summarizes what happened.
31393135
example: A test incident title

features/v2/incidents.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ Feature: Incidents
215215
Given operation "UpdateIncident" enabled
216216
And new "UpdateIncident" request
217217
And request contains "incident_id" parameter from "REPLACE.ME"
218-
And body with value {"data": {"attributes": {"customer_impact_end": null, "customer_impact_scope": "Example customer impact scope", "customer_impact_start": null, "customer_impacted": false, "detected": null, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "notification_handles": [{"display_name": "Jane Doe", "handle": "@[email protected]"}], "resolved": null, "title": "A test incident title"}, "id": "00000000-0000-0000-4567-000000000000", "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "integrations": {"data": [{"id": "00000000-abcd-0005-0000-000000000000", "type": "incident_integrations"}, {"id": "00000000-abcd-0006-0000-000000000000", "type": "incident_integrations"}]}, "postmortem": {"data": {"id": "00000000-0000-abcd-3000-000000000000", "type": "incident_postmortems"}}}, "type": "incidents"}}
218+
And body with value {"data": {"attributes": {"customer_impact_end": null, "customer_impact_scope": "Example customer impact scope", "customer_impact_start": null, "customer_impacted": false, "detected": null, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "notification_handles": [{"display_name": "Jane Doe", "handle": "@[email protected]"}], "title": "A test incident title"}, "id": "00000000-0000-0000-4567-000000000000", "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "integrations": {"data": [{"id": "00000000-abcd-0005-0000-000000000000", "type": "incident_integrations"}, {"id": "00000000-abcd-0006-0000-000000000000", "type": "incident_integrations"}]}, "postmortem": {"data": {"id": "00000000-0000-abcd-3000-000000000000", "type": "incident_postmortems"}}}, "type": "incidents"}}
219219
When the request is sent
220220
Then the response status is 400 Bad Request
221221

@@ -224,7 +224,7 @@ Feature: Incidents
224224
Given operation "UpdateIncident" enabled
225225
And new "UpdateIncident" request
226226
And request contains "incident_id" parameter from "REPLACE.ME"
227-
And body with value {"data": {"attributes": {"customer_impact_end": null, "customer_impact_scope": "Example customer impact scope", "customer_impact_start": null, "customer_impacted": false, "detected": null, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "notification_handles": [{"display_name": "Jane Doe", "handle": "@[email protected]"}], "resolved": null, "title": "A test incident title"}, "id": "00000000-0000-0000-4567-000000000000", "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "integrations": {"data": [{"id": "00000000-abcd-0005-0000-000000000000", "type": "incident_integrations"}, {"id": "00000000-abcd-0006-0000-000000000000", "type": "incident_integrations"}]}, "postmortem": {"data": {"id": "00000000-0000-abcd-3000-000000000000", "type": "incident_postmortems"}}}, "type": "incidents"}}
227+
And body with value {"data": {"attributes": {"customer_impact_end": null, "customer_impact_scope": "Example customer impact scope", "customer_impact_start": null, "customer_impacted": false, "detected": null, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "notification_handles": [{"display_name": "Jane Doe", "handle": "@[email protected]"}], "title": "A test incident title"}, "id": "00000000-0000-0000-4567-000000000000", "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "integrations": {"data": [{"id": "00000000-abcd-0005-0000-000000000000", "type": "incident_integrations"}, {"id": "00000000-abcd-0006-0000-000000000000", "type": "incident_integrations"}]}, "postmortem": {"data": {"id": "00000000-0000-abcd-3000-000000000000", "type": "incident_postmortems"}}}, "type": "incidents"}}
228228
When the request is sent
229229
Then the response status is 404 Not Found
230230

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class IncidentResponseAttributes {
5858
*/
5959
"publicId"?: number;
6060
/**
61-
* Timestamp when the incident's state was set to resolved.
61+
* Timestamp when the incident's state was last changed from active or stable to resolved or completed.
6262
*/
6363
"resolved"?: Date;
6464
/**

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ export class IncidentUpdateAttributes {
4040
* Notification handles that will be notified of the incident during update.
4141
*/
4242
"notificationHandles"?: Array<IncidentNotificationHandle>;
43-
/**
44-
* Timestamp when the incident's state was set to resolved.
45-
*/
46-
"resolved"?: Date;
4743
/**
4844
* The title of the incident, which summarizes what happened.
4945
*/
@@ -89,11 +85,6 @@ export class IncidentUpdateAttributes {
8985
baseName: "notification_handles",
9086
type: "Array<IncidentNotificationHandle>",
9187
},
92-
resolved: {
93-
baseName: "resolved",
94-
type: "Date",
95-
format: "date-time",
96-
},
9788
title: {
9889
baseName: "title",
9990
type: "string",

0 commit comments

Comments
 (0)