Class CounterSet
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.resource.v1.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 set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label.StringgetName()Name defines the name of the counter set.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetCounters(Map<String,Counter> counters)Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label.voidsetName(String name)Name defines the name of the counter set.CounterSetBuildertoBuilder()
-
-
-
Method Detail
-
getCounters
public Map<String,Counter> getCounters()
Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label.The maximum number of counters in all sets is 32.
-
setCounters
public void setCounters(Map<String,Counter> counters)
Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label.The maximum number of counters in all sets is 32.
-
getName
public String getName()
Name defines the name of the counter set. It must be a DNS label.
-
setName
public void setName(String name)
Name defines the name of the counter set. It must be a DNS label.
-
edit
public CounterSetBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<CounterSetBuilder>
-
toBuilder
public CounterSetBuilder toBuilder()
-
-