Interface KubernetesPodData.ContainerStatusOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
KubernetesPodData.ContainerStatus, KubernetesPodData.ContainerStatus.Builder
Enclosing class:
KubernetesPodData

public static interface KubernetesPodData.ContainerStatusOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    ContainerID is the ID of the container in the format '<type>://<container_id>'.
    com.google.protobuf.ByteString
    ContainerID is the ID of the container in the format '<type>://<container_id>'.
    Image is the name of container image that the container is running.
    com.google.protobuf.ByteString
    Image is the name of container image that the container is running.
    ImageID is the image ID of the container's image.
    com.google.protobuf.ByteString
    ImageID is the image ID of the container's image.
    LastTerminationState holds the last termination state of the container to help debug container crashes and restarts.
    LastTerminationState holds the last termination state of the container to help debug container crashes and restarts.
    Name is a DNS_LABEL representing the unique name of the container.
    com.google.protobuf.ByteString
    Name is a DNS_LABEL representing the unique name of the container.
    boolean
    Ready specifies whether the container is currently passing its readiness check.
    int
    RestartCount holds the number of times the container has been restarted.
    boolean
    Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe.
    State holds details about the container's current condition.
    State holds details about the container's current condition.
    boolean
    LastTerminationState holds the last termination state of the container to help debug container crashes and restarts.
    boolean
    Ready specifies whether the container is currently passing its readiness check.
    boolean
    State holds details about the container's current condition.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getName

      String getName()
       Name is a DNS_LABEL representing the unique name of the container.
       Each container in a pod must have a unique name across all container types.
       Cannot be updated.
       
      string name = 1 [json_name = "name"];
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       Name is a DNS_LABEL representing the unique name of the container.
       Each container in a pod must have a unique name across all container types.
       Cannot be updated.
       
      string name = 1 [json_name = "name"];
      Returns:
      The bytes for name.
    • hasState

      boolean hasState()
       State holds details about the container's current condition.
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];
      Returns:
      Whether the state field is set.
    • getState

       State holds details about the container's current condition.
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];
      Returns:
      The state.
    • getStateOrBuilder

       State holds details about the container's current condition.
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];
    • hasLastState

      boolean hasLastState()
       LastTerminationState holds the last termination state of the container to
       help debug container crashes and restarts. This field is not
       populated if the container is still running and RestartCount is 0.
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState last_state = 3 [json_name = "lastState"];
      Returns:
      Whether the lastState field is set.
    • getLastState

       LastTerminationState holds the last termination state of the container to
       help debug container crashes and restarts. This field is not
       populated if the container is still running and RestartCount is 0.
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState last_state = 3 [json_name = "lastState"];
      Returns:
      The lastState.
    • getLastStateOrBuilder

       LastTerminationState holds the last termination state of the container to
       help debug container crashes and restarts. This field is not
       populated if the container is still running and RestartCount is 0.
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState last_state = 3 [json_name = "lastState"];
    • hasReady

      boolean hasReady()
       Ready specifies whether the container is currently passing its readiness check.
       The value will change as readiness probes keep executing. If no readiness
       probes are specified, this field defaults to true once the container is
       fully started (see Started field).
      
       The value is typically used to determine whether a container is ready to
       accept traffic.
       
      optional bool ready = 4 [json_name = "ready"];
      Returns:
      Whether the ready field is set.
    • getReady

      boolean getReady()
       Ready specifies whether the container is currently passing its readiness check.
       The value will change as readiness probes keep executing. If no readiness
       probes are specified, this field defaults to true once the container is
       fully started (see Started field).
      
       The value is typically used to determine whether a container is ready to
       accept traffic.
       
      optional bool ready = 4 [json_name = "ready"];
      Returns:
      The ready.
    • getRestartCount

      int getRestartCount()
       RestartCount holds the number of times the container has been restarted.
       Kubelet makes an effort to always increment the value, but there
       are cases when the state may be lost due to node restarts and then the value
       may be reset to 0. The value is never negative.
       
      int32 restart_count = 5 [json_name = "restartCount"];
      Returns:
      The restartCount.
    • getImage

      String getImage()
       Image is the name of container image that the container is running.
       The container image may not match the image used in the PodSpec,
       as it may have been resolved by the runtime.
       More info: https://kubernetes.io/docs/concepts/containers/images.
       
      string image = 6 [json_name = "image"];
      Returns:
      The image.
    • getImageBytes

      com.google.protobuf.ByteString getImageBytes()
       Image is the name of container image that the container is running.
       The container image may not match the image used in the PodSpec,
       as it may have been resolved by the runtime.
       More info: https://kubernetes.io/docs/concepts/containers/images.
       
      string image = 6 [json_name = "image"];
      Returns:
      The bytes for image.
    • getImageId

      String getImageId()
       ImageID is the image ID of the container's image. The image ID may not
       match the image ID of the image used in the PodSpec, as it may have been
       resolved by the runtime.
       
      string image_id = 7 [json_name = "imageId"];
      Returns:
      The imageId.
    • getImageIdBytes

      com.google.protobuf.ByteString getImageIdBytes()
       ImageID is the image ID of the container's image. The image ID may not
       match the image ID of the image used in the PodSpec, as it may have been
       resolved by the runtime.
       
      string image_id = 7 [json_name = "imageId"];
      Returns:
      The bytes for imageId.
    • getContainerId

      String getContainerId()
       ContainerID is the ID of the container in the format '<type>://<container_id>'.
       Where type is a container runtime identifier, returned from Version call of CRI API
       (for example "containerd").
       +optional
       
      string container_id = 8 [json_name = "containerId"];
      Returns:
      The containerId.
    • getContainerIdBytes

      com.google.protobuf.ByteString getContainerIdBytes()
       ContainerID is the ID of the container in the format '<type>://<container_id>'.
       Where type is a container runtime identifier, returned from Version call of CRI API
       (for example "containerd").
       +optional
       
      string container_id = 8 [json_name = "containerId"];
      Returns:
      The bytes for containerId.
    • getStarted

      boolean getStarted()
       Started indicates whether the container has finished its postStart lifecycle hook
       and passed its startup probe.
       Initialized as false, becomes true after startupProbe is considered
       successful. Resets to false when the container is restarted, or if kubelet
       loses state temporarily. In both cases, startup probes will run again.
       Is always true when no startupProbe is defined and container is running and
       has passed the postStart lifecycle hook.
       
      bool started = 9 [json_name = "started"];
      Returns:
      The started.