Skip to content

Get



GET /api/v1/slo/{slo_uuid}/get

Overview

Get an SLO's configuration, associated Monitors, and Alert Policies by UUID.

Before Calling and Usage Steps

First call SLO List and select the SLO identifier from content.data[].uuid. The request uses an API Key from the same Workspace. To query daily availability, confirm that config.sliType is monitor.

Path Parameters

Parameter Type Required Description
slo_uuid string Y Target SLO UUID.
Example: monitor_example
How to obtain or specify: Get it from content.data[].uuid in the SLO List response.

Request Headers

Parameter Type Required Description
DF-API-KEY string Y OpenAPI Key of the current Workspace.
Example: <DF-API-KEY>
How to obtain or specify: Obtain the calling credential from API Key Management in the target Workspace.

Additional Parameter Notes

Reads the SLO in the Workspace to which the current API Key belongs.

Request Example

curl --get -H "DF-API-KEY: <DF-API-KEY>" \
  'https://openapi.guance.com/api/v1/slo/monitor_example/get'

Response

HTTP 200, application/json.

Field Type Description
content.uuid string SLO UUID. Used for SLO reads and availability and runtime status queries.
content.workspaceUUID string Workspace it belongs to.
content.name string SLO name.
content.id integer Record ID.
content.type string Fixed to slo.
content.score number Score field of the SLO record.
content.status integer 0 means enabled, 2 means disabled.
content.creator string Creator identifier.
content.updator string Last updater identifier.
content.createAt number Creation time, in Unix seconds.
content.updateAt number Last update time, in Unix seconds.
content.deleteAt number Deletion time; usually -1 when not deleted.
content.creatorInfo object Creator information; {} if not found.
content.updatorInfo object Last updater information; {} if not found.
content.config object SLO configuration.
content.config.sliType string monitor indicates Monitor type, and metric indicates Metric type. If not configured on legacy records, monitor is returned.
content.config.checkRange integer Statistical period in seconds. Supports 604800 (7 days) and 2592000 (30 days); if omitted, 604800 is returned.
content.config.goal number Target availability percentage.
content.config.minGoal number Minimum availability target percentage.
content.config.describe string SLO description.
content.config.interval string Detection frequency, for example 5m or 10m.
content.config.groupBy array<string> Grouping fields.
content.config.ignoreBadGroupEvents boolean Whether to ignore abnormal grouped events.
content.config.sli_infos array<object> List of associated Monitors; empty if none are associated.
content.config.sli_infos[].id string Associated Monitor UUID.
content.config.sli_infos[].name string Associated Monitor name.
content.config.sli_infos[].status integer Associated Monitor status.
content.config.metricQueries object Metric type only. total and good are the query configurations for total volume and successful volume, respectively. The keys contain dql, queryType, and editor; PromQL may also contain promqlType.
content.metricQueryInfo object Metric type only. Used to select collected data.
content.metricQueryInfo.measurement string Fixed to slo_metric.
content.metricQueryInfo.sloId string Identifier used for collected data; its purpose differs from the business UUID of this API.
content.metricQueryInfo.validAfter integer or null Effective start time for calculation, in Unix milliseconds.
content.metricQueryInfo.stoppedAt integer or null Collection stop time, in Unix milliseconds.
content.tagInfo array<object> Associated tags. Empty array if none are associated.
content.tagInfo[].id integer Tag record ID.
content.tagInfo[].uuid string Tag identifier.
content.tagInfo[].name string Tag name, used for tag queries.
content.tagInfo[].description string Tag description.
content.tagInfo[].colour string Tag color.
content.tagInfo[].scope string Tag scope.
content.alertPolicyInfos array<object> Associated Alert Policies. Empty array if none are associated.
content.alertPolicyInfos[].uuid string Alert Policy UUID.
content.alertPolicyInfos[].name string Alert Policy name.
content.declaration object or null Workspace declaration.
{
  "code": 200,
  "content": {
    "id": 1,
    "uuid": "monitor_example",
    "workspaceUUID": "wksp_example",
    "name": "Service Availability",
    "type": "slo",
    "score": 0,
    "status": 0,
    "config": {
      "sliType": "monitor",
      "checkRange": 604800,
      "goal": 99.9,
      "minGoal": 99.5,
      "describe": "Checkout Service",
      "interval": "5m",
      "sli_infos": [
        {
          "id": "rul_example",
          "name": "Checkout Check",
          "status": 0
        }
      ]
    },
    "tagInfo": [],
    "alertPolicyInfos": [],
    "creatorInfo": {},
    "updatorInfo": {},
    "declaration": null,
    "creator": "wsak_example",
    "updator": "wsak_example",
    "createAt": 1785427200,
    "updateAt": 1785430800,
    "deleteAt": -1
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Response

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

HTTP Status errorCode Trigger Condition Message or Response Description Resolution
404 ft.NotFoundSLO The SLO does not exist, has been deleted, does not belong to the current Workspace, or the metric type configuration is missing an associated collector The specified SLO was not found. Obtain the real UUID from the SLO List in the current Workspace; verify that the monitoring configuration is valid.

Feedback

Is this page helpful?