public class MetricOperationsImpl<T,L> extends OperationSupport implements Nameable<MetricOperationsImpl<T,L>>
Modifier and Type | Field and Description |
---|---|
static String |
METRIC_ENDPOINT_URL |
apiGroupName, apiGroupVersion, config, context, dryRun, httpClient, JSON, JSON_MAPPER, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, YAML_MAPPER
Constructor and Description |
---|
MetricOperationsImpl(ClientContext client,
String configuredName,
String configuredNamespace,
String plural,
Map<String,String> configuredLabels,
Class<T> apiTypeClass,
Class<L> apiTypeListClass) |
Modifier and Type | Method and Description |
---|---|
protected String |
getMetricEndpointUrlWithPlural(String plural) |
T |
metric()
Get a single metric.
|
L |
metrics()
Get a list of metrics
|
L |
metrics(Map<String,Object> labelsMap)
Returns a list of metrics matching specified labels
|
MetricOperationsImpl<T,L> |
withLabels(Map<String,String> labels)
Filter metrics via labels.
|
MetricOperationsImpl<T,L> |
withName(String name) |
assertResponseCode, checkName, checkNamespace, createStatus, createStatus, getAPIGroupName, getAPIGroupVersion, getConfig, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getObjectValueAsMap, getResourceT, getResourceUrl, getResourceUrl, getResourceUrl, getResourceURLForPatchOperation, getResourceURLForWriteOperation, getRootUrl, handleCreate, handleDelete, handleDelete, handleDeploymentRollback, handleGet, handleGet, handleMetric, handlePatch, handlePatch, handlePatch, handleRawGet, handleResponse, handleResponse, handleResponse, handleResponse, handleScale, handleUpdate, handleUpdate, isResourceNamespaced, requestException, requestException, requestFailure, requestFailure, restCall, retryWithExponentialBackoff, unmarshal, unmarshal, unmarshal
public static final String METRIC_ENDPOINT_URL
public MetricOperationsImpl<T,L> withName(String name)
withName
in interface Nameable<MetricOperationsImpl<T,L>>
public MetricOperationsImpl<T,L> withLabels(Map<String,String> labels)
labels
- labels as HashMapMetricOperationsImpl
with which you can call metrics() for getting filtered Metricspublic L metrics()
public T metric()
public L metrics(Map<String,Object> labelsMap)
labelsMap
- labels as HashMapCopyright © 2015–2020 Red Hat. All rights reserved.