{"templateId":"markdown","versions":[{"version":"9.0","label":"9.0","link":"/classes/whmcs/usagebilling/contracts/metrics/providerinterface","default":true,"active":true,"folderId":"9d7dc099"},{"version":"8.13","label":"8.13","link":"/classes/8.13/whmcs/usagebilling/contracts/metrics/providerinterface","default":false,"active":false,"folderId":"9d7dc099"}],"sharedDataIds":{"sidebar":"sidebar-classes/@8.13/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"WHMCS\\UsageBilling\\Contracts\\Metrics\\ProviderInterface","description":"Developer documentation for the WHMCS API — the","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"whmcsusagebillingcontractsmetricsproviderinterface","__idx":0},"children":["WHMCS\\UsageBilling\\Contracts\\Metrics\\ProviderInterface"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Interface"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ProviderInterface"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"methods","__idx":1},"children":["Methods"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"metrics","__idx":2},"children":["metrics"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"php","header":{"controls":{"copy":{}}},"source":"public function metrics()\n","lang":"php"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All metrics supported by provider, keyed by metric system name"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Returns"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MetricInterface[]"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"tenantusage","__idx":3},"children":["tenantUsage"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"php","header":{"controls":{"copy":{}}},"source":"public function tenantUsage($tenant)\n","lang":"php"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Returns"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MetricInterface[]"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"usage","__idx":4},"children":["usage"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"php","header":{"controls":{"copy":{}}},"source":"public function usage()\n","lang":"php"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All usage of the provider, keyed by tenant id"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Returns"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["array"]}]}]},"headings":[{"value":"WHMCS\\UsageBilling\\Contracts\\Metrics\\ProviderInterface","id":"whmcsusagebillingcontractsmetricsproviderinterface","depth":1},{"value":"Methods","id":"methods","depth":2},{"value":"metrics","id":"metrics","depth":3},{"value":"tenantUsage","id":"tenantusage","depth":3},{"value":"usage","id":"usage","depth":3}],"frontmatter":{"title":"WHMCS\\UsageBilling\\Contracts\\Metrics\\ProviderInterface","seo":{"title":"WHMCS\\UsageBilling\\Contracts\\Metrics\\ProviderInterface"}},"lastModified":"2026-08-05T14:37:16.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/classes/whmcs/usagebilling/contracts/metrics/providerinterface","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}