Skip to content

Credit usage#

About#

Contains information about credit usage

Fields#

Name Type Required Description
perDeployedAccounts array Yes the number of credits used from credits available to all deployed accounts
perAccount array Yes the number of credits used from credits available for one account
perUserOnServer array Yes the number of credits used from credits available on this server

Schema of array items

Name Type Required Description
periodInSeconds number Yes rate limiting period in seconds
creditsUsed number Yes the number of used credits for the period
creditsLeft number Yes remaining credits
creditsAvailable number Yes the number of all available credits for the period

Example#

{
  "perDeployedAccounts": [
    {
      "periodInSeconds": 1,
      "creditsUsed": 50,
      "creditsLeft": 1950,
      "creditsAvailable": 2000
    },
    {
      "periodInSeconds": 60,
      "creditsUsed": 50,
      "creditsLeft": 17950,
      "creditsAvailable": 18000
    },
    {
      "periodInSeconds": 3600,
      "creditsUsed": 50,
      "creditsLeft": 179950,
      "creditsAvailable": 180000
    },
    {
      "periodInSeconds": 21600,
      "creditsUsed": 50,
      "creditsLeft": 431950,
      "creditsAvailable": 432000
    }
  ],
  "perAccount": [
    {
      "periodInSeconds": 1,
      "creditsUsed": 50,
      "creditsLeft": 1950,
      "creditsAvailable": 2000
    },
    {
      "periodInSeconds": 60,
      "creditsUsed": 50,
      "creditsLeft": 17950,
      "creditsAvailable": 18000
    },
    {
      "periodInSeconds": 3600,
      "creditsUsed": 50,
      "creditsLeft": 179950,
      "creditsAvailable": 180000
    },
    {
      "periodInSeconds": 21600,
      "creditsUsed": 50,
      "creditsLeft": 431950,
      "creditsAvailable": 432000
    }
  ],
  "perUserOnServer": [
    {
      "periodInSeconds": 10,
      "creditsUsed": 50,
      "creditsLeft": 4950,
      "creditsAvailable": 5000
    }
  ]
}

Usages#