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, 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 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 entityMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MetricsPublisherImpl
public MetricsPublisherImpl(CloudWatchProvider cloudWatchProvider, Logger loggerProxy, java.lang.String resourceTypeName)
-
-
Method Details
-
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(java.time.Instant timestamp, Action action, java.lang.Throwable e, HandlerErrorCode handlerErrorCode)- Overrides:
publishExceptionMetricin classMetricsPublisher
-
publishExceptionByErrorCodeAndCountBulkMetrics
public void publishExceptionByErrorCodeAndCountBulkMetrics(java.time.Instant timestamp, Action action, HandlerErrorCode handlerErrorCode)- Overrides:
publishExceptionByErrorCodeAndCountBulkMetricsin classMetricsPublisher
-
publishProviderLogDeliveryExceptionMetric
public void publishProviderLogDeliveryExceptionMetric(java.time.Instant timestamp, java.lang.Throwable e)- Overrides:
publishProviderLogDeliveryExceptionMetricin classMetricsPublisher
-
publishInvocationMetric
- Overrides:
publishInvocationMetricin classMetricsPublisher
-
publishDurationMetric
- Overrides:
publishDurationMetricin classMetricsPublisher
-