Class MetricsPublisher
- java.lang.Object
-
- software.amazon.cloudformation.metrics.MetricsPublisher
-
- Direct Known Subclasses:
MetricsPublisherImpl
public abstract class MetricsPublisher extends Object
-
-
Constructor Summary
Constructors Constructor Description MetricsPublisher(String resourceTypeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpublishDurationMetric(Instant timestamp, Action action, long milliseconds)voidpublishExceptionMetric(Instant timestamp, Action action, Throwable e, HandlerErrorCode handlerErrorCode)voidpublishInvocationMetric(Instant timestamp, Action action)voidpublishProviderLogDeliveryExceptionMetric(Instant timestamp, 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 entity
-
-
-
Constructor Detail
-
MetricsPublisher
public MetricsPublisher(String resourceTypeName)
-
-
Method Detail
-
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)
-
publishDurationMetric
public void publishDurationMetric(Instant timestamp, Action action, long milliseconds)
-
-