TrafficTargetResponse

data class TrafficTargetResponse(val configurationName: String, val latestRevision: Boolean, val percent: Int, val revisionName: String, val tag: String, val url: String)

TrafficTarget holds a single entry of the routing table for a Route.

Constructors

Link copied to clipboard
fun TrafficTargetResponse(configurationName: String, latestRevision: Boolean, percent: Int, revisionName: String, tag: String, url: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Deprecated Not supported in Cloud Run. It must be empty.

Link copied to clipboard

Uses the "status.latestReadyRevisionName" of the Service to determine the traffic target. When it changes, traffic will automatically migrate from the prior "latest ready" revision to the new one. This field must be false if RevisionName is set. This field defaults to true otherwise. If the field is set to true on Status, this means that the Revision was resolved from the Service's latest ready revision.

Link copied to clipboard

Percent specifies percent of the traffic to this Revision or Configuration. This defaults to zero if unspecified.

Link copied to clipboard

Points this traffic target to a specific Revision. This field is mutually exclusive with latest_revision.

Link copied to clipboard
val tag: String

Tag is used to expose a dedicated url for referencing this target exclusively.

Link copied to clipboard
val url: String

URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. https://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)