Class V2MetricStatus
java.lang.Object
io.kubernetes.client.openapi.models.V2MetricStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class V2MetricStatus
extends Object
MetricStatus describes the last-read state of a single metric.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_object
(V2ObjectMetricStatus _object) containerResource
(V2ContainerResourceMetricStatus containerResource) boolean
external
(V2ExternalMetricStatus external) static V2MetricStatus
Create an instance of V2MetricStatus given an JSON stringGet containerResourceGet externalGet _objectgetPods()
Get podsGet resourcegetType()
type is the type of metric source.int
hashCode()
pods
(V2PodsMetricStatus pods) resource
(V2ResourceMetricStatus resource) void
setContainerResource
(V2ContainerResourceMetricStatus containerResource) void
setExternal
(V2ExternalMetricStatus external) void
setObject
(V2ObjectMetricStatus _object) void
setPods
(V2PodsMetricStatus pods) void
setResource
(V2ResourceMetricStatus resource) void
toJson()
Convert an instance of V2MetricStatus 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_CONTAINER_RESOURCE
- See Also:
-
SERIALIZED_NAME_EXTERNAL
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_PODS
- See Also:
-
SERIALIZED_NAME_RESOURCE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V2MetricStatus
public V2MetricStatus()
-
-
Method Details
-
containerResource
-
getContainerResource
Get containerResource- Returns:
- containerResource
-
setContainerResource
-
external
-
getExternal
Get external- Returns:
- external
-
setExternal
-
_object
-
getObject
Get _object- Returns:
- _object
-
setObject
-
pods
-
getPods
Get pods- Returns:
- pods
-
setPods
-
resource
-
getResource
Get resource- Returns:
- resource
-
setResource
-
type
-
getType
type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled- Returns:
- type
-
setType
-
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 V2MetricStatus
-
fromJson
Create an instance of V2MetricStatus given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V2MetricStatus
- Throws:
IOException
- if the JSON string is invalid with respect to V2MetricStatus
-
toJson
Convert an instance of V2MetricStatus to an JSON string- Returns:
- JSON string
-