public class CloudWatchMetricsFactory extends Object implements MetricsFactory
Constructor and Description |
---|
CloudWatchMetricsFactory(software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClient cloudWatchClient,
String namespace,
long bufferTimeMillis,
int maxQueueSize,
MetricsLevel metricsLevel,
Set<String> metricsEnabledDimensions,
int flushSize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
MetricsScope |
createMetrics() |
void |
shutdown() |
public CloudWatchMetricsFactory(@NonNull software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClient cloudWatchClient, @NonNull String namespace, long bufferTimeMillis, int maxQueueSize, @NonNull MetricsLevel metricsLevel, @NonNull Set<String> metricsEnabledDimensions, int flushSize)
cloudWatchClient
- Client used to make CloudWatch requestsnamespace
- the namespace under which the metrics will appear in the CloudWatch consolebufferTimeMillis
- time to buffer metrics before publishing to CloudWatchmaxQueueSize
- maximum number of metrics that we can have in a queuemetricsLevel
- metrics level to enablemetricsEnabledDimensions
- metrics dimensions to allowflushSize
- size of batch that can be publishedpublic MetricsScope createMetrics()
createMetrics
in interface MetricsFactory
public void shutdown()
Copyright © 2019. All rights reserved.