Package kubevirt.io

Class V1Probe

java.lang.Object
kubevirt.io.V1Probe

@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2019-11-10T14:44:51.030+02:00") public class V1Probe extends Object
Probe describes a health check to be performed against a VirtualMachineInstance to determine whether it is alive or ready to receive traffic.
  • Field Details

    • failureThreshold

      private Integer failureThreshold
    • httpGet

      private V1HTTPGetAction httpGet
    • initialDelaySeconds

      private Integer initialDelaySeconds
    • periodSeconds

      private Integer periodSeconds
    • successThreshold

      private Integer successThreshold
    • tcpSocket

      private V1TCPSocketAction tcpSocket
    • timeoutSeconds

      private Integer timeoutSeconds
  • Constructor Details

    • V1Probe

      public V1Probe()
  • Method Details

    • failureThreshold

      public V1Probe failureThreshold(Integer failureThreshold)
    • getFailureThreshold

      public Integer getFailureThreshold()
      Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. +optional
      Returns:
      failureThreshold
    • setFailureThreshold

      public void setFailureThreshold(Integer failureThreshold)
    • httpGet

      public V1Probe httpGet(V1HTTPGetAction httpGet)
    • getHttpGet

      public V1HTTPGetAction getHttpGet()
      HTTPGet specifies the http request to perform. +optional
      Returns:
      httpGet
    • setHttpGet

      public void setHttpGet(V1HTTPGetAction httpGet)
    • initialDelaySeconds

      public V1Probe initialDelaySeconds(Integer initialDelaySeconds)
    • getInitialDelaySeconds

      public Integer getInitialDelaySeconds()
      Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional
      Returns:
      initialDelaySeconds
    • setInitialDelaySeconds

      public void setInitialDelaySeconds(Integer initialDelaySeconds)
    • periodSeconds

      public V1Probe periodSeconds(Integer periodSeconds)
    • getPeriodSeconds

      public Integer getPeriodSeconds()
      How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. +optional
      Returns:
      periodSeconds
    • setPeriodSeconds

      public void setPeriodSeconds(Integer periodSeconds)
    • successThreshold

      public V1Probe successThreshold(Integer successThreshold)
    • getSuccessThreshold

      public Integer getSuccessThreshold()
      Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. +optional
      Returns:
      successThreshold
    • setSuccessThreshold

      public void setSuccessThreshold(Integer successThreshold)
    • tcpSocket

      public V1Probe tcpSocket(V1TCPSocketAction tcpSocket)
    • getTcpSocket

      public V1TCPSocketAction getTcpSocket()
      TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported +optional
      Returns:
      tcpSocket
    • setTcpSocket

      public void setTcpSocket(V1TCPSocketAction tcpSocket)
    • timeoutSeconds

      public V1Probe timeoutSeconds(Integer timeoutSeconds)
    • getTimeoutSeconds

      public Integer getTimeoutSeconds()
      Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional
      Returns:
      timeoutSeconds
    • setTimeoutSeconds

      public void setTimeoutSeconds(Integer timeoutSeconds)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toIndentedString

      private String toIndentedString(Object o)
      Convert the given object to string with each line indented by 4 spaces (except the first line).