Skip to content

Commit 6ed1c05

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update DORA API docs to allow timestamps in milliseconds and seconds (#1741)
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 23d2bff commit 6ed1c05

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
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-08-09 12:06:46.968763",
8-
"spec_repo_commit": "a21ba287"
7+
"regenerated": "2024-08-09 16:10:43.432822",
8+
"spec_repo_commit": "4a0f9e08"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-09 12:06:46.987436",
13-
"spec_repo_commit": "a21ba287"
12+
"regenerated": "2024-08-09 16:10:43.451410",
13+
"spec_repo_commit": "4a0f9e08"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6396,8 +6396,9 @@ components:
63966396
example: staging
63976397
type: string
63986398
finished_at:
6399-
description: Unix timestamp in nanoseconds when the deployment finished.
6400-
It should not be older than 1 hour.
6399+
description: Unix timestamp when the deployment finished. It must be in
6400+
nanoseconds, milliseconds, or seconds, and it should not be older than
6401+
1 hour.
64016402
example: 1693491984000000000
64026403
format: int64
64036404
type: integer
@@ -6411,7 +6412,8 @@ components:
64116412
example: shopist
64126413
type: string
64136414
started_at:
6414-
description: Unix timestamp in nanoseconds when the deployment started.
6415+
description: Unix timestamp when the deployment started. It must be in nanoseconds,
6416+
milliseconds, or seconds.
64156417
example: 1693491974000000000
64166418
format: int64
64176419
type: integer
@@ -6488,8 +6490,8 @@ components:
64886490
example: staging
64896491
type: string
64906492
finished_at:
6491-
description: Unix timestamp in nanoseconds when the incident finished. It
6492-
should not be older than 1 hour.
6493+
description: Unix timestamp when the incident finished. It must be in nanoseconds,
6494+
milliseconds, or seconds, and it should not be older than 1 hour.
64936495
example: 1693491984000000000
64946496
format: int64
64956497
type: integer
@@ -6516,7 +6518,8 @@ components:
65166518
example: High
65176519
type: string
65186520
started_at:
6519-
description: Unix timestamp in nanoseconds when the incident started.
6521+
description: Unix timestamp when the incident started. It must be in nanoseconds,
6522+
milliseconds, or seconds.
65206523
example: 1693491974000000000
65216524
format: int64
65226525
type: integer

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class DORADeploymentRequestAttributes {
1616
*/
1717
"env"?: string;
1818
/**
19-
* Unix timestamp in nanoseconds when the deployment finished. It should not be older than 1 hour.
19+
* Unix timestamp when the deployment finished. It must be in nanoseconds, milliseconds, or seconds, and it should not be older than 1 hour.
2020
*/
2121
"finishedAt": number;
2222
/**
@@ -32,7 +32,7 @@ export class DORADeploymentRequestAttributes {
3232
*/
3333
"service": string;
3434
/**
35-
* Unix timestamp in nanoseconds when the deployment started.
35+
* Unix timestamp when the deployment started. It must be in nanoseconds, milliseconds, or seconds.
3636
*/
3737
"startedAt": number;
3838
/**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class DORAIncidentRequestAttributes {
1616
*/
1717
"env"?: string;
1818
/**
19-
* Unix timestamp in nanoseconds when the incident finished. It should not be older than 1 hour.
19+
* Unix timestamp when the incident finished. It must be in nanoseconds, milliseconds, or seconds, and it should not be older than 1 hour.
2020
*/
2121
"finishedAt"?: number;
2222
/**
@@ -40,7 +40,7 @@ export class DORAIncidentRequestAttributes {
4040
*/
4141
"severity"?: string;
4242
/**
43-
* Unix timestamp in nanoseconds when the incident started.
43+
* Unix timestamp when the incident started. It must be in nanoseconds, milliseconds, or seconds.
4444
*/
4545
"startedAt": number;
4646
/**

0 commit comments

Comments
 (0)