Class: Google::Cloud::AIPlatform::V1::Probe

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/aiplatform/v1/model.rb

Overview

Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.

Defined Under Namespace

Classes: ExecAction

Instance Attribute Summary collapse

Instance Attribute Details

#exec::Google::Cloud::AIPlatform::V1::Probe::ExecAction

Returns ExecAction probes the health of a container by executing a command.

Returns:



852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
# File 'proto_docs/google/cloud/aiplatform/v1/model.rb', line 852

class Probe
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # ExecAction specifies a command to execute.
  # @!attribute [rw] command
  #   @return [::Array<::String>]
  #     Command is the command line to execute inside the container, the working
  #     directory for the command is root ('/') in the container's filesystem.
  #     The command is simply exec'd, it is not run inside a shell, so
  #     traditional shell instructions ('|', etc) won't work. To use a shell, you
  #     need to explicitly call out to that shell. Exit status of 0 is treated as
  #     live/healthy and non-zero is unhealthy.
  class ExecAction
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#period_seconds::Integer

Returns How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Must be less than timeout_seconds.

Maps to Kubernetes probe argument 'periodSeconds'.

Returns:

  • (::Integer)

    How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Must be less than timeout_seconds.

    Maps to Kubernetes probe argument 'periodSeconds'.



852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
# File 'proto_docs/google/cloud/aiplatform/v1/model.rb', line 852

class Probe
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # ExecAction specifies a command to execute.
  # @!attribute [rw] command
  #   @return [::Array<::String>]
  #     Command is the command line to execute inside the container, the working
  #     directory for the command is root ('/') in the container's filesystem.
  #     The command is simply exec'd, it is not run inside a shell, so
  #     traditional shell instructions ('|', etc) won't work. To use a shell, you
  #     need to explicitly call out to that shell. Exit status of 0 is treated as
  #     live/healthy and non-zero is unhealthy.
  class ExecAction
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#timeout_seconds::Integer

Returns Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Must be greater or equal to period_seconds.

Maps to Kubernetes probe argument 'timeoutSeconds'.

Returns:

  • (::Integer)

    Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Must be greater or equal to period_seconds.

    Maps to Kubernetes probe argument 'timeoutSeconds'.



852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
# File 'proto_docs/google/cloud/aiplatform/v1/model.rb', line 852

class Probe
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # ExecAction specifies a command to execute.
  # @!attribute [rw] command
  #   @return [::Array<::String>]
  #     Command is the command line to execute inside the container, the working
  #     directory for the command is root ('/') in the container's filesystem.
  #     The command is simply exec'd, it is not run inside a shell, so
  #     traditional shell instructions ('|', etc) won't work. To use a shell, you
  #     need to explicitly call out to that shell. Exit status of 0 is treated as
  #     live/healthy and non-zero is unhealthy.
  class ExecAction
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end