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

Cortex endpoint inventory.

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

Arguments to list. 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 — equivalent to listing every endpoint on the tenant.

type alias Endpoint =
{ agentId : String
, agentStatus : Maybe String
, operationalStatus : Maybe String
, hostName : Maybe String
, agentType : Maybe String
, ip : List String
, lastSeen : Maybe Int
, tags : Value
, users : List String
}

A single Cortex endpoint (managed host running an agent).

type alias ListResponse =
{ endpoints : List Endpoint }

Envelope wrapping the endpoint list returned by list.

list : SearchArgs -> Request ListResponse

POST /public_api/v1/endpoints/get_endpoints

Retrieve a filtered list of endpoints (agents) on the tenant. Response uses the reply envelope containing a flat array.