controls
Runtime operator controls: temporary overrides of configured switches.
A control's configured value is the platform's default and its permanent setting. An operator can override it for a bounded time — during an incident, with a reason — and the override expires on its own. Reading a control returns all three: what is configured, what is overridden, what is in force.
PlatformControlOut
pydantic-model
¶
Bases: BaseModel
One control: configured default, override if any, and what is in force.
Fields:
-
name(PlatformControlName) -
configured(bool) -
override(PlatformControlOverride | None) -
effective(bool)
PlatformControlOverride
pydantic-model
¶
Bases: BaseModel
An operator's override of a control, while it lasts.
Config:
from_attributes:True
Fields:
-
enabled(bool) -
reason(str) -
set_by(UUID) -
set_at(datetime) -
expires_at(datetime)
PlatformControlUpdate
pydantic-model
¶
Bases: BaseModel
Set a control's override.
Every override expires; the server bounds how far ahead expires_at may
lie. Setting a control that already has an override replaces it, which is
also how an override is extended.
Fields:
-
enabled(bool) -
reason(str) -
expires_at(AwareDatetime)
enabled
pydantic-field
¶
The value to apply until expiry.
expires_at
pydantic-field
¶
When the override ends and the configured value returns. Must lie in the future, within the server's maximum override length.
reason
pydantic-field
¶
Why. Recorded with the change and shown to other administrators.