puter.auth.getDetailedAppUsage()

Websites Puter Apps Node.js Workers

Get detailed usage statistics for an application.

Users can only see the usage of applications they have accessed before.

Syntax

puter.auth.getDetailedAppUsage(appId)

Parameters

appId (String) (required)

The id of the application.

Return value

A Promise that resolves to a DetailedAppUsage object containing resource usage statistics for the given application.

Example

<html>
  <body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
      puter.auth.getDetailedAppUsage(appId).then(function (result) {
        puter.print(`<pre>${JSON.stringify(result, null, 2)}</pre>`);
      });
    </script>
  </body>
</html>