Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.43 KB

File metadata and controls

29 lines (22 loc) · 1.43 KB

V1CounterSet

CounterSet defines a named set of counters that are available to be used by devices defined in the ResourcePool. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.

Properties

Name Type Description Notes
counters Dict[str, V1Counter] Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. The maximum number of counters is 32.
name str Name defines the name of the counter set. It must be a DNS label.

Example

from kubernetes.client.models.v1_counter_set import V1CounterSet

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

# convert the object into a dict
v1_counter_set_dict = v1_counter_set_instance.to_dict()
# create an instance of V1CounterSet from a dict
v1_counter_set_from_dict = V1CounterSet.from_dict(v1_counter_set_dict)

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