buildgrid.server.metering.config module

class buildgrid.server.metering.config.IdentityPart(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: str, Enum

ROOT = 'root'
INSTANCE = 'instance'
WORKFLOW = 'workflow'
ACTOR = 'actor'
SUBJECT = 'subject'
class buildgrid.server.metering.config.ThrottlingConfig(*, part: IdentityPart, default: Usage, next: dict[str, ThrottlingConfig] | None)

Bases: BaseModel

part: IdentityPart
default: Usage
next: dict[str, ThrottlingConfig] | None
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].