Skip to main content

Get Slo

GEThttps://api.eu1.coralogix.com/mgmt/openapi/5/slo/slos/v1/{id}

Returns the details of the specified SLO.

Authorizations

Authorizationstringheaderrequired
API key authentication

Request​

Path Parameters

    id# stringrequired

    Unique identifier.

Response

application/json

Response containing the details of a specific SLO.

    slo#objectrequired

    Definition of an SLO

    oneOf
    object

    Deprecated: use sliDefinition with an apm source instead. services, filters and groupingKeys move to the source's selector. errorConfig maps to sliDefinition.requestBased.apm.availability. latencyConfig maps to sliDefinition.windowBased.apm.latency: latencyConfig.timeWindow moves to sliDefinition.windowBased.window, latencyConfig.threshold becomes thresholdMs, and quantile and average keep their names.

    Deprecated: use sliDefinition instead. Read-only copy of apmSli, returned whenever apmSli is. Set by the server; sending it instead of apmSli is rejected.

    slo.createTime#date-time

    RFC3339 timestamp of when the SLO was created. Set by the server; a value sent by the client is ignored.

    slo.creator#string

    Email or identifier of the user who created the SLO. Set by the server; a value sent by the client is ignored.

    Example: test@domain.com
    slo.description#string

    Human-readable description of the SLO.

    Example: A brief description of my SLO

    Grouping labels derived by the server from the SLI. A value sent by the client is rejected.

    slo.id#string

    Unique identifier of the SLO.

    Example: b11919d5-ef85-4bb1-8655-02640dbe94d9

    List of labels.

    slo.name#stringrequired

    Human-readable display name for the SLO. Required. A missing or empty name is rejected.

    Possible values: non-empty

    Example: Example Slo Name

    Service, environment, and team ownership configuration for the SLO group and its permutations.

    slo.productType#SloProductType

    Product type: APM for application performance monitoring SLOs, UNSPECIFIED for manual/custom SLOs

    Possible values: [SLO_PRODUCT_TYPE_UNSPECIFIED, SLO_PRODUCT_TYPE_APM]

    Example: SLO_PRODUCT_TYPE_APM

    Deprecated: use sliDefinition.requestBased.custom instead, which takes the same goodEvents and totalEvents queries.

    Revision of the SLO. Set by the server; a value sent by the client is ignored.

    Definition of the SLI: how it counts (request-based or window-based) and where its values come from (custom metric queries or APM). Replaces the deprecated requestBasedMetricSli, windowBasedMetricSli and apmSli. A request must set either sliDefinition or one of the deprecated fields. When sliDefinition is set, it takes precedence and the deprecated fields are ignored. Responses always include sliDefinition, and also include the matching deprecated field when the SLI can be expressed with it.

    slo.sloTimeFrame#SloTimeFramerequired

    Time frame the SLO is evaluated over. The day-based values, SLO_TIME_FRAME_1_DAY through SLO_TIME_FRAME_30_DAYS, are rolling windows that cover that many days up to the time of evaluation. SLO_TIME_FRAME_CALENDAR_MONTH covers the current calendar month in UTC, from the start of the month up to the time of evaluation, and starts over at the beginning of each month. SLO results are calculated per whole minute in UTC, so the window used may differ from these bounds by up to one minute.

    Possible values: [SLO_TIME_FRAME_UNSPECIFIED, SLO_TIME_FRAME_1_DAY, SLO_TIME_FRAME_7_DAYS, SLO_TIME_FRAME_14_DAYS, SLO_TIME_FRAME_21_DAYS, SLO_TIME_FRAME_28_DAYS, SLO_TIME_FRAME_30_DAYS, SLO_TIME_FRAME_CALENDAR_MONTH]

    slo.sloType#SloType

    SLO type derived by the server from the SLI. A window-based metric SLI still reads SLO_TYPE_REQUEST. A value sent by the client must match the SLI type; a different value is rejected.

    Possible values: [SLO_TYPE_REQUEST, SLO_TYPE_WINDOW]

    Example: SLO_TYPE_REQUEST
    slo.targetThresholdPercentage#float

    Target compliance percentage threshold for the SLO (e.g., 99.9 for three nines).

    Example: 99.999
    slo.type#stringdeprecated

    Deprecated: SLO type string. Set by the server from the SLI; a value sent by the client is ignored.

    Example: request
    slo.updateTime#date-time

    Timestamp of the last update. Set by the server; a value sent by the client is ignored.

    Deprecated: use sliDefinition.windowBased instead. Set window and missingDataStrategy there, and query, comparisonOperator and threshold in its custom source.