TrafficRoutingRule¶
- class baseten.client.managementapi.TrafficRoutingRule(*, id, type, targets, percent_traffic, expires_at, sampling_mode, propagate_client_cancellation)¶
Bases:
BaseModel- Parameters:
id (str)
type (Literal['SHADOW'] | str)
targets (list[TrafficRoutingTarget])
percent_traffic (int)
expires_at (AwareDatetime)
sampling_mode (Literal['RANDOM', 'USER_SESSION'] | str)
propagate_client_cancellation (bool)
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].