Package io.fabric8.kubernetes.api.model
Class ResourceStatus
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.ResourceStatus
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ResourceStatusBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ResourceStatus extends Object implements io.fabric8.kubernetes.api.builder.Editable<ResourceStatusBuilder>, KubernetesResource
ResourceStatus represents the status of a single resource allocated to a Pod.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceStatus()
No args constructor for use in serializationResourceStatus(String name, List<ResourceHealth> resources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceStatusBuilder
edit()
Map<String,Object>
getAdditionalProperties()
String
getName()
Name of the resource.List<ResourceHealth>
getResources()
List of unique resources health.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setName(String name)
Name of the resource.void
setResources(List<ResourceHealth> resources)
List of unique resources health.ResourceStatusBuilder
toBuilder()
-
-
-
Constructor Detail
-
ResourceStatus
public ResourceStatus()
No args constructor for use in serialization
-
ResourceStatus
public ResourceStatus(String name, List<ResourceHealth> resources)
-
-
Method Detail
-
getName
public String getName()
Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be "claim:<claim_name>/<request>". When this status is reported about a container, the "claim_name" and "request" must match one of the claims of this container.
-
setName
public void setName(String name)
Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be "claim:<claim_name>/<request>". When this status is reported about a container, the "claim_name" and "request" must match one of the claims of this container.
-
getResources
public List<ResourceHealth> getResources()
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases.
-
setResources
public void setResources(List<ResourceHealth> resources)
List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases.
-
edit
public ResourceStatusBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<ResourceStatusBuilder>
-
toBuilder
public ResourceStatusBuilder toBuilder()
-
-