public class HookMetricsPublisherImpl extends MetricsPublisher
| Constructor and Description |
|---|
HookMetricsPublisherImpl(CloudWatchProvider cloudWatchProvider,
Logger loggerProxy,
String awsAccountId,
String hookTypeName) |
| Modifier and Type | Method and Description |
|---|---|
void |
publishDurationMetric(Instant timestamp,
HookInvocationPoint invocationPoint,
long milliseconds) |
void |
publishExceptionByErrorCodeAndCountBulkMetrics(Instant timestamp,
HookInvocationPoint invocationPoint,
HandlerErrorCode handlerErrorCode) |
void |
publishExceptionMetric(Instant timestamp,
HookInvocationPoint invocationPoint,
Throwable e,
HandlerErrorCode handlerErrorCode) |
void |
publishInvocationMetric(Instant timestamp,
HookInvocationPoint invocationPoint) |
void |
publishProviderLogDeliveryExceptionMetric(Instant timestamp,
Throwable e) |
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
|
publishDurationMetric, publishExceptionByErrorCodeAndCountBulkMetrics, publishExceptionMetric, publishInvocationMetricpublic HookMetricsPublisherImpl(CloudWatchProvider cloudWatchProvider, Logger loggerProxy, String awsAccountId, String hookTypeName)
public void refreshClient()
MetricsPublisherrefreshClient in class MetricsPublisherpublic void publishExceptionMetric(Instant timestamp, HookInvocationPoint invocationPoint, Throwable e, HandlerErrorCode handlerErrorCode)
publishExceptionMetric in class MetricsPublisherpublic void publishProviderLogDeliveryExceptionMetric(Instant timestamp, Throwable e)
publishProviderLogDeliveryExceptionMetric in class MetricsPublisherpublic void publishInvocationMetric(Instant timestamp, HookInvocationPoint invocationPoint)
publishInvocationMetric in class MetricsPublisherpublic void publishDurationMetric(Instant timestamp, HookInvocationPoint invocationPoint, long milliseconds)
publishDurationMetric in class MetricsPublisherpublic void publishExceptionByErrorCodeAndCountBulkMetrics(Instant timestamp, HookInvocationPoint invocationPoint, HandlerErrorCode handlerErrorCode)
publishExceptionByErrorCodeAndCountBulkMetrics in class MetricsPublisherCopyright © 2019 Amazon Web Services, Inc. All Rights Reserved.