Class MetricsPublisherImpl
- java.lang.Object
-
- software.amazon.cloudformation.metrics.MetricsPublisher
-
- software.amazon.cloudformation.metrics.MetricsPublisherImpl
-
public class MetricsPublisherImpl extends MetricsPublisher
-
-
Constructor Summary
Constructors Constructor Description MetricsPublisherImpl(CloudWatchProvider cloudWatchProvider, Logger loggerProxy, String providerAccountId, 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 e)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
-
MetricsPublisherImpl
public MetricsPublisherImpl(CloudWatchProvider cloudWatchProvider, Logger loggerProxy, String providerAccountId, String resourceTypeName)
-
-
Method Detail
-
refreshClient
public void refreshClient()
Description copied from class:MetricsPublisherOn 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- Overrides:
refreshClientin classMetricsPublisher
-
publishExceptionMetric
public void publishExceptionMetric(Instant timestamp, Action action, Throwable e, HandlerErrorCode handlerErrorCode)
- Overrides:
publishExceptionMetricin classMetricsPublisher
-
publishProviderLogDeliveryExceptionMetric
public void publishProviderLogDeliveryExceptionMetric(Instant timestamp, Throwable e)
- Overrides:
publishProviderLogDeliveryExceptionMetricin classMetricsPublisher
-
publishInvocationMetric
public void publishInvocationMetric(Instant timestamp, Action action)
- Overrides:
publishInvocationMetricin classMetricsPublisher
-
publishDurationMetric
public void publishDurationMetric(Instant timestamp, Action action, long milliseconds)
- Overrides:
publishDurationMetricin classMetricsPublisher
-
-