Class ClientAuthenticationSensorKeyProducer
java.lang.Object
io.strimzi.kafka.oauth.client.metrics.ClientAuthenticationSensorKeyProducer
- All Implemented Interfaces:
SensorKeyProducer
A
SensorKeyProducer used for client authentication metrics-
Constructor Summary
ConstructorsConstructorDescriptionClientAuthenticationSensorKeyProducer(String contextId, URI uri) Create a new instance -
Method Summary
Modifier and TypeMethodDescriptionGenerate aSensorKeyfor metrics about failed client authentication requestsGenerate aSensorKeyfor metrics about successful client authentication requests
-
Constructor Details
-
ClientAuthenticationSensorKeyProducer
Create a new instance- Parameters:
contextId- Context id (e.g. a config id or a label)uri- A token endpoint url
-
-
Method Details
-
successKey
Generate aSensorKeyfor metrics about successful client authentication requests- Specified by:
successKeyin interfaceSensorKeyProducer- Returns:
- A sensor key
-
errorKey
Generate aSensorKeyfor metrics about failed client authentication requests- Specified by:
errorKeyin interfaceSensorKeyProducer- Parameters:
e- The Throwable object to go with the failure- Returns:
- A sensor key
-