buildgrid.server.metering.metering module
- class buildgrid.server.metering.metering.Metering(redis: RedisProvider, throttling_config: ThrottlingConfig, throttling_data_expiration_sec: int = 600, operation_deduplication_period_sec: int = 30)
Bases:
objectDirect Redis-backed metering service.
Provides get_throttling/put_usage with the same interface as the deprecated SyncMeteringServiceClient, but talks to Redis directly.
- get_throttling(identity: Identity) GetThrottlingResponse