GET
/
v1
/
service_slos
/
{id}
const fetch = require('node-fetch');

let url = 'https://api.coralogix.com/mgmt/openapi/v1/service_slos/%7Bid%7D';

let options = {method: 'GET', headers: {Authorization: 'Bearer <API_KEY>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
{
  "slo": {
    "id": "slo_id",
    "name": "slo_name",
    "serviceName": "service_name",
    "status": "SLO_STATUS_UNSPECIFIED",
    "description": "slo_description",
    "targetPercentage": 99,
    "createdAt": "2021-01-01T00:00:00.000Z",
    "remainingErrorBudgetPercentage": 1,
    "latencySli": {
      "thresholdMicroseconds": "1000000",
      "thresholdSymbol": "THRESHOLD_SYMBOL_UNSPECIFIED"
    },
    "errorSli": {},
    "filters": [
      {
        "field": "field_name",
        "compareType": "COMPARE_TYPE_UNSPECIFIED",
        "fieldValues": [
          "value1",
          "value2"
        ]
      }
    ],
    "period": "SLO_PERIOD_UNSPECIFIED"
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

id
string
required

Response

200
application/json

A successful response.

This data structure represents a response to get a Service SLO.