Class: Google::Apis::RunV1::Probe
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::Probe
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/run_v1/classes.rb,
generated/google/apis/run_v1/representations.rb,
generated/google/apis/run_v1/representations.rb
Overview
Cloud Run fully managed: not supported Cloud Run for Anthos: supported Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
Instance Attribute Summary collapse
-
#exec ⇒ Google::Apis::RunV1::ExecAction
Cloud Run fully managed: not supported Cloud Run for Anthos: supported ExecAction describes a "run in container" action.
-
#failure_threshold ⇒ Fixnum
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Minimum consecutive failures for the probe to be considered failed after having succeeded.
-
#http_get ⇒ Google::Apis::RunV1::HttpGetAction
Cloud Run fully managed: not supported Cloud Run for Anthos: supported HTTPGetAction describes an action based on HTTP Get requests.
-
#initial_delay_seconds ⇒ Fixnum
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Number of seconds after the container has started before liveness probes are initiated.
-
#period_seconds ⇒ Fixnum
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported How often (in seconds) to perform the probe.
-
#success_threshold ⇒ Fixnum
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Minimum consecutive successes for the probe to be considered successful after having failed.
-
#tcp_socket ⇒ Google::Apis::RunV1::TcpSocketAction
Cloud Run fully managed: not supported Cloud Run for Anthos: supported TCPSocketAction describes an action based on opening a socket Corresponds to the JSON property
tcpSocket
. -
#timeout_seconds ⇒ Fixnum
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Number of seconds after which the probe times out.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Probe
constructor
A new instance of Probe.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Probe
Returns a new instance of Probe.
1923 1924 1925 |
# File 'generated/google/apis/run_v1/classes.rb', line 1923 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exec ⇒ Google::Apis::RunV1::ExecAction
Cloud Run fully managed: not supported Cloud Run for Anthos: supported
ExecAction describes a "run in container" action.
Corresponds to the JSON property exec
1871 1872 1873 |
# File 'generated/google/apis/run_v1/classes.rb', line 1871 def exec @exec end |
#failure_threshold ⇒ Fixnum
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos:
supported Minimum consecutive failures for the probe to be considered failed
after having succeeded. Defaults to 3. Minimum value is 1.
Corresponds to the JSON property failureThreshold
1878 1879 1880 |
# File 'generated/google/apis/run_v1/classes.rb', line 1878 def failure_threshold @failure_threshold end |
#http_get ⇒ Google::Apis::RunV1::HttpGetAction
Cloud Run fully managed: not supported Cloud Run for Anthos: supported
HTTPGetAction describes an action based on HTTP Get requests.
Corresponds to the JSON property httpGet
1884 1885 1886 |
# File 'generated/google/apis/run_v1/classes.rb', line 1884 def http_get @http_get end |
#initial_delay_seconds ⇒ Fixnum
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos:
supported Number of seconds after the container has started before liveness
probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/
pods/pod-lifecycle#container-probes
Corresponds to the JSON property initialDelaySeconds
1892 1893 1894 |
# File 'generated/google/apis/run_v1/classes.rb', line 1892 def initial_delay_seconds @initial_delay_seconds end |
#period_seconds ⇒ Fixnum
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos:
supported How often (in seconds) to perform the probe. Default to 10 seconds.
Minimum value is 1.
Corresponds to the JSON property periodSeconds
1899 1900 1901 |
# File 'generated/google/apis/run_v1/classes.rb', line 1899 def period_seconds @period_seconds end |
#success_threshold ⇒ Fixnum
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos:
supported 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.
Corresponds to the JSON property successThreshold
1907 1908 1909 |
# File 'generated/google/apis/run_v1/classes.rb', line 1907 def success_threshold @success_threshold end |
#tcp_socket ⇒ Google::Apis::RunV1::TcpSocketAction
Cloud Run fully managed: not supported Cloud Run for Anthos: supported
TCPSocketAction describes an action based on opening a socket
Corresponds to the JSON property tcpSocket
1913 1914 1915 |
# File 'generated/google/apis/run_v1/classes.rb', line 1913 def tcp_socket @tcp_socket end |
#timeout_seconds ⇒ Fixnum
(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos:
supported 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
Corresponds to the JSON property timeoutSeconds
1921 1922 1923 |
# File 'generated/google/apis/run_v1/classes.rb', line 1921 def timeout_seconds @timeout_seconds end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 |
# File 'generated/google/apis/run_v1/classes.rb', line 1928 def update!(**args) @exec = args[:exec] if args.key?(:exec) @failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold) @http_get = args[:http_get] if args.key?(:http_get) @initial_delay_seconds = args[:initial_delay_seconds] if args.key?(:initial_delay_seconds) @period_seconds = args[:period_seconds] if args.key?(:period_seconds) @success_threshold = args[:success_threshold] if args.key?(:success_threshold) @tcp_socket = args[:tcp_socket] if args.key?(:tcp_socket) @timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds) end |