GET
/
v1
/
service_slos
/
all
const fetch = require('node-fetch');

let url = 'https://api.coralogix.com/mgmt/openapi/v1/service_slos/all?orderBy.fieldName=SOME_STRING_VALUE&orderBy.direction=SOME_STRING_VALUE&serviceNames=SOME_ARRAY_VALUE';

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));
{
  "slos": [
    {
      "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

Query Parameters

orderBy.fieldName
string
required
orderBy.direction
enum<string>
default:ORDER_BY_DIRECTION_UNSPECIFIED
required
Available options:
ORDER_BY_DIRECTION_UNSPECIFIED,
ORDER_BY_DIRECTION_ASC,
ORDER_BY_DIRECTION_DESC
serviceNames
string[]
required

Response

200
application/json

A successful response.

This data structure represents a response to list Service SLOs.