Skip to main content

GmEvent

An audit-log entry recording one function invocation and its outcome.

type GmEvent {
eventId: String!
flowId: String
sessionId: String
functionName: String!
selfContainerId: String
callerUserId: BigInt
callerKind: String!
automationId: String
paramsJson: String!
mutationsAppliedJson: String!
permissionEffectsAppliedJson: String!
returnValueJson: String
success: Boolean!
errorMessage: String
executedAt: DateTime!
}

Fields

GmEvent.eventId ● String! non-null scalar

Unique event id.

GmEvent.flowId ● String scalar

Flow correlation id: shared with automation runs and compute module runs caused by the same entry call (player invoke / automation run / computeInvoke), so cross-engine flows can be stitched together.

GmEvent.sessionId ● String scalar

The session the invocation ran in, if any.

GmEvent.functionName ● String! non-null scalar

The function that was invoked.

GmEvent.selfContainerId ● String scalar

The self container id the function ran against.

GmEvent.callerUserId ● BigInt scalar

The user who invoked the function.

GmEvent.callerKind ● String! non-null scalar

Who invoked: player | automation | system. Distinguishes NPC/autonomous-process actions from player actions.

GmEvent.automationId ● String scalar

The automation (autonomous process) that drove this invocation, if any.

GmEvent.paramsJson ● String! non-null scalar

JSON object of params.

GmEvent.mutationsAppliedJson ● String! non-null scalar

JSON array of applied mutations.

GmEvent.permissionEffectsAppliedJson ● String! non-null scalar

JSON array of grid-permission effects this invocation applied (audit trail for model-driven grants/revokes): [{ action, permission_keys, user_id, grid_id, expires_at }].

GmEvent.returnValueJson ● String scalar

JSON-encoded return value.

GmEvent.success ● Boolean! non-null scalar

True if the invocation succeeded.

GmEvent.errorMessage ● String scalar

Error message when the invocation failed.

GmEvent.executedAt ● DateTime! non-null scalar

When the invocation executed.

Returned By

gameModelEvents query

Member Of

GmEventEdge object ● GmFlowTimeline object