Skip to content

SLO SLA Status and 24-Hour Trend



POST /api/v1/slo/runtime/list

Overview

Queries the current runtime status of an SLO and the rolling statistical samples for the last 24 hours.

Before Calling and Usage Steps

The current key must match one of routine.defaultAccess or monitor.sloCfgManage declared by the API (authorization is determined by the permission intersection). A single query returns the current status and 24 hourly sample points for at most 100 SLOs in the same workspace; it does not return raw Total/Good, the full configuration, or calendar daily reports.

Each sample point reflects the 7-day/30-day rolling availability as of that moment; the outer startTime/endTime only mark a one-hour display interval, while the start and end inside availability are the actual statistical window. The current status is calculated from the last window and the target threshold, not the worst value over 24 hours. This endpoint does not apply status page maintenance plans, so there is no maintenance status.

Monitor-type SLOs read slo cost and correction points. If a query succeeds but there is no cost data, it is calculated as 100% with zero cost and marked complete, and updatedAt may be null; this does not prove that the collector is online or that the source monitor actually executed. Metric-type SLOs read the latest valid period snapshot of slo_metric, strictly later than metricResultValidAfter, and use good/total×100; when there is no snapshot, the total is <= 0, the value is invalid, or there are conflicting snapshots at the same latest moment, the result is no_data/value=null/unknown, and the zero-cost 100% rule is not applied. Metric-type SLOs do not sum multiple period snapshots again and may use an earlier latest snapshot; check updatedAt and availability.endTime to determine freshness. The API does not promise a fixed freshness time limit.

If any UUID is not in the current workspace or has been deleted, the entire batch returns 404; if the format is invalid, the entire batch returns 400. For a single SLO that exists but is disabled, has groupBy configured, has an abnormal statistics configuration, or fails data reading, the response usually degrades to HTTP 200 with current.status=unknown and dataState=unavailable, without affecting other SLOs; do not determine data availability solely by HTTP 200. When grouped statistics are required, use the corresponding SLO data query, and do not interpret unknown from this endpoint as a service failure. The example intentionally shows a successful monitor-type SLO with empty cost at 100% and updatedAt=null; all 24 points use the complete response structure.

Responses follow the public response structure. Evaluate the HTTP status, success, and each SLO's dataState together.

Request Headers

Parameter Name Type Required Description
DF-API-KEY string Y OpenAPI authentication credential for the workspace.
Example: <DF-API-KEY>
How to obtain or enter: Obtain an OpenAPI Key with this operation permission from API Key Management in the target workspace.

Body Request Parameters

Parameter Name Type Required Description
sloUUIDs[*] string A single SLO UUID, usually with the monitor_ prefix; do not enter a detection Rule UUID.
Example: monitor_example
How to obtain or enter: Same source as sloUUIDs.
sloUUIDs array Y Required non-empty array; the original array can contain at most 100 items, which are read after deduplication; each item must be a 1- to 48-character [A-Za-z0-9_-] identifier. Only SLOs that have not been deleted in the current workspace are accepted. If any target is unavailable, the entire request returns 404, and partial targets are not returned.
Example: ["monitor_example"]
How to obtain or enter: Obtain content.data[].uuid from Get SLO List; to view the type/group/status, read the details.
asOf integer Optional Unix seconds integer from 1 to 2^63-1, which cannot be later than the server's current time; milliseconds, booleans, or null are not accepted. Each window is sampled hourly backward from this moment, without rounding to natural hours or the workspace time zone.
Example: 1785427200
How to obtain or enter: The caller selects the query cutoff time; it is usually omitted to use the server's current time.

Request Example

curl --request POST 'https://openapi.truewatch.com/api/v1/slo/runtime/list' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"sloUUIDs":["monitor_example"]}'

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content.asOf integer Actual query cutoff time, Unix seconds.
content.data array<object> Returned in the order in which the requested UUIDs first appear, one item per SLO; this endpoint does not paginate.
content.data[].sloUUID string Corresponding SLO UUID.
content.data[].current object Status summary of the most recent rolling window at asOf, not merely the availability of the last hour.
content.data[].current.status string normal/degraded/incident/unknown; this endpoint does not include maintenance from status page maintenance plans. value>=goal is normal, >=minGoal but <goal is degraded, below minGoal is incident, and no available value is unknown.
content.data[].current.dataState string complete/no_data/unavailable; complete indicates that calculation and reading are complete, but does not guarantee that business collection is complete.
content.data[].current.updatedAt number or null Timestamp of the latest underlying non-corrected sample/snapshot, Unix seconds, which may include decimals; null if there is no sample or it is unavailable.
content.data[].runtime24h object The most recent 24 hourly-sampled rolling statistical windows, not the SLA for 24 non-overlapping hours.
content.data[].runtime24h.startTime integer asOf-86400, Unix seconds.
content.data[].runtime24h.endTime integer asOf, Unix seconds.
content.data[].runtime24h.dataState string Copies the dataState of the most recent item; it is not a summary of the worst value across the 24 items.
content.data[].runtime24h.points array<object> Exactly 24 items, from earliest to latest, with the last item ending at asOf.
content.data[].runtime24h.points[].startTime integer Start of this display hour interval, Unix seconds; this is not the start of the availability statistical window for this item.
content.data[].runtime24h.points[].endTime integer End of this display hour interval, Unix seconds; this is used as the sampling moment.
content.data[].runtime24h.points[].status string normal/degraded/incident/unknown at this sampling moment, using the same thresholds as current.
content.data[].runtime24h.points[].dataState string complete/no_data/unavailable for this sampling window.
content.data[].runtime24h.points[].availability object The actual rolling statistical window and percentage; this differs from the outer one-hour display interval.
content.data[].runtime24h.points[].availability.value number or null Availability percentage from 0 to 100 with up to 6 decimal places; null cannot be interpreted as 0% or 100%.
content.data[].runtime24h.points[].availability.dataState string complete/no_data/unavailable.
content.data[].runtime24h.points[].availability.updatedAt number or null Unix seconds of the latest raw sample/snapshot used for calculation; may be null when there is no data.
content.data[].runtime24h.points[].availability.startTime number Start of the actual statistical window in Unix seconds; for monitor-type it is the sampling moment minus checkRange, and for metric-type it is the latest snapshot time minus checkRange.
content.data[].runtime24h.points[].availability.endTime number End of the actual statistical window in Unix seconds; for metric-type it may be earlier than the outer hourly sampling moment.
content.data[].runtime24h.points[].availability.dayRange string 7d or 30d; when an old invalid period is degraded, 7d is used and marked unavailable.
content.declaration object Common declaration for the current workspace; it is not recursively inserted into each data item.
{
  "code": 200,
  "content": {
    "asOf": 1785427200,
    "data": [
      {
        "sloUUID": "monitor_example",
        "current": {
          "status": "normal",
          "dataState": "complete",
          "updatedAt": null
        },
        "runtime24h": {
          "startTime": 1785340800,
          "endTime": 1785427200,
          "dataState": "complete",
          "points": [
            {
              "startTime": 1785340800,
              "endTime": 1785344400,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784739600,
                "endTime": 1785344400,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785344400,
              "endTime": 1785348000,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784743200,
                "endTime": 1785348000,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785348000,
              "endTime": 1785351600,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784746800,
                "endTime": 1785351600,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785351600,
              "endTime": 1785355200,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784750400,
                "endTime": 1785355200,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785355200,
              "endTime": 1785358800,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784754000,
                "endTime": 1785358800,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785358800,
              "endTime": 1785362400,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784757600,
                "endTime": 1785362400,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785362400,
              "endTime": 1785366000,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784761200,
                "endTime": 1785366000,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785366000,
              "endTime": 1785369600,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784764800,
                "endTime": 1785369600,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785369600,
              "endTime": 1785373200,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784768400,
                "endTime": 1785373200,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785373200,
              "endTime": 1785376800,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784772000,
                "endTime": 1785376800,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785376800,
              "endTime": 1785380400,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784775600,
                "endTime": 1785380400,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785380400,
              "endTime": 1785384000,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784779200,
                "endTime": 1785384000,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785384000,
              "endTime": 1785387600,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784782800,
                "endTime": 1785387600,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785387600,
              "endTime": 1785391200,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784786400,
                "endTime": 1785391200,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785391200,
              "endTime": 1785394800,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784790000,
                "endTime": 1785394800,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785394800,
              "endTime": 1785398400,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784793600,
                "endTime": 1785398400,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785398400,
              "endTime": 1785402000,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784797200,
                "endTime": 1785402000,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785402000,
              "endTime": 1785405600,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784800800,
                "endTime": 1785405600,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785405600,
              "endTime": 1785409200,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784804400,
                "endTime": 1785409200,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785409200,
              "endTime": 1785412800,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784808000,
                "endTime": 1785412800,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785412800,
              "endTime": 1785416400,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784811600,
                "endTime": 1785416400,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785416400,
              "endTime": 1785420000,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784815200,
                "endTime": 1785420000,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785420000,
              "endTime": 1785423600,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784818800,
                "endTime": 1785423600,
                "dayRange": "7d"
              }
            },
            {
              "startTime": 1785423600,
              "endTime": 1785427200,
              "status": "normal",
              "dataState": "complete",
              "availability": {
                "value": 100.0,
                "dataState": "complete",
                "updatedAt": null,
                "startTime": 1784822400,
                "endTime": 1785427200,
                "dayRange": "7d"
              }
            }
          ]
        }
      }
    ],
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Response

For authentication, rate limiting, and common request errors, see Common Error Definitions.

Most downstream read errors are converted to per-item unavailable while retaining HTTP 200. This endpoint does not promise to return 503/source_unavailable directly to the customer or a per-item error list.

HTTP Status errorCode Trigger Condition Message or Response Description Handling
406 ft.ParameterValidationFailed Request field is missing, or the field value violates the declared validation condition Parameter parsing failed Check the parameter location, field name, type, and value.
400 ft.RequestJsonFormatError Invalid request JSON syntax Request JSON format error Correct the JSON according to content.reason, line, and column.
400 ft.JsonFormatError JSON top level is not an object Partial JSON file format error Submit an object containing a sloUUIDs array.
400 ft.StatusPage.invalid_parameter Array is empty/exceeds 100, identifier is invalid, asOf is invalid or in the future, or an unrecoverable configuration value error occurs invalid_parameter Check the UUID characters/count, and use a past Unix seconds integer for asOf; ask the administrator to fix abnormal old SLO configurations.
404 ft.StatusPage.slo_unavailable Any UUID in the batch is not an active SLO in the current workspace slo_unavailable Refresh the list for this workspace, remove deleted UUIDs or UUIDs from other workspaces, and query again.
500 ft.InternalServerError Database/system exception not captured by per-SLO degradation Internal error Keep the traceId to check the service; for read-only endpoints, retry with backoff.