reportUsage
POST/installation/v1/usage
The usage of the installation's hubs on one UTC day, today or one of the 35 days before, sent once a day after midnight UTC and repeated until it is taken; a repeat of a day replaces it. Each hub is one the installation is to run or delete: the usage of a hub's last day is reported before its deletion. Read by the vendor's billing (listUsage).
Request
Responses
- 200
- 204
- 422
- 426
The usage of the hubs not listed stored; each hub listed refused alone (object.not_found: a hub that is not the installation's, a hub deleted since the day too). A repeat refuses it again, so the client takes the day as reported.
Every hub's usage stored
request.invalid: a day out of range, no hubs or too many, or a negative count; nothing is stored
hub.update_required: the hub's version is outside the versions the cloud accepts. Nothing was applied; the hub raises a self-alert and uses its local fallback channel (docs/architecture.md §5).