Docs

Docs

x-cpod-domain: telemetry

Telemetry

Audit events, app events, and traces from the platform.

AuditEvent

A security/audit log line.

REST path/api/v1/audit-events
Operations
listgetlog
SDK
// list — returns only your records; add filters/search:
await client.telemetry.auditEvents.list()
FieldTypeDescription
id*uuidServer-assigned ULID with type prefix (e.g. per_…).
tenant_id*stringTenant scope — auto-stamped from the caller's JWT.
app_idstringApp scope. Stamped ONLY when the caller's JWT was minted for a specific Application (integration API keys). Absent for human-user sessions. Filters reads when present.
created_at*date-timeServer stamp.
updated_at*date-timeServer stamp; updated on every patch.
created_byuuidPerson id from the caller's JWT (sub).
updated_byuuidPerson id from the last writer's JWT (sub).
sourcestringProvenance tag — defaults to 'edm'.
source_typeenumWhere the write originated. Defaults to 'api'.frontendbackendserversystemapi
is_deletedbooleanSoft-delete flag. Excluded from default list queries.
deleted_atdate-timeStamped when soft-deleted; null otherwise.
deleted_byuuidPerson id who soft-deleted; null otherwise.
schema_versionnumberDocument schema version. Bumped on incompatible writes.
sequence_idnumberMonotonic per-tenant sequence number. Used to detect gaps in the chain.
actor_typestringClassification of the actor that performed the action.
actor_idstringIdentifier of the actor — a userId or service account ID.
impersonated_user_idstringSet when an admin or impersonator acts on behalf of another user.
actionstringDot-separated action name describing the operation performed (e.g. 'accounts.create', 'policy.activate', 'evidence.export').
resource_typestringEDM entity type of the affected resource (e.g. 'Person', 'SoftwareLicense').
resource_idstringIdentifier of the affected resource.
outcomestringResult of the action.
reasonstringReason for a denial or error outcome.
beforejsonSnapshot of the resource state before the mutation. Automatically populated for EDM operations.
afterjsonSnapshot of the resource state after the mutation. Automatically populated for EDM operations.
changesjsonComputed diff of changed fields between before and after snapshots.
ipstringSource IP address of the originating request.
user_agentstringUser-Agent string of the originating HTTP client.
request_idstringCorrelation ID for distributed tracing across services.
policy_decision_idsjsonIdentifiers of Rego policy decisions that gated this action.
previous_hashstringSHA-256 hash of the previous AuditEvent in the tenant chain. Read-only; populated by the platform.
record_hashstringHMAC-SHA-256 of this record using the CORESDK_AUDIT_HMAC_KEY. Read-only; populated by the platform.
worm_refstringMinIO Object Lock URL once this event has been flushed to the WORM archive. Read-only; null until archived.
tsdate-timeISO 8601 UTC timestamp of when the event occurred.

AppEvent

A telemetry event emitted by an Application.

REST path/api/v1/telemetry/app-events
Operations
listgetemit
SDK
// list — returns only your records; add filters/search:
await client.telemetry.appEvents.list()
FieldTypeDescription
id*uuidServer-assigned ULID with type prefix (e.g. per_…).
tenant_id*stringTenant scope — auto-stamped from the caller's JWT.
app_idstringApp scope. Stamped ONLY when the caller's JWT was minted for a specific Application (integration API keys). Absent for human-user sessions. Filters reads when present.
created_at*date-timeServer stamp.
updated_at*date-timeServer stamp; updated on every patch.
created_byuuidPerson id from the caller's JWT (sub).
updated_byuuidPerson id from the last writer's JWT (sub).
sourcestringProvenance tag — defaults to 'edm'.
source_typeenumWhere the write originated. Defaults to 'api'.frontendbackendserversystemapi
is_deletedbooleanSoft-delete flag. Excluded from default list queries.
deleted_atdate-timeStamped when soft-deleted; null otherwise.
deleted_byuuidPerson id who soft-deleted; null otherwise.
schema_versionnumberDocument schema version. Bumped on incompatible writes.
user_idstringIdentifier of the user who triggered the event. Null for anonymous events.
session_idstringBrowser or client session identifier.
event_typestringName of the event (e.g. 'page_view', 'record_create', 'search_query', 'rfp_response_approved').
event_categorystringBroad category grouping for the event.
entity_typestringEDM entity type of the target entity, if this event targets a specific resource.
entity_idstringIdentifier of the target entity, if applicable.
propertiesjsonFree-form event-specific properties (key-value pairs). Structure is determined by the emitting app.
page_urlstringFull URL of the page where the event occurred.
referrer_urlstringReferrer URL if the user navigated from another page.
user_agentstringUser-Agent string of the originating HTTP client.
ipstringIP address of the originating client, truncated or anonymised per tenant policy.
geojsonGeo-location derived from the source IP. Populated by the pipeline.
devicejsonDevice information parsed from the User-Agent string.
tsdate-timeISO 8601 UTC timestamp of when the event occurred.

Trace

A trace/span record.

REST path/api/v1/telemetry/traces
Operations
listget
SDK
// list — returns only your records; add filters/search:
await client.telemetry.traces.list()
FieldTypeDescription
id*uuidServer-assigned ULID with type prefix (e.g. per_…).
tenant_id*stringTenant scope — auto-stamped from the caller's JWT.
app_idstringApp scope. Stamped ONLY when the caller's JWT was minted for a specific Application (integration API keys). Absent for human-user sessions. Filters reads when present.
created_at*date-timeServer stamp.
updated_at*date-timeServer stamp; updated on every patch.
created_byuuidPerson id from the caller's JWT (sub).
updated_byuuidPerson id from the last writer's JWT (sub).
sourcestringProvenance tag — defaults to 'edm'.
source_typeenumWhere the write originated. Defaults to 'api'.frontendbackendserversystemapi
is_deletedbooleanSoft-delete flag. Excluded from default list queries.
deleted_atdate-timeStamped when soft-deleted; null otherwise.
deleted_byuuidPerson id who soft-deleted; null otherwise.
schema_versionnumberDocument schema version. Bumped on incompatible writes.
parent_span_idstringDistributed-tracing parent span ID, if this trace is a child span.
agent_run_idstringIdentifier of the agent run this trace belongs to, if part of a multi-step agent workflow.
user_idstringIdentifier of the user who initiated the LLM call. Null for system-initiated calls.
api_key_idstringIdentifier of the virtual API key used for this call.
modelstringModel identifier in 'provider/model-name' format.
providerstringLLM provider name.
span_kindstringKind of LLM operation represented by this trace.
input_tokensnumberNumber of prompt/input tokens consumed.
output_tokensnumberNumber of completion/output tokens generated.
cache_read_tokensnumberNumber of tokens served from the prompt cache.
cache_write_tokensnumberNumber of tokens written into the prompt cache.
latency_msnumberEnd-to-end latency of the LLM call in milliseconds.
cache_hitbooleanWhether this response was served (fully or partially) from the prompt cache.
cost_usdnumberEstimated cost of this LLM call in USD.
finish_reasonstringReason the model stopped generating. One of 'stop', 'length', 'tool_calls', or 'error'.
routing_rulestringIdentifier of the routing rule that selected the provider for this call.
policy_decisionsjsonPolicy decisions evaluated for this call by the coreiq policy engine.
security_violationsjsonPII or DLP violations detected by the policy engine for this call.
request_hashstringSHA-256 hash of the canonicalized request payload, used as the cache key.
episode_idstringLinked evolution episode identifier, if this trace is part of a tracked episode.
tsdate-timeISO 8601 UTC timestamp of when the LLM call occurred.