Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.27 KB

File metadata and controls

30 lines (23 loc) · 1.27 KB

V2ObjectMetricSource

ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).

Properties

Name Type Description Notes
described_object V2CrossVersionObjectReference
metric V2MetricIdentifier
target V2MetricTarget

Example

from kubernetes.client.models.v2_object_metric_source import V2ObjectMetricSource

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

# convert the object into a dict
v2_object_metric_source_dict = v2_object_metric_source_instance.to_dict()
# create an instance of V2ObjectMetricSource from a dict
v2_object_metric_source_from_dict = V2ObjectMetricSource.from_dict(v2_object_metric_source_dict)

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