# Class Probe (0.16.1)

0.16.1 (latest) 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.19 0.9.1 0.8.1 0.7.1 0.6.0 0.5.0 0.4.2 0.3.0 0.2.1 0.1.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** |
| `initial_delay_seconds` | `int` Optional. Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. |
| `timeout_seconds` | `int` Optional. Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds. |
| `period_seconds` | `int` Optional. How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeout_seconds. |
| `failure_threshold` | `int` Optional. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. |
| `http_get` | `https://docs.cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.HTTPGetAction` Optional. HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified. This field is a member of `oneof`_ `probe_type`. |
| `tcp_socket` | `https://docs.cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.TCPSocketAction` Optional. TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified. This field is a member of `oneof`_ `probe_type`. |
| `grpc` | `https://docs.cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.GRPCAction` Optional. GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified. This field is a member of `oneof`_ `probe_type`. |