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
public class InfluxMetricsMiddleware extends AbstractMetricsMiddleware
-
-
Field Summary
-
Fields inherited from class com.networknt.aws.lambda.handler.middleware.metrics.AbstractMetricsMiddleware
commonTags, config, registry
-
Fields inherited from interface com.networknt.aws.lambda.handler.LambdaHandler
DISABLED_LAMBDA_HANDLER_RETURN, SUCCESS_LAMBDA_HANDLER_RETURN
-
-
Constructor Summary
Constructors Constructor Description InfluxMetricsMiddleware()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.networknt.status.Statusexecute(LightLambdaExchange exchange)voidgetCachedConfigurations()booleanisAsynchronous()Indicate if this middleware handler is asynchronous or not.booleanisAudited()Indicate if this middleware handler is audited or not.booleanisContinueOnFailure()Indicate 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, isEnabled
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.networknt.aws.lambda.handler.LambdaHandler
disabledMiddlewareStatus, isResponseMiddleware, successMiddlewareStatus
-
-
-
-
Method Detail
-
execute
public com.networknt.status.Status execute(LightLambdaExchange exchange)
-
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()
-
-