Class MetricsPublisher
java.lang.Object
software.amazon.cloudformation.metrics.MetricsPublisher
- Direct Known Subclasses:
HookMetricsPublisherImpl,MetricsPublisherImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpublishDurationMetric(Instant timestamp, Action action, long milliseconds) voidpublishDurationMetric(Instant timestamp, HookInvocationPoint invocationPoint, long milliseconds) voidpublishExceptionByErrorCodeAndCountBulkMetrics(Instant timestamp, Action action, HandlerErrorCode handlerErrorCode) voidpublishExceptionByErrorCodeAndCountBulkMetrics(Instant timestamp, HookInvocationPoint invocationPoint, HandlerErrorCode handlerErrorCode) voidpublishExceptionMetric(Instant timestamp, Action action, Throwable e, HandlerErrorCode handlerErrorCode) voidpublishExceptionMetric(Instant timestamp, HookInvocationPoint invocationPoint, Throwable e, HandlerErrorCode handlerErrorCode) voidpublishInvocationMetric(Instant timestamp, Action action) voidpublishInvocationMetric(Instant timestamp, HookInvocationPoint invocationPoint) voidpublishProviderLogDeliveryExceptionMetric(Instant timestamp, Throwable exception) voidOn Lambda re-invoke we need to supply a new set of client credentials so this function must be called whenever credentials are refreshed/changed in the owning entity
-
Constructor Details
-
MetricsPublisher
-
-
Method Details
-
refreshClient
public void refreshClient()On Lambda re-invoke we need to supply a new set of client credentials so this function must be called whenever credentials are refreshed/changed in the owning entity -
publishExceptionMetric
public void publishExceptionMetric(Instant timestamp, Action action, Throwable e, HandlerErrorCode handlerErrorCode) -
publishExceptionMetric
public void publishExceptionMetric(Instant timestamp, HookInvocationPoint invocationPoint, Throwable e, HandlerErrorCode handlerErrorCode) -
publishExceptionByErrorCodeAndCountBulkMetrics
public void publishExceptionByErrorCodeAndCountBulkMetrics(Instant timestamp, Action action, HandlerErrorCode handlerErrorCode) -
publishExceptionByErrorCodeAndCountBulkMetrics
public void publishExceptionByErrorCodeAndCountBulkMetrics(Instant timestamp, HookInvocationPoint invocationPoint, HandlerErrorCode handlerErrorCode) -
publishInvocationMetric
-
publishInvocationMetric
-
publishDurationMetric
-
publishDurationMetric
public void publishDurationMetric(Instant timestamp, HookInvocationPoint invocationPoint, long milliseconds) -
publishProviderLogDeliveryExceptionMetric
-