public abstract class MetricOperationsImpl<T,L> extends OperationSupport implements MetricOperation<T,L>
| Modifier and Type | Field and Description |
|---|---|
static String |
METRIC_ENDPOINT_URL |
apiGroupName, apiGroupVersion, config, context, dryRun, httpClient, JSON, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, subresource| Constructor and Description |
|---|
MetricOperationsImpl(OperationContext operationContext,
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
|
addNamespacedUrlPathParts, assertResponseCode, checkName, checkNamespace, correctNamespace, createStatus, createStatus, getAPIGroupName, getAPIGroupVersion, getConfig, getKubernetesSerialization, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getOperationContext, getRequestConfig, getResourceT, getResourceUrl, getResourceUrl, getResourceUrl, getResourceURLForPatchOperation, getResourceURLForWriteOperation, getRootUrlParts, handleCreate, handleDelete, handleDeploymentRollback, handleGet, handleMetric, handlePatch, handlePatch, handleRaw, handleRawGet, handleResponse, handleResponse, handleScale, handleUpdate, isResourceNamespaced, requestException, requestException, requestFailure, requestFailure, restCall, waitForResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithLabels, withNamepublic static final String METRIC_ENDPOINT_URL
public MetricOperationsImpl(OperationContext operationContext, Class<T> apiTypeClass, Class<L> apiTypeListClass)
public L metrics()
metrics in interface MetricOperation<T,L>public T metric()
metric in interface MetricOperation<T,L>public L metrics(Map<String,Object> labelsMap)
metrics in interface MetricOperation<T,L>labelsMap - labels as HashMapCopyright © 2015–2023 Red Hat. All rights reserved.