Skip to content

Commit 19db31d

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

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:46.610140",
8-
"spec_repo_commit": "48746015"
7+
"regenerated": "2024-05-14 16:39:59.497453",
8+
"spec_repo_commit": "45952461"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-05-14 14:47:46.629980",
13-
"spec_repo_commit": "48746015"
12+
"regenerated": "2024-05-14 16:39:59.515084",
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

packages/datadog-api-client-v1/models/SLOHistoryMonitor.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ export class SLOHistoryMonitor {
2525
*/
2626
"group"?: string;
2727
/**
28-
* 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.
28+
* The state transition history for the monitor. It is represented as
29+
* an array of pairs. Each pair is an array containing the timestamp of the transition
30+
* as an integer in Unix epoch format in the first element, and the state as an integer in the
31+
* second element. An integer value of `0` for state means uptime, `1` means downtime, and `2` means no data.
32+
* Periods of no data are counted either as uptime or downtime depending on monitor settings.
33+
* See [SLO documentatio](https://docs.datadoghq.com/service_management/service_level_objectives/monitor/#missing-data)
34+
* for detailed information.
2935
*/
3036
"history"?: Array<[number, number]>;
3137
/**

packages/datadog-api-client-v1/models/SLOHistorySLIData.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ export class SLOHistorySLIData {
2525
*/
2626
"group"?: string;
2727
/**
28-
* 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.
28+
* The state transition history for `monitor` or `time-slice` SLOs. It is represented as
29+
* an array of pairs. Each pair is an array containing the timestamp of the transition
30+
* as an integer in Unix epoch format in the first element, and the state as an integer in the
31+
* second element. An integer value of `0` for state means uptime, `1` means downtime, and `2` means no data.
32+
* Periods of no data count as uptime in time-slice SLOs, while for monitor SLOs, no data is counted
33+
* either as uptime or downtime depending on monitor settings. See
34+
* [SLO documentation](https://docs.datadoghq.com/service_management/service_level_objectives/monitor/#missing-data)
35+
* for detailed information.
2936
*/
3037
"history"?: Array<[number, number]>;
3138
/**

0 commit comments

Comments
 (0)