Skip to content

Commit 5ecfedb

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
SLO-3271: Update documentation for the transitions returned by SLO history (#1965)
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 c5c9b81 commit 5ecfedb

File tree

4 files changed

+57
-12
lines changed

4 files changed

+57
-12
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-05-14 14:47:49.021323",
8-
"spec_repo_commit": "48746015"
7+
"regenerated": "2024-05-14 16:39:57.264850",
8+
"spec_repo_commit": "45952461"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-05-14 14:47:49.038170",
13-
"spec_repo_commit": "48746015"
12+
"regenerated": "2024-05-14 16:39:57.281596",
13+
"spec_repo_commit": "45952461"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10661,9 +10661,24 @@ components:
1066110661
example: name
1066210662
type: string
1066310663
history:
10664-
description: For `monitor` based SLOs, this includes the aggregated history
10665-
as arrays that include timeseries and uptime data where `0=monitor` is
10666-
in `OK` state and `1=monitor` is in `alert` state.
10664+
description: 'The state transition history for the monitor. It is represented
10665+
as
10666+
10667+
an array of pairs. Each pair is an array containing the timestamp of the
10668+
transition
10669+
10670+
as an integer in Unix epoch format in the first element, and the state
10671+
as an integer in the
10672+
10673+
second element. An integer value of `0` for state means uptime, `1` means
10674+
downtime, and `2` means no data.
10675+
10676+
Periods of no data are counted either as uptime or downtime depending
10677+
on monitor settings.
10678+
10679+
See [SLO documentatio](https://docs.datadoghq.com/service_management/service_level_objectives/monitor/#missing-data)
10680+
10681+
for detailed information.'
1066710682
example:
1066810683
- - 1579212382
1066910684
- 0
@@ -10843,9 +10858,26 @@ components:
1084310858
example: name
1084410859
type: string
1084510860
history:
10846-
description: For `monitor` based SLOs, this includes the aggregated history
10847-
as arrays that include timeseries and uptime data where `0=monitor` is
10848-
in `OK` state and `1=monitor` is in `alert` state.
10861+
description: 'The state transition history for `monitor` or `time-slice`
10862+
SLOs. It is represented as
10863+
10864+
an array of pairs. Each pair is an array containing the timestamp of the
10865+
transition
10866+
10867+
as an integer in Unix epoch format in the first element, and the state
10868+
as an integer in the
10869+
10870+
second element. An integer value of `0` for state means uptime, `1` means
10871+
downtime, and `2` means no data.
10872+
10873+
Periods of no data count as uptime in time-slice SLOs, while for monitor
10874+
SLOs, no data is counted
10875+
10876+
either as uptime or downtime depending on monitor settings. See
10877+
10878+
[SLO documentation](https://docs.datadoghq.com/service_management/service_level_objectives/monitor/#missing-data)
10879+
10880+
for detailed information.'
1084910881
example:
1085010882
- - 1579212382
1085110883
- 0

src/datadog_api_client/v1/model/slo_history_monitor.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,13 @@ def __init__(
8484
:param group: For groups in a grouped SLO, this is the group name.
8585
:type group: str, optional
8686
87-
:param history: For ``monitor`` based SLOs, this includes the aggregated history as arrays that include timeseries and uptime data where ``0=monitor`` is in ``OK`` state and ``1=monitor`` is in ``alert`` state.
87+
:param history: The state transition history for the monitor. It is represented as
88+
an array of pairs. Each pair is an array containing the timestamp of the transition
89+
as an integer in Unix epoch format in the first element, and the state as an integer in the
90+
second element. An integer value of ``0`` for state means uptime, ``1`` means downtime, and ``2`` means no data.
91+
Periods of no data are counted either as uptime or downtime depending on monitor settings.
92+
See `SLO documentatio <https://docs.datadoghq.com/service_management/service_level_objectives/monitor/#missing-data>`_
93+
for detailed information.
8894
:type history: [[float]], optional
8995
9096
:param monitor_modified: For ``monitor`` based SLOs, this is the last modified timestamp in epoch seconds of the monitor.

src/datadog_api_client/v1/model/slo_history_sli_data.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,14 @@ def __init__(
8484
:param group: For groups in a grouped SLO, this is the group name.
8585
:type group: str, optional
8686
87-
:param history: For ``monitor`` based SLOs, this includes the aggregated history as arrays that include timeseries and uptime data where ``0=monitor`` is in ``OK`` state and ``1=monitor`` is in ``alert`` state.
87+
:param history: The state transition history for ``monitor`` or ``time-slice`` SLOs. It is represented as
88+
an array of pairs. Each pair is an array containing the timestamp of the transition
89+
as an integer in Unix epoch format in the first element, and the state as an integer in the
90+
second element. An integer value of ``0`` for state means uptime, ``1`` means downtime, and ``2`` means no data.
91+
Periods of no data count as uptime in time-slice SLOs, while for monitor SLOs, no data is counted
92+
either as uptime or downtime depending on monitor settings. See
93+
`SLO documentation <https://docs.datadoghq.com/service_management/service_level_objectives/monitor/#missing-data>`_
94+
for detailed information.
8895
:type history: [[float]], optional
8996
9097
:param monitor_modified: For ``monitor`` based SLOs, this is the last modified timestamp in epoch seconds of the monitor.

0 commit comments

Comments
 (0)