Class AuthenticationMetrics
java.lang.Object
org.apache.pulsar.broker.authentication.metrics.AuthenticationMetrics
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
authenticateFailure
(String providerName, String authMethod, Enum<?> errorCode) Log authenticate failure event to the authentication metrics.static void
authenticateFailure
(String providerName, String authMethod, String reason) Deprecated.static void
authenticateSuccess
(String providerName, String authMethod) Log authenticate success event to the authentication metrics.
-
Constructor Details
-
AuthenticationMetrics
public AuthenticationMetrics()
-
-
Method Details
-
authenticateSuccess
Log authenticate success event to the authentication metrics.- Parameters:
providerName
- The short class name of the providerauthMethod
- Authentication method name
-
authenticateFailure
@Deprecated public static void authenticateFailure(String providerName, String authMethod, String reason) Deprecated.Log authenticate failure event to the authentication metrics. This method is deprecated due to the label "reason" is a potential infinite value.- Parameters:
providerName
- The short class name of the providerauthMethod
- Authentication method name.reason
- Failure reason.
-
authenticateFailure
Log authenticate failure event to the authentication metrics.- Parameters:
providerName
- The short class name of the providerauthMethod
- Authentication method name.errorCode
- Error code.
-
authenticateFailure(String, String, Enum)
()}