Class V2PodsMetricSource
java.lang.Object
io.kubernetes.client.openapi.models.V2PodsMetricSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
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
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element 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
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element 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
-