vanhecke/celmex/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.AuditLogs

Cortex tenant audit-log queries — both human-driven management events and agent-emitted reports.

Two endpoints, two record shapes:

  • search — management actions (an admin changed a setting, an API key was created, etc.). Records have UPPERCASE-prefixed AUDIT_* fields.

  • agentsReports — agent-side events (policy updates, scan completions, errors). Records have UPPERCASE field names with floating-point millisecond timestamps.

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.

defaultSearchArgs : SearchArgs

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

type alias AuditLog =
{ auditId : Int
, ownerName : Maybe String
, ownerEmail : Maybe String
, entity : Maybe String
, entitySubtype : Maybe String
, severity : Maybe String
, result : Maybe String
, reason : Maybe String
, description : Maybe String
, insertTime : Maybe Int
, hostname : Maybe String
, assetNames : Maybe String
, assetJson : Maybe Value
, sessionId : Maybe String
, caseId : Maybe Int
, link : Maybe String
, sourceIp : Maybe String
, userAgent : Maybe String
, userRoles : List String
, objectId : Maybe String
}

A single audit-management event (a user/system action against the tenant). Field names mirror the wire format's AUDIT_* UPPERCASE shape.

type alias SearchResponse =
{ totalCount : Int
, resultCount : Int
, data : List AuditLog
}

Paginated envelope returned by search.

type alias AgentReport =
{ timestamp : Maybe Float
, receivedTime : Maybe Float
, endpointId : Maybe String
, endpointName : Maybe String
, domain : Maybe String
, category : Maybe String
, type_ : Maybe String
, subType : Maybe String
, severity : Maybe String
, result : Maybe String
, reason : Maybe String
, description : Maybe String
, xdrVersion : Maybe String
}

A single agent report (an event emitted by an installed XDR agent). Field names mirror the wire format's UPPERCASE shape. Timestamps are emitted as floating-point milliseconds (not integers).

{ totalCount : Maybe Int
, resultCount : Maybe Int
, data : List AgentReport
}

Paginated envelope returned by agentsReports.

agentsReports : Request AgentsReportsResponse

POST /public_api/v1/audits/agents_reports

Retrieve agent-emitted reports — policy updates, scan completions, error notifications, etc. Each row carries timestamps as floating-point milliseconds.