Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.62 KB

File metadata and controls

33 lines (26 loc) · 1.62 KB

V2MetricSpec

MetricSpec specifies how to scale based on a single metric (only type and one other matching field should be set at once).

Properties

Name Type Description Notes
container_resource V2ContainerResourceMetricSource [optional]
external V2ExternalMetricSource [optional]
object V2ObjectMetricSource [optional]
pods V2PodsMetricSource [optional]
resource V2ResourceMetricSource [optional]
type str type is the type of metric source. It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object.

Example

from kubernetes.client.models.v2_metric_spec import V2MetricSpec

# TODO update the JSON string below
json = "{}"
# create an instance of V2MetricSpec from a JSON string
v2_metric_spec_instance = V2MetricSpec.from_json(json)
# print the JSON string representation of the object
print(V2MetricSpec.to_json())

# convert the object into a dict
v2_metric_spec_dict = v2_metric_spec_instance.to_dict()
# create an instance of V2MetricSpec from a dict
v2_metric_spec_from_dict = V2MetricSpec.from_dict(v2_metric_spec_dict)

[Back to Model list] [Back to API list] [Back to README]