public class CWMetricsFactory extends Object implements IMetricsFactory
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
DEFAULT_METRICS_ENABLED_DIMENSIONS
Default metrics dimensions.
|
static MetricsLevel |
DEFAULT_METRICS_LEVEL
Default metrics level to enable.
|
| Constructor and Description |
|---|
CWMetricsFactory(com.amazonaws.services.cloudwatch.AmazonCloudWatch cloudWatchClient,
String namespace,
long bufferTimeMillis,
int maxQueueSize)
Constructor.
|
CWMetricsFactory(com.amazonaws.services.cloudwatch.AmazonCloudWatch cloudWatchClient,
String namespace,
long bufferTimeMillis,
int maxQueueSize,
MetricsLevel metricsLevel,
Set<String> metricsEnabledDimensions)
Constructor.
|
CWMetricsFactory(com.amazonaws.auth.AWSCredentialsProvider credentialsProvider,
com.amazonaws.ClientConfiguration clientConfig,
String namespace,
long bufferTimeMillis,
int maxQueueSize)
Constructor.
|
CWMetricsFactory(com.amazonaws.auth.AWSCredentialsProvider credentialsProvider,
String namespace,
long bufferTimeMillis,
int maxQueueSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IMetricsScope |
createMetrics() |
void |
shutdown() |
public static final MetricsLevel DEFAULT_METRICS_LEVEL
public CWMetricsFactory(com.amazonaws.auth.AWSCredentialsProvider credentialsProvider,
String namespace,
long bufferTimeMillis,
int maxQueueSize)
credentialsProvider - client credentials for CloudWatchnamespace - 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 queuepublic CWMetricsFactory(com.amazonaws.auth.AWSCredentialsProvider credentialsProvider,
com.amazonaws.ClientConfiguration clientConfig,
String namespace,
long bufferTimeMillis,
int maxQueueSize)
credentialsProvider - client credentials for CloudWatchclientConfig - Configuration to use with the AmazonCloudWatchClientnamespace - 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 queuepublic CWMetricsFactory(com.amazonaws.services.cloudwatch.AmazonCloudWatch cloudWatchClient,
String namespace,
long bufferTimeMillis,
int maxQueueSize)
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 queuepublic CWMetricsFactory(com.amazonaws.services.cloudwatch.AmazonCloudWatch cloudWatchClient,
String namespace,
long bufferTimeMillis,
int maxQueueSize,
MetricsLevel metricsLevel,
Set<String> metricsEnabledDimensions)
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 allowpublic IMetricsScope createMetrics()
createMetrics in interface IMetricsFactorypublic void shutdown()
Copyright © 2021. All rights reserved.