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.Issues

Cortex issue records (alerts/incidents) and their tenant-defined schema.

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

Arguments to search. 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 — use it for fields the SDK has not modeled yet.

defaultSearchArgs : SearchArgs

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

type alias SearchResponse =
{ data : List Value
, filterCount : Maybe Int
, totalCount : Maybe Int
}

Issue records have ~50 normalized fields plus tenant-specific custom fields, so we preserve them as raw JSON and only type the paginated envelope counters.

schema : Request Value

POST /public_api/v1/issue/schema

Returns the issue field schema (field names, types, allowed operators). The schema is a large variable-shape object; surfaced as raw JSON so callers can drill in to whichever parts they need.