Class V2ContainerResourceMetricStatus
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V2ContainerResourceMetricStatus
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V2ContainerResourceMetricStatus
extends Object
ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionV2ContainerResourceMetricStatus
(String container, V2MetricValueStatus current, String name) -
Method Summary
Modifier and TypeMethodDescriptionSet container in a chainable fashion.current
(V2MetricValueStatus current) Set current in a chainable fashion.boolean
container is the name of the container in the pods of the scaling targetgetName()
name is the name of the resource in question.int
hashCode()
Set name in a chainable fashion.void
setContainer
(String container) Set the container property valuevoid
setCurrent
(V2MetricValueStatus current) Set the current property valuevoid
Set the name property valuetoString()
-
Field Details
-
JSON_PROPERTY_CONTAINER
- See Also:
-
JSON_PROPERTY_CURRENT
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
-
Constructor Details
-
V2ContainerResourceMetricStatus
-
-
Method Details
-
getContainer
container is the name of the container in the pods of the scaling target- Returns:
- the container property value
-
setContainer
Set the container property value -
container
Set container in a chainable fashion.- Returns:
- The same instance of V2ContainerResourceMetricStatus for chaining.
-
getCurrent
- Returns:
- the current property value
-
setCurrent
Set the current property value -
current
Set current in a chainable fashion.- Returns:
- The same instance of V2ContainerResourceMetricStatus for chaining.
-
getName
name is the name of the resource in question.- Returns:
- the name property value
-
setName
Set the name property value -
name
Set name in a chainable fashion.- Returns:
- The same instance of V2ContainerResourceMetricStatus for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-