Class MetricsConsumer
- java.lang.Object
-
- com.yahoo.vespa.model.admin.monitoring.MetricsConsumer
-
@Immutable public class MetricsConsumer extends java.lang.Object
Represents an arbitrary metric consumer- Author:
- trygve, gjoranv
-
-
Constructor Summary
Constructors Constructor Description MetricsConsumer(java.lang.String id, MetricSet metricSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCloudWatch(CloudWatch cloudWatch)
java.util.List<CloudWatch>
cloudWatches()
java.lang.String
getId()
java.util.Map<java.lang.String,Metric>
getMetrics()
MetricSet
getMetricSet()
-
-
-
Constructor Detail
-
MetricsConsumer
public MetricsConsumer(java.lang.String id, MetricSet metricSet)
- Parameters:
id
- the consumermetricSet
- the metrics for this consumer
-
-
Method Detail
-
getId
public java.lang.String getId()
-
getMetricSet
public MetricSet getMetricSet()
-
getMetrics
public java.util.Map<java.lang.String,Metric> getMetrics()
- Returns:
- Map of metric with metric name as key
-
addCloudWatch
public void addCloudWatch(CloudWatch cloudWatch)
-
cloudWatches
public java.util.List<CloudWatch> cloudWatches()
-
-