Skip to main content

Replace Slo Pre-Validate Alerts

PUThttps://api.eu1.coralogix.com/mgmt/openapi/5/slo/validated/v1

Validates and updates an SLO.

Authorizations

Authorizationstringheaderrequired
API key authentication

Request​

Body

application/json

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.

    description#string

    Human-readable description of the SLO.

    Example: A brief description of my SLO
    id#string

    Unique identifier of the SLO.

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

    List of labels.

    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.

    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.

    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.

    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]

    targetThresholdPercentage#float

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

    Example: 99.999

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

Response

application/json

Response with validated alerts before replacing an existing SLO.

    The alerts validation result.