Record Class MetricsCollector.McpEndpointRequestOutcomeKey
java.lang.Object
java.lang.Record
com.soklet.MetricsCollector.McpEndpointRequestOutcomeKey
- Enclosing interface:
MetricsCollector
public static record MetricsCollector.McpEndpointRequestOutcomeKey(@NonNull Class<? extends McpEndpoint> endpointClass, @NonNull String jsonRpcMethod, @NonNull McpRequestOutcome requestOutcome)
extends Record
Key for metrics grouped by MCP endpoint class, JSON-RPC method, and request outcome.
- Author:
- Mark Allen
-
Constructor Summary
ConstructorsConstructorDescriptionMcpEndpointRequestOutcomeKey(@NonNull Class<? extends McpEndpoint> endpointClass, @NonNull String jsonRpcMethod, @NonNull McpRequestOutcome requestOutcome) Creates an instance of aMcpEndpointRequestOutcomeKeyrecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull Class<? extends McpEndpoint> Returns the value of theendpointClassrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thejsonRpcMethodrecord component.Returns the value of therequestOutcomerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpEndpointRequestOutcomeKey
public McpEndpointRequestOutcomeKey(@NonNull Class<? extends McpEndpoint> endpointClass, @NonNull String jsonRpcMethod, @NonNull McpRequestOutcome requestOutcome) Creates an instance of aMcpEndpointRequestOutcomeKeyrecord class.- Parameters:
endpointClass- the value for theendpointClassrecord componentjsonRpcMethod- the value for thejsonRpcMethodrecord componentrequestOutcome- the value for therequestOutcomerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
endpointClass
Returns the value of theendpointClassrecord component.- Returns:
- the value of the
endpointClassrecord component
-
jsonRpcMethod
Returns the value of thejsonRpcMethodrecord component.- Returns:
- the value of the
jsonRpcMethodrecord component
-
requestOutcome
Returns the value of therequestOutcomerecord component.- Returns:
- the value of the
requestOutcomerecord component
-