Skip to content

Commit 6a7acb0

Browse files
committed
expand Thing /usage/ docs
1 parent 2882744 commit 6a7acb0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/THINGS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,16 @@ $ curl https://metalab.at/things/keys/prusaxl -H "X-TOKEN: XXX"
2424
$ curl https://metalab.at/things/usage/prusaxl -H "X-TOKEN: XXX" -XPOST -d 'user=luto&kind=LOGIN'
2525
```
2626

27+
`user` is a mos user/member, identified by their name, see `/keys/` endpoint.
28+
2729
`kind` may be:
2830

2931
* `LOGIN`, user started using a machine
3032
* `LOGOUT`, user stopped using a machine
3133
* `USAGE_MEMBER`, user used the machine for X seconds, for a member
3234
* `USAGE_NONMEMBER`, user used the machine for X seconds, for a non-member
3335

34-
Additionally, supply `usage_seconds=` for `USAGE_` kinds.
36+
Additionally, supply `usage_seconds=` as an integer for `USAGE_` kinds.
3537

3638
## Getting stats for a Thing
3739

0 commit comments

Comments
 (0)