Usage
Get computer usage
Metered Computer use over [from, to) by UTC day: managed desktop seconds running and sleeping, the kept volume (GiB × seconds held), and viewer media the relays forwarded over TURN, in total, by allocation mode, by day and per Computer, with screenshot storage beside them. Desktop time is metered by the pool controller every 30 s and TURN bytes by each relay every minute, so the newest minute may be missing. Per-Computer names are given only for Computers the caller can see.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
orgId*string
Query Parameters
from*string
Match
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$Format
date-timeto*string
Match
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$Format
date-timeResponse Body
application/json
application/json
curl -X GET "https://example.com/v1/orgs/string/usage/computers?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z"{ "from": "string", "to": "string", "totals": { "runningSeconds": -9007199254740991, "sleepingSeconds": -9007199254740991, "volumeGibSeconds": -9007199254740991, "relayedBytes": -9007199254740991 }, "allocations": [ { "runningSeconds": -9007199254740991, "sleepingSeconds": -9007199254740991, "volumeGibSeconds": -9007199254740991, "relayedBytes": -9007199254740991, "allocation": "string" } ], "days": [ { "runningSeconds": -9007199254740991, "sleepingSeconds": -9007199254740991, "volumeGibSeconds": -9007199254740991, "relayedBytes": -9007199254740991, "day": "string" } ], "computers": [ { "runningSeconds": -9007199254740991, "sleepingSeconds": -9007199254740991, "volumeGibSeconds": -9007199254740991, "relayedBytes": -9007199254740991, "computerId": "string", "name": "string", "kind": "string", "allocation": "string" } ], "screenshots": { "written": { "count": -9007199254740991, "bytes": -9007199254740991 }, "stored": { "count": -9007199254740991, "bytes": -9007199254740991 } }}