Class V2ResourceMetricSource
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V2ResourceMetricSource
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V2ResourceMetricSource
extends Object
ResourceMetricSource 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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleangetName()name is the name of the resource in question.inthashCode()Set name in a chainable fashion.voidSet the name property valuevoidsetTarget(V2MetricTarget target) Set the target property valuetarget(V2MetricTarget target) Set target in a chainable fashion.toString()
- 
Field Details- 
JSON_PROPERTY_NAME- See Also:
 
- 
JSON_PROPERTY_TARGET- See Also:
 
 
- 
- 
Constructor Details- 
V2ResourceMetricSource
 
- 
- 
Method Details- 
getNamename is the name of the resource in question.- Returns:
- the name property value
 
- 
setNameSet the name property value
- 
nameSet name in a chainable fashion.- Returns:
- The same instance of V2ResourceMetricSource for chaining.
 
- 
getTarget- Returns:
- the target property value
 
- 
setTargetSet the target property value
- 
targetSet target in a chainable fashion.- Returns:
- The same instance of V2ResourceMetricSource for chaining.
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-