Class GrouperMcpToolLog
java.lang.Object
edu.internet2.middleware.grouper.mcp.GrouperMcpToolLog
- All Implemented Interfaces:
GcSqlAssignPrimaryKey
ORM class for the grouper_mcp_tool_log table.
Audit log of MCP tool calls including request, response, timing, and error info.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanassign a new primary key for insert.longlongstatic StringgetToolCategory(String toolName) return the tool category for the given tool name.voidsetDurationMicros(Long durationMicros1) voidsetInternalId(long internalId1) voidsetIsError(String isError1) voidsetMemberInternalId(Long memberInternalId1) voidsetOauthClientInternalId(Long oauthClientInternalId1) voidsetRequest(String request1) voidsetResponseOrError(String responseOrError1) voidsetStartedMicros(long startedMicros1) voidsetToolCategory(String toolCategory1) voidsetToolName(String toolName1)
-
Field Details
-
TABLE_GROUPER_MCP_TOOL_LOG
- See Also:
-
COLUMN_INTERNAL_ID
- See Also:
-
COLUMN_OAUTH_CLIENT_INTERNAL_ID
- See Also:
-
COLUMN_MEMBER_INTERNAL_ID
- See Also:
-
COLUMN_TOOL_NAME
- See Also:
-
COLUMN_TOOL_CATEGORY
- See Also:
-
COLUMN_REQUEST
- See Also:
-
COLUMN_RESPONSE_OR_ERROR
- See Also:
-
COLUMN_IS_ERROR
- See Also:
-
COLUMN_STARTED_MICROS
- See Also:
-
COLUMN_DURATION_MICROS
- See Also:
-
CATEGORY_READONLY
- See Also:
-
CATEGORY_READWRITE
- See Also:
-
CATEGORY_SQL
- See Also:
-
CATEGORY_ADMIN_READONLY
- See Also:
-
CATEGORY_ADMIN_READWRITE
- See Also:
-
-
Constructor Details
-
GrouperMcpToolLog
public GrouperMcpToolLog()
-
-
Method Details
-
gcSqlAssignNewPrimaryKeyForInsert
public boolean gcSqlAssignNewPrimaryKeyForInsert()Description copied from interface:GcSqlAssignPrimaryKeyassign a new primary key for insert. return true if assigned (insert) or false if not needed- Specified by:
gcSqlAssignNewPrimaryKeyForInsertin interfaceGcSqlAssignPrimaryKey
-
getToolCategory
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
- Returns:
- the oauth client internal id (soft link to grouper_oauth_client)
-
setOauthClientInternalId
- Parameters:
oauthClientInternalId1- the oauth client internal id
-
getMemberInternalId
- Returns:
- the member internal id
-
setMemberInternalId
- Parameters:
memberInternalId1- the member internal id
-
getToolName
- Returns:
- the tool name
-
setToolName
- Parameters:
toolName1- the tool name
-
getToolCategory
- Returns:
- the tool category
-
setToolCategory
- Parameters:
toolCategory1- the tool category
-
getRequest
- Returns:
- the request JSON arguments (truncated to 4000 chars)
-
setRequest
- Parameters:
request1- the request JSON arguments
-
getResponseOrError
- Returns:
- the response text or error message (truncated to 4000 chars)
-
setResponseOrError
- Parameters:
responseOrError1- the response text or error message
-
getIsError
- Returns:
- "T" if error, "F" otherwise
-
setIsError
- 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
- Returns:
- duration of the tool call in microseconds
-
setDurationMicros
- Parameters:
durationMicros1- duration in microseconds
-