Class GrouperMcpToolLog

java.lang.Object
edu.internet2.middleware.grouper.mcp.GrouperMcpToolLog
All Implemented Interfaces:
GcSqlAssignPrimaryKey

public class GrouperMcpToolLog extends Object implements GcSqlAssignPrimaryKey
ORM class for the grouper_mcp_tool_log table. Audit log of MCP tool calls including request, response, timing, and error info.
  • Field Details

  • Constructor Details

    • GrouperMcpToolLog

      public GrouperMcpToolLog()
  • Method Details

    • gcSqlAssignNewPrimaryKeyForInsert

      public boolean gcSqlAssignNewPrimaryKeyForInsert()
      Description copied from interface: GcSqlAssignPrimaryKey
      assign a new primary key for insert. return true if assigned (insert) or false if not needed
      Specified by:
      gcSqlAssignNewPrimaryKeyForInsert in interface GcSqlAssignPrimaryKey
    • getToolCategory

      public static String getToolCategory(String toolName)
      return the tool category for the given tool name.
      Parameters:
      toolName - the tool name
      Returns:
      the tool category string
    • getInternalId

      public long getInternalId()
      Returns:
      the internal id (primary key)
    • setInternalId

      public void setInternalId(long internalId1)
      Parameters:
      internalId1 - the internal id
    • getOauthClientInternalId

      public Long getOauthClientInternalId()
      Returns:
      the oauth client internal id (soft link to grouper_oauth_client)
    • setOauthClientInternalId

      public void setOauthClientInternalId(Long oauthClientInternalId1)
      Parameters:
      oauthClientInternalId1 - the oauth client internal id
    • getMemberInternalId

      public Long getMemberInternalId()
      Returns:
      the member internal id
    • setMemberInternalId

      public void setMemberInternalId(Long memberInternalId1)
      Parameters:
      memberInternalId1 - the member internal id
    • getToolName

      public String getToolName()
      Returns:
      the tool name
    • setToolName

      public void setToolName(String toolName1)
      Parameters:
      toolName1 - the tool name
    • getToolCategory

      public String getToolCategory()
      Returns:
      the tool category
    • setToolCategory

      public void setToolCategory(String toolCategory1)
      Parameters:
      toolCategory1 - the tool category
    • getRequest

      public String getRequest()
      Returns:
      the request JSON arguments (truncated to 4000 chars)
    • setRequest

      public void setRequest(String request1)
      Parameters:
      request1 - the request JSON arguments
    • getResponseOrError

      public String getResponseOrError()
      Returns:
      the response text or error message (truncated to 4000 chars)
    • setResponseOrError

      public void setResponseOrError(String responseOrError1)
      Parameters:
      responseOrError1 - the response text or error message
    • getIsError

      public String getIsError()
      Returns:
      "T" if error, "F" otherwise
    • setIsError

      public void setIsError(String isError1)
      Parameters:
      isError1 - "T" or "F"
    • getStartedMicros

      public long getStartedMicros()
      Returns:
      micros since 1970 when the tool call started
    • setStartedMicros

      public void setStartedMicros(long startedMicros1)
      Parameters:
      startedMicros1 - micros since 1970
    • getDurationMicros

      public Long getDurationMicros()
      Returns:
      duration of the tool call in microseconds
    • setDurationMicros

      public void setDurationMicros(Long durationMicros1)
      Parameters:
      durationMicros1 - duration in microseconds