Class CounterSet
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.resource.v1alpha3.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 Summary
Constructors Constructor Description CounterSet()No args constructor for use in serializationCounterSet(Map<String,Counter> counters, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CounterSetBuilderedit()Map<String,Object>getAdditionalProperties()Map<String,Counter>getCounters()Counters defines the counters that will be consumed by the device.StringgetName()CounterSet is the name of the set from which the counters defined will be consumed.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetCounters(Map<String,Counter> counters)Counters defines the counters that will be consumed by the device.voidsetName(String name)CounterSet is the name of the set from which the counters defined will be consumed.CounterSetBuildertoBuilder()
-
-
-
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.
-
edit
public CounterSetBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<CounterSetBuilder>
-
toBuilder
public CounterSetBuilder toBuilder()
-
-