Class V2MetricSpec
java.lang.Object
io.kubernetes.client.openapi.models.V2MetricSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-12-05T08:14:34.919Z[Etc/UTC]")
public class V2MetricSpec
extends Object
MetricSpec specifies how to scale based on a single metric (only `type` and one other
matching field should be set at once).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_object
(V2ObjectMetricSource _object) containerResource
(V2ContainerResourceMetricSource containerResource) boolean
external
(V2ExternalMetricSource external) Get containerResourceGet externalGet _objectgetPods()
Get podsGet resourcegetType()
type is the type of metric source.int
hashCode()
pods
(V2PodsMetricSource pods) resource
(V2ResourceMetricSource resource) void
setContainerResource
(V2ContainerResourceMetricSource containerResource) void
setExternal
(V2ExternalMetricSource external) void
setObject
(V2ObjectMetricSource _object) void
setPods
(V2PodsMetricSource pods) void
setResource
(V2ResourceMetricSource resource) void
toString()
-
Field Details
-
SERIALIZED_NAME_CONTAINER_RESOURCE
- See Also:
-
SERIALIZED_NAME_EXTERNAL
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_PODS
- See Also:
-
SERIALIZED_NAME_RESOURCE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
-
Constructor Details
-
V2MetricSpec
public V2MetricSpec()
-
-
Method Details
-
containerResource
-
getContainerResource
Get containerResource- Returns:
- containerResource
-
setContainerResource
-
external
-
getExternal
Get external- Returns:
- external
-
setExternal
-
_object
-
getObject
Get _object- Returns:
- _object
-
setObject
-
pods
-
getPods
Get pods- Returns:
- pods
-
setPods
-
resource
-
getResource
Get resource- Returns:
- resource
-
setResource
-
type
-
getType
type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-