Class Probe (1.89.0)

Probe(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
exec_ google.cloud.aiplatform_v1.types.Probe.ExecAction
ExecAction probes the health of a container by executing a command. This field is a member of oneof_ probe_type.
http_get google.cloud.aiplatform_v1.types.Probe.HttpGetAction
HttpGetAction probes the health of a container by sending an HTTP GET request. This field is a member of oneof_ probe_type.
grpc google.cloud.aiplatform_v1.types.Probe.GrpcAction
GrpcAction probes the health of a container by sending a gRPC request. This field is a member of oneof_ probe_type.
tcp_socket google.cloud.aiplatform_v1.types.Probe.TcpSocketAction
TcpSocketAction probes the health of a container by opening a TCP socket connection. This field is a member of oneof_ probe_type.
period_seconds int
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'.
timeout_seconds int
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'.
failure_threshold int
Number of consecutive failures before the probe is considered failed. Defaults to 3. Minimum value is 1. Maps to Kubernetes probe argument 'failureThreshold'.
success_threshold int
Number of consecutive successes before the probe is considered successful. Defaults to 1. Minimum value is 1. Maps to Kubernetes probe argument 'successThreshold'.
initial_delay_seconds int
Number of seconds to wait before starting the probe. Defaults to 0. Minimum value is 0. Maps to Kubernetes probe argument 'initialDelaySeconds'.

Classes

ExecAction

ExecAction(mapping=None, *, ignore_unknown_fields=False, **kwargs)

ExecAction specifies a command to execute.

GrpcAction

GrpcAction(mapping=None, *, ignore_unknown_fields=False, **kwargs)

GrpcAction checks the health of a container using a gRPC service.

HttpGetAction

HttpGetAction(mapping=None, *, ignore_unknown_fields=False, **kwargs)

HttpGetAction describes an action based on HTTP Get requests.

HttpHeader

HttpHeader(mapping=None, *, ignore_unknown_fields=False, **kwargs)

HttpHeader describes a custom header to be used in HTTP probes

TcpSocketAction

TcpSocketAction(mapping=None, *, ignore_unknown_fields=False, **kwargs)

TcpSocketAction probes the health of a container by opening a TCP socket connection.

Methods

Probe

Probe(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields