# Class TrackingMode (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

    TrackingMode(value)

Specifies the key used for connection tracking. There are two
options:

::

- PER_CONNECTION: This is the default mode. The Connection Tracking is performed as per the Connection Key (default Hash Method) for the specific protocol.
- PER_SESSION: The Connection Tracking is performed as per the configured Session Affinity. It matches the configured Session Affinity.

For more details, see `Tracking Mode for Network Load
Balancing <https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#tracking-mode>`**and `Tracking Mode for Internal TCP/UDP Load
Balancing <https://cloud.google.com/load-balancing/docs/internal#tracking-mode>`**.

| ## Enums ||
|---|---|
| **Name** | **Description** |
| `UNDEFINED_TRACKING_MODE` | A value indicating that the enum field is not set. |
| `INVALID_TRACKING_MODE` | No description available. |
| `PER_CONNECTION` | No description available. |
| `PER_SESSION` | No description available. |