Class McpMetricsSnapshot.RequestOutcomeKey
java.lang.Object
com.soklet.McpMetricsSnapshot.RequestOutcomeKey
- Enclosing class:
McpMetricsSnapshot
Key for completed-request and request-duration aggregates.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionbooleanfromDimensions(@NonNull String endpointPath, @NonNull String jsonRpcMethod, @NonNull McpRequestOutcome requestOutcome) Creates a request-outcome aggregate key.inthashCode()toString()
-
Method Details
-
fromDimensions
public static @NonNull McpMetricsSnapshot.RequestOutcomeKey fromDimensions(@NonNull String endpointPath, @NonNull String jsonRpcMethod, @NonNull McpRequestOutcome requestOutcome) Creates a request-outcome aggregate key.- Parameters:
endpointPath- registered endpoint-path declarationjsonRpcMethod- bounded JSON-RPC method dimensionrequestOutcome- fixed terminal request outcome- Returns:
- request-outcome aggregate key
-
getEndpointPath
- Returns:
- registered endpoint-path declaration
-
getJsonRpcMethod
- Returns:
- bounded JSON-RPC method dimension
-
getOutcome
- Returns:
- fixed terminal request outcome
-
equals
-
hashCode
-
toString
-