Package io.fabric8.kubernetes.client.dsl
Interface MetricOperation<T,L>
-
- All Known Subinterfaces:
NodeMetricOperation,PodMetricOperation
public interface MetricOperation<T,L>
-
-
Field Summary
Fields Modifier and Type Field Description static StringMETRIC_ENDPOINT_URL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tmetric()Get a single metric. name needs to be provided.Lmetrics()Get a list of metricsLmetrics(Map<String,Object> labelsMap)Returns a list of metrics matching specified labelsMetricOperation<T,L>withLabels(Map<String,String> labels)Filter metrics via labels.MetricOperation<T,L>withName(String name)
-
-
-
Field Detail
-
METRIC_ENDPOINT_URL
static final String METRIC_ENDPOINT_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
withName
MetricOperation<T,L> withName(String name)
-
withLabels
MetricOperation<T,L> withLabels(Map<String,String> labels)
Filter metrics via labels.- Parameters:
labels- labels as HashMap- Returns:
MetricOperationwith which you can call metrics() for getting filtered Metrics
-
metrics
L metrics()
Get a list of metrics- Returns:
- a list object for metrics
-
metric
T metric()
Get a single metric. name needs to be provided.- Returns:
- a single metric
-
-