Skip to main content

Replace Slo Pre-Validate Alerts

PUThttps://api.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
    apmSli#object

    Definition of an APM-based SLI with automatic query generation

    oneOf
    object
    apmSli.errorConfig#object

    Configuration for error-based APM SLI

    Additional label-based filters to apply to the metrics

    apmSli.groupingKeys#string[]

    Labels to group SLO results by

    Example: ["environment","region"]
    apmSli.latencyConfig#object

    Configuration for latency-based APM SLI

    oneOf
    object
    apmSli.latencyConfig.average#object

    Average/mean-based latency measurement

    Quantile/percentile-based latency measurement

    apmSli.latencyConfig.threshold#float

    Threshold in milliseconds. Good when latency <= threshold, bad when latency > threshold.

    Example: 500
    apmSli.latencyConfig.timeWindow#WindowSloWindow

    Window slo window.

    Possible values: [WINDOW_SLO_WINDOW_UNSPECIFIED, WINDOW_SLO_WINDOW_1_MINUTE, WINDOW_SLO_WINDOW_5_MINUTES]

    apmSli.services#string[]

    List of service names to monitor

    Example: ["my-service","payment-service"]
    apmSliMetadata#object

    Definition of an APM-based SLI with automatic query generation

    oneOf
    object
    apmSliMetadata.errorConfig#object

    Configuration for error-based APM SLI

    Additional label-based filters to apply to the metrics

    apmSliMetadata.groupingKeys#string[]

    Labels to group SLO results by

    Example: ["environment","region"]
    apmSliMetadata.latencyConfig#object

    Configuration for latency-based APM SLI

    oneOf
    object
    apmSliMetadata.latencyConfig.average#object

    Average/mean-based latency measurement

    Quantile/percentile-based latency measurement

    apmSliMetadata.latencyConfig.threshold#float

    Threshold in milliseconds. Good when latency <= threshold, bad when latency > threshold.

    Example: 500
    apmSliMetadata.latencyConfig.timeWindow#WindowSloWindow

    Window slo window.

    Possible values: [WINDOW_SLO_WINDOW_UNSPECIFIED, WINDOW_SLO_WINDOW_1_MINUTE, WINDOW_SLO_WINDOW_5_MINUTES]

    apmSliMetadata.services#string[]

    List of service names to monitor

    Example: ["my-service","payment-service"]
    createTime#date-time

    RFC3339 timestamp of when the SLO was created.

    creator#string

    Email or identifier of the user who created the SLO.

    description#string

    Human-readable description of the SLO.

    Example: A brief description of my SLO

    Definition of the SLO grouping fields

    id#string

    Unique identifier of the SLO.

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

    List of labels.

    name#string

    Human-readable display name for the SLO.

    Example: Example Slo Name

    Service, environment, and team ownership for the SLO group. At most one SloOwnershipTag per dimension; omit a dimension when unset.

    productType#SloProductType

    Slo product type.

    Possible values: [SLO_PRODUCT_TYPE_UNSPECIFIED, SLO_PRODUCT_TYPE_APM]

    Definition of a request-based SLI based on metrics

    The revision of the slo, used to differentiate between different versions of the same SLO

    sloTimeFrame#SloTimeFrame

    Slo time frame.

    Possible values: [SLO_TIME_FRAME_UNSPECIFIED, SLO_TIME_FRAME_7_DAYS, SLO_TIME_FRAME_14_DAYS, SLO_TIME_FRAME_21_DAYS, SLO_TIME_FRAME_28_DAYS]

    sloType#SloType

    Slo type.

    Possible values: [SLO_TYPE_REQUEST, SLO_TYPE_WINDOW]

    targetThresholdPercentage#float

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

    Example: 99.999
    type#stringdeprecated

    Deprecated: SLO type string. Use slo_type instead.

    Example: request
    updateTime#date-time

    Timestamp of the last update.

    Definition of a window-based SLI based on metrics

Response

application/json

Response with validated alerts before replacing an existing SLO.

    The alerts validation result.