Class McpMetricsSnapshot.SubscriptionMaintenanceKey
java.lang.Object
com.soklet.McpMetricsSnapshot.SubscriptionMaintenanceKey
- Enclosing class:
McpMetricsSnapshot
Immutable subscription-maintenance aggregate dimensions, shared across
supported MCP revisions. The endpoint is an application-configured path
declaration, never a subscription ID or arbitrary request target.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionbooleanfromDimensions(@NonNull String endpointPath, @NonNull McpMetricsEvent.SubscriptionMaintenance.Work maintenanceWork, @NonNull McpMetricsEvent.SubscriptionMaintenance.Outcome maintenanceOutcome) Creates a subscription-maintenance aggregate key.getWork()inthashCode()toString()
-
Method Details
-
fromDimensions
public static @NonNull McpMetricsSnapshot.SubscriptionMaintenanceKey fromDimensions(@NonNull String endpointPath, @NonNull McpMetricsEvent.SubscriptionMaintenance.Work maintenanceWork, @NonNull McpMetricsEvent.SubscriptionMaintenance.Outcome maintenanceOutcome) Creates a subscription-maintenance aggregate key.- Parameters:
endpointPath- registered endpoint-path declarationmaintenanceWork- fixed maintenance work classificationmaintenanceOutcome- fixed observed maintenance outcome- Returns:
- subscription-maintenance aggregate key
- Throws:
IllegalArgumentException- if the endpoint path is empty
-
getEndpointPath
- Returns:
- registered endpoint-path declaration
-
getWork
- Returns:
- fixed maintenance work classification
-
getOutcome
- Returns:
- fixed observed maintenance outcome
-
equals
-
hashCode
-
toString
-