Class V2PodsMetricSource
java.lang.Object
io.kubernetes.client.openapi.models.V2PodsMetricSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class V2PodsMetricSource
extends Object
PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V2PodsMetricSource
Create an instance of V2PodsMetricSource given an JSON stringGet metricGet targetint
hashCode()
metric
(V2MetricIdentifier metric) void
setMetric
(V2MetricIdentifier metric) void
setTarget
(V2MetricTarget target) target
(V2MetricTarget target) toJson()
Convert an instance of V2PodsMetricSource to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_METRIC
- See Also:
-
SERIALIZED_NAME_TARGET
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V2PodsMetricSource
public V2PodsMetricSource()
-
-
Method Details
-
metric
-
getMetric
Get metric- Returns:
- metric
-
setMetric
-
target
-
getTarget
Get target- Returns:
- target
-
setTarget
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V2PodsMetricSource
-
fromJson
Create an instance of V2PodsMetricSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V2PodsMetricSource
- Throws:
IOException
- if the JSON string is invalid with respect to V2PodsMetricSource
-
toJson
Convert an instance of V2PodsMetricSource to an JSON string- Returns:
- JSON string
-