Class AuditEvent

java.lang.Object
org.gridgain.internal.mcp.audit.AuditEvent

public class AuditEvent extends Object
Audit event record capturing MCP tool invocation details.

Contains all required fields for audit trail compliance:

  • ggUserID - GridGain authenticated user identity
  • timestamp - Event occurrence time (ISO-8601)
  • sourceIP - Client IP address (localhost for STDIO)
  • toolCalled - MCP tool name invoked
  • query - SQL query executed (null for non-query tools)
  • rowCount - Number of rows returned (0 for non-query tools)
  • timeTaken - Execution duration in milliseconds
  • Constructor Details

    • AuditEvent

      public AuditEvent(String ggUserId, Instant timestamp, String sourceIp, String toolCalled, @Nullable @Nullable String query, int rowCount, long timeTaken)
      Constructs a new audit event.
      Parameters:
      ggUserId - GridGain user identity
      timestamp - event timestamp
      sourceIp - source IP address
      toolCalled - MCP tool name
      query - SQL query (null if not applicable)
      rowCount - number of rows returned
      timeTaken - execution time in milliseconds
  • Method Details

    • getGgUserId

      public String getGgUserId()
    • getTimestamp

      public Instant getTimestamp()
    • getSourceIp

      public String getSourceIp()
    • getToolCalled

      public String getToolCalled()
    • getQuery

      public String getQuery()
    • getRowCount

      public int getRowCount()
    • getTimeTaken

      public long getTimeTaken()
    • toString

      public String toString()
      Overrides:
      toString in class Object