Kubernetes::DeviceCounterConsumption
Inherits YAML::Serializable < JSON::Serializable < Kubernetes::Serializable < Struct < Value < Object
DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.
Constructors
new(pull : ::JSON::PullParser)
new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Instance methods
counter_set
CounterSet is the name of the set from which the counters defined will be consumed.
CounterSet is the name of the set from which the counters defined will be consumed.
counters
Counters defines the counters that will be consumed by the device. The maximum number of counters is 32.
Counters defines the counters that will be consumed by the device. The maximum number of counters is 32.
Counters defines the counters that will be consumed by the device. The maximum number of counters is 32.
Macros
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion