File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,16 @@ $ curl https://metalab.at/things/keys/prusaxl -H "X-TOKEN: XXX"
24
24
$ curl https://metalab.at/things/usage/prusaxl -H "X-TOKEN: XXX" -XPOST -d 'user=luto&kind=LOGIN'
25
25
```
26
26
27
+ ` user ` is a mos user/member, identified by their name, see ` /keys/ ` endpoint.
28
+
27
29
` kind ` may be:
28
30
29
31
* ` LOGIN ` , user started using a machine
30
32
* ` LOGOUT ` , user stopped using a machine
31
33
* ` USAGE_MEMBER ` , user used the machine for X seconds, for a member
32
34
* ` USAGE_NONMEMBER ` , user used the machine for X seconds, for a non-member
33
35
34
- Additionally, supply ` usage_seconds= ` for ` USAGE_ ` kinds.
36
+ Additionally, supply ` usage_seconds= ` as an integer for ` USAGE_ ` kinds.
35
37
36
38
## Getting stats for a Thing
37
39
You can’t perform that action at this time.
0 commit comments