Class V2ExternalMetricSource
java.lang.Object
io.kubernetes.client.openapi.models.V2ExternalMetricSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
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
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
-
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
-
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 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
-