Package io.smallrye.graphql.cdi.metrics
Class MPMetricsService
- java.lang.Object
-
- io.smallrye.graphql.cdi.metrics.MPMetricsService
-
- All Implemented Interfaces:
EventingService
public class MPMetricsService extends Object implements EventingService
Listening for event and create metrics from it. Uses MP Metrics 3.x API.- Author:
- Jan Martiska ([email protected]), Phillip Kruger ([email protected])
-
-
Constructor Summary
Constructors Constructor Description MPMetricsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterDataFetch(io.smallrye.graphql.api.Context context)
void
beforeDataFetch(io.smallrye.graphql.api.Context context)
io.smallrye.graphql.schema.model.Operation
createOperation(io.smallrye.graphql.schema.model.Operation operation)
String
getConfigKey()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.smallrye.graphql.spi.EventingService
afterExecute, beforeExecute, beforeGraphQLBuild, beforeInvoke, beforeSchemaBuild, errorDataFetch, errorDataFetch, errorExecute, errorExecute, overrideJsonbConfig
-
-
-
-
Method Detail
-
createOperation
public io.smallrye.graphql.schema.model.Operation createOperation(io.smallrye.graphql.schema.model.Operation operation)
- Specified by:
createOperation
in interfaceEventingService
-
beforeDataFetch
public void beforeDataFetch(io.smallrye.graphql.api.Context context)
- Specified by:
beforeDataFetch
in interfaceEventingService
-
afterDataFetch
public void afterDataFetch(io.smallrye.graphql.api.Context context)
- Specified by:
afterDataFetch
in interfaceEventingService
-
getConfigKey
public String getConfigKey()
- Specified by:
getConfigKey
in interfaceEventingService
-
-