Skip to content

TargetTrafficSplitEntry

Structure Class

TargetTrafficSplitEntry dataclass

Bases: _SerdeShape

An entry in a target traffic split configuration.

Attributes

description class-attribute instance-attribute
description: str | None = ...

The description of this traffic split variant.

fallback class-attribute instance-attribute
fallback: Fallback | None = ...

The fallback configuration for this variant. Supported only for inference targets.

metadata class-attribute instance-attribute
metadata: dict[str, str] | None = ...

Key-value metadata associated with this traffic split variant.

model class-attribute instance-attribute
model: str | None = ...

The model ID to send to the target for this variant. Supported only for inference targets. If you don't specify a model, the gateway sends the model from the original request.

name instance-attribute
name: str

The name of this traffic split variant.

target_name instance-attribute
target_name: str

The name of the target to route traffic to.

weight instance-attribute
weight: int

The percentage of traffic to route to this variant.