Class CounterSet

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<CounterSetBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class CounterSet
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<CounterSetBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    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.

    See Also:
    Serialized Form
    • Constructor Detail

      • CounterSet

        public CounterSet()
        No args constructor for use in serialization
    • Method Detail

      • getCounters

        public Map<String,​Counter> getCounters()
        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.

      • setCounters

        public void setCounters​(Map<String,​Counter> counters)
        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.

      • getName

        public String getName()
        CounterSet is the name of the set from which the counters defined will be consumed.
      • setName

        public void setName​(String name)
        CounterSet is the name of the set from which the counters defined will be consumed.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)