oslo_limit.limit module¶
- class oslo_limit.limit.Enforcer(usage_callback)¶
Bases:
object
- enforce(project_id, deltas, resource_filters=None)¶
Check resource usage against limits and request deltas.
- Parameters:
project_id (string) – The project to check usage and enforce limits against.
deltas (dictionary) – An dictionary containing resource names as keys and requests resource quantities as values.
resource_filters – A list of strings containing the resource names to filter the return values of the usage_callback. This is a performance optimization in the event the caller doesn’t want the usage_callback to collect all resources owned by the service. By default, no resources will be filtered.