public class CWMetricsFactory extends java.lang.Object implements IMetricsFactory
| Modifier and Type | Field and Description |
|---|---|
static java.util.Set<java.lang.String> |
DEFAULT_METRICS_ENABLED_DIMENSIONS
Default metrics dimensions.
|
static MetricsLevel |
DEFAULT_METRICS_LEVEL
Default metrics level to enable.
|
| Constructor and Description |
|---|
CWMetricsFactory(AmazonCloudWatch cloudWatchClient,
java.lang.String namespace,
long bufferTimeMillis,
int maxQueueSize)
Constructor.
|
CWMetricsFactory(AmazonCloudWatch cloudWatchClient,
java.lang.String namespace,
long bufferTimeMillis,
int maxQueueSize,
MetricsLevel metricsLevel,
java.util.Set<java.lang.String> metricsEnabledDimensions)
Constructor.
|
CWMetricsFactory(AWSCredentialsProvider credentialsProvider,
ClientConfiguration clientConfig,
java.lang.String namespace,
long bufferTimeMillis,
int maxQueueSize)
Constructor.
|
CWMetricsFactory(AWSCredentialsProvider credentialsProvider,
java.lang.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 static final java.util.Set<java.lang.String> DEFAULT_METRICS_ENABLED_DIMENSIONS
public CWMetricsFactory(AWSCredentialsProvider credentialsProvider,
java.lang.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(AWSCredentialsProvider credentialsProvider,
ClientConfiguration clientConfig,
java.lang.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(AmazonCloudWatch cloudWatchClient,
java.lang.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(AmazonCloudWatch cloudWatchClient,
java.lang.String namespace,
long bufferTimeMillis,
int maxQueueSize,
MetricsLevel metricsLevel,
java.util.Set<java.lang.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()