Skip to content

Commit 7dd8009

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

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

src/datadog_api_client/v2/model/dora_deployment_request_attributes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(
5959
:param env: Environment name to where the service was deployed.
6060
:type env: str, optional
6161
62-
:param finished_at: Unix timestamp in nanoseconds when the deployment finished. It should not be older than 1 hour.
62+
:param finished_at: Unix timestamp when the deployment finished. It must be in nanoseconds, milliseconds, or seconds, and it should not be older than 1 hour.
6363
:type finished_at: int
6464
6565
:param git: Git info for DORA Metrics events.
@@ -71,7 +71,7 @@ def __init__(
7171
:param service: Service name from a service available in the Service Catalog.
7272
:type service: str
7373
74-
:param started_at: Unix timestamp in nanoseconds when the deployment started.
74+
:param started_at: Unix timestamp when the deployment started. It must be in nanoseconds, milliseconds, or seconds.
7575
:type started_at: int
7676
7777
:param version: Version to correlate with `APM Deployment Tracking <https://docs.datadoghq.com/tracing/services/deployment_tracking/>`_.

src/datadog_api_client/v2/model/dora_incident_request_attributes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __init__(
6868
:param env: Environment name that was impacted by the incident.
6969
:type env: str, optional
7070
71-
:param finished_at: Unix timestamp in nanoseconds when the incident finished. It should not be older than 1 hour.
71+
:param finished_at: Unix timestamp when the incident finished. It must be in nanoseconds, milliseconds, or seconds, and it should not be older than 1 hour.
7272
:type finished_at: int, optional
7373
7474
:param git: Git info for DORA Metrics events.
@@ -86,7 +86,7 @@ def __init__(
8686
:param severity: Incident severity.
8787
:type severity: str, optional
8888
89-
:param started_at: Unix timestamp in nanoseconds when the incident started.
89+
:param started_at: Unix timestamp when the incident started. It must be in nanoseconds, milliseconds, or seconds.
9090
:type started_at: int
9191
9292
:param team: 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)