The openstack_dashboard.usage.quotas ModuleΒΆ

class openstack_dashboard.usage.quotas.QuotaUsage[source]

Bases: dict

Tracks quota limit, used, and available for a given set of quotas.

add_quota(quota)[source]

Adds an internal tracking reference for the given quota.

get(key, default=None)[source]
tally(name, value)[source]

Adds to the “used” metric for the given quota.

update_available(name)[source]

Updates the “available” metric for the given quota.

openstack_dashboard.usage.quotas.enabled_quotas(request)[source]

Returns the list of quotas available minus those that are disabled

openstack_dashboard.usage.quotas.get_default_quota_data(request, disabled_quotas=None, tenant_id=None)[source]
openstack_dashboard.usage.quotas.get_disabled_quotas(request)[source]
openstack_dashboard.usage.quotas.get_tenant_quota_data(request, disabled_quotas=None, tenant_id=None)[source]
openstack_dashboard.usage.quotas.tenant_limit_usages(request)[source]
openstack_dashboard.usage.quotas.tenant_quota_usages(*args, **kwargs)[source]

Get our quotas and construct our usage object. If no tenant_id is provided, a the request.user.project_id is assumed to be used

Previous topic

The openstack_dashboard.usage Module

Next topic

The openstack_dashboard.usage.tables Module

Project Source

This Page