vanhecke/celmex/2.0.0

NOTE: the latest version is 3.0.0

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/vanhecke/celmex is gone (deleted or private); Software Heritage not asked yet (this run's --swh-calls were used up); no fork with the same repo name found; no cached copy. Use another version.

Details

Cortex.Api.Correlations

Cortex correlation rules.

type alias SearchArgs =
{ filters : List Filter
, sort : Maybe Sort
, range : Maybe Range
, timeframe : Maybe Timeframe
, extra : List ( String, Value )
}

Arguments to get. All fields are optional; pass defaultSearchArgs for an unfiltered request. extra is merged last into request_data and overrides any SDK-generated key on collision.

defaultSearchArgs : SearchArgs

A SearchArgs with no filters, sort, pagination, or timeframe.

{ objectsCount : Maybe Int
, objects : List Value
, objectsType : Maybe String
}

Correlation rule objects contain ~20 variable fields including query text and complex nested configuration. We decode them as raw JSON to preserve every field without mirroring the whole Cortex correlation-rules schema.

get : SearchArgs -> Request CorrelationsResponse

POST /public_api/v1/correlations/get

Response is top-level {objects_count, objects, objects_type} — NOT wrapped in the usual reply envelope.