Class V2ExternalMetricSource
java.lang.Object
io.kubernetes.client.openapi.models.V2ExternalMetricSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V2ExternalMetricSource
extends Object
ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V2ExternalMetricSource
Create an instance of V2ExternalMetricSource 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 V2ExternalMetricSource 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
-
V2ExternalMetricSource
public V2ExternalMetricSource()
-
-
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 V2ExternalMetricSource
-
fromJson
Create an instance of V2ExternalMetricSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V2ExternalMetricSource
- Throws:
IOException
- if the JSON string is invalid with respect to V2ExternalMetricSource
-
toJson
Convert an instance of V2ExternalMetricSource to an JSON string- Returns:
- JSON string
-