Class V2ContainerResourceMetricSource
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V2ContainerResourceMetricSource
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V2ContainerResourceMetricSource
extends Object
ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. 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. Only one \"target\" type should be set.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionV2ContainerResourceMetricSource
(String container, String name, V2MetricTarget target) -
Method Summary
Modifier and TypeMethodDescriptionSet container 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
Set the name property valuevoid
setTarget
(V2MetricTarget target) Set the target property valuetarget
(V2MetricTarget target) Set target in a chainable fashion.toString()
-
Field Details
-
JSON_PROPERTY_CONTAINER
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_TARGET
- See Also:
-
-
Constructor Details
-
V2ContainerResourceMetricSource
-
-
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- Parameters:
container
- property value to set
-
container
Set container in a chainable fashion.- Returns:
- The same instance of V2ContainerResourceMetricSource for chaining.
-
getName
name is the name of the resource in question.- Returns:
- the name property value
-
setName
Set the name property value- Parameters:
name
- property value to set
-
name
Set name in a chainable fashion.- Returns:
- The same instance of V2ContainerResourceMetricSource for chaining.
-
getTarget
- Returns:
- the target property value
-
setTarget
Set the target property value- Parameters:
target
- property value to set
-
target
Set target in a chainable fashion.- Returns:
- The same instance of V2ContainerResourceMetricSource for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-