Class MetricOperationsImpl<T,L>
- java.lang.Object
-
- io.fabric8.kubernetes.client.dsl.internal.OperationSupport
-
- io.fabric8.kubernetes.client.dsl.internal.MetricOperationsImpl<T,L>
-
- All Implemented Interfaces:
MetricOperation<T,L>
- Direct Known Subclasses:
NodeMetricOperationsImpl
,PodMetricOperationsImpl
public abstract class MetricOperationsImpl<T,L> extends OperationSupport implements MetricOperation<T,L>
-
-
Field Summary
Fields Modifier and Type Field Description static String
METRIC_ENDPOINT_URL
-
Fields inherited from class io.fabric8.kubernetes.client.dsl.internal.OperationSupport
apiGroupName, apiGroupVersion, config, context, dryRun, httpClient, JSON, JSON_MERGE_PATCH, JSON_PATCH, name, namespace, resourceT, STRATEGIC_MERGE_JSON_PATCH, subresource
-
-
Constructor Summary
Constructors Constructor Description MetricOperationsImpl(OperationContext operationContext, Class<T> apiTypeClass, Class<L> apiTypeListClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getMetricEndpointUrlWithPlural(String plural)
T
metric()
Get a single metric. name needs to be provided.L
metrics()
Get a list of metricsL
metrics(Map<String,Object> labelsMap)
Returns a list of metrics matching specified labels-
Methods inherited from class io.fabric8.kubernetes.client.dsl.internal.OperationSupport
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, waitForResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.client.dsl.MetricOperation
withLabels, withName
-
-
-
-
Field Detail
-
METRIC_ENDPOINT_URL
public static final String METRIC_ENDPOINT_URL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MetricOperationsImpl
public MetricOperationsImpl(OperationContext operationContext, Class<T> apiTypeClass, Class<L> apiTypeListClass)
-
-
Method Detail
-
metrics
public L metrics()
Get a list of metrics- Specified by:
metrics
in interfaceMetricOperation<T,L>
- Returns:
- a list object for metrics
-
metric
public T metric()
Get a single metric. name needs to be provided.- Specified by:
metric
in interfaceMetricOperation<T,L>
- Returns:
- a single metric
-
metrics
public L metrics(Map<String,Object> labelsMap)
Returns a list of metrics matching specified labels- Specified by:
metrics
in interfaceMetricOperation<T,L>
- Parameters:
labelsMap
- labels as HashMap- Returns:
- list of metrics found matching provided label
-
-