MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / usage

Method usage

nodedb/src/control/security/tenant.rs:249–251  ·  view source on GitHub ↗

Get usage stats for a tenant.

(&self, tenant_id: TenantId)

Source from the content-addressed store, hash-verified

247
248 /// Get usage stats for a tenant.
249 pub fn usage(&self, tenant_id: TenantId) -> Option<&TenantUsage> {
250 self.usage.get(&tenant_id)
251 }
252
253 pub fn tenant_count(&self) -> usize {
254 self.usage.len()

Callers 4

show_usage_for_tenantFunction · 0.80
tenant_rowsFunction · 0.80

Calls 1

getMethod · 0.45

Tested by 2

tenant_rowsFunction · 0.64