TrafficRoutingRuleUpsert¶
- class baseten.client.managementapi.TrafficRoutingRuleUpsert(*, id=None, type, targets, percent_traffic, expires_at, sampling_mode, propagate_client_cancellation)¶
Bases:
BaseModel- Parameters:
id (str | None)
type (Literal['SHADOW'] | str)
targets (Annotated[list[TrafficRoutingTargetUpsert], MinLen(min_length=1), MaxLen(max_length=1)])
expires_at (AwareDatetime)
sampling_mode (Literal['RANDOM', 'USER_SESSION'] | str)
propagate_client_cancellation (bool)
- model_config = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].