Class AuthenticationMetrics
java.lang.Object
org.apache.pulsar.broker.authentication.metrics.AuthenticationMetrics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidauthenticateFailure(String providerName, String authMethod, Enum<?> errorCode) Log authenticate failure event to the authentication metrics.static voidauthenticateFailure(String providerName, String authMethod, String reason) Deprecated.static voidauthenticateSuccess(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)()}