You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/datadog_api_client/v1/model/slo_history_monitor.py
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,13 @@ def __init__(
84
84
:param group: For groups in a grouped SLO, this is the group name.
85
85
:type group: str, optional
86
86
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.
88
94
:type history: [[float]], optional
89
95
90
96
:param monitor_modified: For ``monitor`` based SLOs, this is the last modified timestamp in epoch seconds of the monitor.
Copy file name to clipboardExpand all lines: src/datadog_api_client/v1/model/slo_history_sli_data.py
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,14 @@ def __init__(
84
84
:param group: For groups in a grouped SLO, this is the group name.
85
85
:type group: str, optional
86
86
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
0 commit comments