public class ClientAuthenticationSensorKeyProducer extends java.lang.Object implements SensorKeyProducer
SensorKeyProducer used for client authentication metrics| Constructor and Description |
|---|
ClientAuthenticationSensorKeyProducer(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 client authentication requests |
SensorKey |
successKey()
Generate a
SensorKey for metrics about successful client authentication requests |
public ClientAuthenticationSensorKeyProducer(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 client authentication requestssuccessKey in interface SensorKeyProducerpublic SensorKey errorKey(java.lang.Throwable e)
SensorKey for metrics about failed client authentication requestserrorKey in interface SensorKeyProducere - The Throwable object to go with the failureCopyright © 2024. All rights reserved.