public class CWMetricsFactory extends java.lang.Object implements IMetricsFactory
| Constructor and Description |
|---|
CWMetricsFactory(AmazonCloudWatch cloudWatchClient,
java.lang.String namespace,
long bufferTimeMillis,
int maxQueueSize)
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 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 IMetricsScope createMetrics()
createMetrics in interface IMetricsFactorypublic void shutdown()