Class InfluxMetricsMiddleware
java.lang.Object
com.networknt.aws.lambda.handler.middleware.metrics.AbstractMetricsMiddleware
com.networknt.aws.lambda.handler.middleware.metrics.InfluxMetricsMiddleware
- All Implemented Interfaces:
LambdaHandler,MiddlewareHandler
-
Field Summary
Fields inherited from class com.networknt.aws.lambda.handler.middleware.metrics.AbstractMetricsMiddleware
commonTags, config, registryFields inherited from interface com.networknt.aws.lambda.handler.LambdaHandler
DISABLED_LAMBDA_HANDLER_RETURN, SUCCESS_LAMBDA_HANDLER_RETURN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.networknt.status.Statusexecute(LightLambdaExchange exchange) voidbooleanIndicate if this middleware handler is asynchronous or not.booleanIndicate if this middleware handler is audited or not.booleanIndicate if this middleware handler will continue on failure or not.voidregister()Register this handler to the handler registration.voidreload()Reload config values in case the config values changed by config server.Methods inherited from class com.networknt.aws.lambda.handler.middleware.metrics.AbstractMetricsMiddleware
createJVMMetricsReporter, incCounterForStatusCode, injectMetrics, isEnabledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.networknt.aws.lambda.handler.LambdaHandler
disabledMiddlewareStatus, isResponseMiddleware, successMiddlewareStatus
-
Constructor Details
-
InfluxMetricsMiddleware
public InfluxMetricsMiddleware()
-
-
Method Details
-
execute
-
register
public void register()Description copied from interface:LambdaHandlerRegister this handler to the handler registration. -
reload
public void reload()Description copied from interface:LambdaHandlerReload config values in case the config values changed by config server. -
isAsynchronous
public boolean isAsynchronous()Description copied from interface:LambdaHandlerIndicate if this middleware handler is asynchronous or not.- Returns:
- boolean true if asynchronous
-
isContinueOnFailure
public boolean isContinueOnFailure()Description copied from interface:MiddlewareHandlerIndicate if this middleware handler will continue on failure or not.- Returns:
- boolean true if continue on failure
-
isAudited
public boolean isAudited()Description copied from interface:MiddlewareHandlerIndicate if this middleware handler is audited or not.- Returns:
- boolean true if audited
-
getCachedConfigurations
public void getCachedConfigurations()
-