private CloudWatchReporter(MetricRegistry registry,
AmazonCloudWatchClient client,
String namespace,
TimeUnit rateUnit,
TimeUnit durationUnit,
boolean reportAggregates,
MetricFilter filter, Map<String, String> dimensions) {
super(registry, "cloudwatch-reporter", filter, rateUnit, durationUnit);
this.client = client;
this.namespace = namespace;
this.dimensions = new ArrayList<>();
this.reportAggregates = reportAggregates;
for (Map.Entry<String, String> me : dimensions.entrySet()) {
this.dimensions.add(new Dimension().withName(me.getKey()).withValue(me.getValue()));
}
}
CloudWatchReporter.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:metrics-cloudwatch-reporter
作者:
评论列表
文章目录