Class HookMetricsPublisherImpl
java.lang.Object
software.amazon.cloudformation.metrics.MetricsPublisher
software.amazon.cloudformation.metrics.HookMetricsPublisherImpl
-
Constructor Summary
ConstructorsConstructorDescriptionHookMetricsPublisherImpl(CloudWatchProvider cloudWatchProvider, Logger loggerProxy, String awsAccountId, String hookTypeName) -
Method Summary
Modifier and TypeMethodDescriptionvoidpublishDurationMetric(Instant timestamp, HookInvocationPoint invocationPoint, long milliseconds) voidpublishExceptionByErrorCodeAndCountBulkMetrics(Instant timestamp, HookInvocationPoint invocationPoint, HandlerErrorCode handlerErrorCode) voidpublishExceptionMetric(Instant timestamp, HookInvocationPoint invocationPoint, Throwable e, HandlerErrorCode handlerErrorCode) voidpublishInvocationMetric(Instant timestamp, HookInvocationPoint invocationPoint) voidpublishProviderLogDeliveryExceptionMetric(Instant timestamp, Throwable e) 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 entityMethods inherited from class software.amazon.cloudformation.metrics.MetricsPublisher
publishDurationMetric, publishExceptionByErrorCodeAndCountBulkMetrics, publishExceptionMetric, publishInvocationMetric
-
Constructor Details
-
HookMetricsPublisherImpl
public HookMetricsPublisherImpl(CloudWatchProvider cloudWatchProvider, Logger loggerProxy, String awsAccountId, String hookTypeName)
-
-
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(Instant timestamp, HookInvocationPoint invocationPoint, Throwable e, HandlerErrorCode handlerErrorCode) - Overrides:
publishExceptionMetricin classMetricsPublisher
-
publishProviderLogDeliveryExceptionMetric
- Overrides:
publishProviderLogDeliveryExceptionMetricin classMetricsPublisher
-
publishInvocationMetric
- Overrides:
publishInvocationMetricin classMetricsPublisher
-
publishDurationMetric
public void publishDurationMetric(Instant timestamp, HookInvocationPoint invocationPoint, long milliseconds) - Overrides:
publishDurationMetricin classMetricsPublisher
-
publishExceptionByErrorCodeAndCountBulkMetrics
public void publishExceptionByErrorCodeAndCountBulkMetrics(Instant timestamp, HookInvocationPoint invocationPoint, HandlerErrorCode handlerErrorCode) - Overrides:
publishExceptionByErrorCodeAndCountBulkMetricsin classMetricsPublisher
-