Class MetricsPublisher
java.lang.Object
software.amazon.cloudformation.metrics.MetricsPublisher
- Direct Known Subclasses:
MetricsPublisherImpl
public abstract class MetricsPublisher
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description MetricsPublisher(java.lang.String resourceTypeName) -
Method Summary
Modifier and Type Method Description voidpublishDurationMetric(java.time.Instant timestamp, Action action, long milliseconds)voidpublishExceptionByErrorCodeAndCountBulkMetrics(java.time.Instant timestamp, Action action, HandlerErrorCode handlerErrorCode)voidpublishExceptionMetric(java.time.Instant timestamp, Action action, java.lang.Throwable e, HandlerErrorCode handlerErrorCode)voidpublishInvocationMetric(java.time.Instant timestamp, Action action)voidpublishProviderLogDeliveryExceptionMetric(java.time.Instant timestamp, java.lang.Throwable exception)voidrefreshClient()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 entityMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MetricsPublisher
public MetricsPublisher(java.lang.String resourceTypeName)
-
-
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(java.time.Instant timestamp, Action action, java.lang.Throwable e, HandlerErrorCode handlerErrorCode) -
publishExceptionByErrorCodeAndCountBulkMetrics
public void publishExceptionByErrorCodeAndCountBulkMetrics(java.time.Instant timestamp, Action action, HandlerErrorCode handlerErrorCode) -
publishInvocationMetric
-
publishDurationMetric
-
publishProviderLogDeliveryExceptionMetric
public void publishProviderLogDeliveryExceptionMetric(java.time.Instant timestamp, java.lang.Throwable exception)
-