CounterSetArgs

data class CounterSetArgs(val counters: Output<Map<String, CounterArgs>>, val name: Output<String>) : ConvertibleToJava<CounterSetArgs>

CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. 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.

Constructors

Link copied to clipboard
constructor(counters: Output<Map<String, CounterArgs>>, name: Output<String>)

Properties

Link copied to clipboard

Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. The maximum number of counters is 32.

Link copied to clipboard
val name: Output<String>

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

Functions

Link copied to clipboard
open override fun toJava(): CounterSetArgs