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