struct

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.

Source
counter_set=(counter_set : String | Nil)

CounterSet is the name of the set from which the counters defined will be consumed.

Source
counters

Counters defines the counters that will be consumed by the device. The maximum number of counters is 32.

Source
counters=(counters : Hash(String, Counter) | Nil)

Counters defines the counters that will be consumed by the device. The maximum number of counters is 32.

Source
counters=(counters : Hash(String, Counter) | Nil)

Counters defines the counters that will be consumed by the device. The maximum number of counters is 32.

Source
counters=(counters : Hash(String, Counter) | Nil)

Counters defines the counters that will be consumed by the device. The maximum number of counters is 32.

Source

Macros

field(name, type = nil, **options, &block)

Helper macro for defining fields with automatic camelCase conversion

Source