Class TrafficTarget (0.7.1) Stay organized with collections Save and categorize content based on your preferences.
TrafficTarget(mapping=None,*,ignore_unknown_fields=False,**kwargs)Holds a single traffic routing entry for the Service.Allocations can be done to a specific Revision name, or pointingto the latest Ready Revision.
Attributes | |
|---|---|
| Name | Description |
type_ | google.cloud.run_v2.types.TrafficTargetAllocationTypeThe allocation type for this traffic target. |
revision | strRevision to which to send this portion of traffic, if traffic allocation is by revision. |
percent | intSpecifies percent of the traffic to this Revision. This defaults to zero if unspecified. |
tag | strIndicates a string to be part of the URI to exclusively reference this target. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-22 UTC.