public class KeycloakAuthorizationSensorKeyProducer extends AbstractSensorKeyProducer
SensorKeyProducer used for authorization metrics| Constructor and Description |
|---|
KeycloakAuthorizationSensorKeyProducer(java.lang.String contextId,
java.net.URI uri)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
SensorKey |
errorKey(java.lang.Throwable e)
Generate a
SensorKey for metrics about failed authorizations |
SensorKey |
successKey()
Generate a
SensorKey for metrics about successful authorizations |
public KeycloakAuthorizationSensorKeyProducer(java.lang.String contextId,
java.net.URI uri)
contextId - Context id (e.g. a config id or a label)uri - A token endpoint urlpublic SensorKey successKey()
SensorKey for metrics about successful authorizationspublic SensorKey errorKey(java.lang.Throwable e)
SensorKey for metrics about failed authorizationse - The Throwable object to go with the failureCopyright © 2023. All rights reserved.