Skip to content

Commit dfd4c78

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

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:49.961468",
8-
"spec_repo_commit": "a21ba287"
7+
"regenerated": "2024-08-09 16:10:42.589994",
8+
"spec_repo_commit": "4a0f9e08"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-09 12:06:49.979811",
13-
"spec_repo_commit": "a21ba287"
12+
"regenerated": "2024-08-09 16:10:42.608230",
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

lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class DORADeploymentRequestAttributes
2424
# Environment name to where the service was deployed.
2525
attr_accessor :env
2626

27-
# Unix timestamp in nanoseconds when the deployment finished. It should not be older than 1 hour.
27+
# Unix timestamp when the deployment finished. It must be in nanoseconds, milliseconds, or seconds, and it should not be older than 1 hour.
2828
attr_reader :finished_at
2929

3030
# Git info for DORA Metrics events.
@@ -36,7 +36,7 @@ class DORADeploymentRequestAttributes
3636
# Service name from a service available in the Service Catalog.
3737
attr_reader :service
3838

39-
# Unix timestamp in nanoseconds when the deployment started.
39+
# Unix timestamp when the deployment started. It must be in nanoseconds, milliseconds, or seconds.
4040
attr_reader :started_at
4141

4242
# Version to correlate with [APM Deployment Tracking](https://docs.datadoghq.com/tracing/services/deployment_tracking/).

lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class DORAIncidentRequestAttributes
2424
# Environment name that was impacted by the incident.
2525
attr_accessor :env
2626

27-
# Unix timestamp in nanoseconds when the incident finished. It should not be older than 1 hour.
27+
# Unix timestamp when the incident finished. It must be in nanoseconds, milliseconds, or seconds, and it should not be older than 1 hour.
2828
attr_accessor :finished_at
2929

3030
# Git info for DORA Metrics events.
@@ -42,7 +42,7 @@ class DORAIncidentRequestAttributes
4242
# Incident severity.
4343
attr_accessor :severity
4444

45-
# Unix timestamp in nanoseconds when the incident started.
45+
# Unix timestamp when the incident started. It must be in nanoseconds, milliseconds, or seconds.
4646
attr_reader :started_at
4747

4848
# Name of the team owning the services impacted. If possible, use team handles registered in Datadog. Required when the services field is not provided.

0 commit comments

Comments
 (0)