counter.types
The counter.types command is used to get the available types of system counter records.
TR50 Request
{
"1": {
"command": "counter.types"
}
}
TR50 Response
If the command is sent successfully a success message and the property value are returned. Otherwise, an error and error message will be returned.
{
"1": {
"success": true,
"params": {
"types": [
"api.global.day",
"trigger.global.hour",
"api.org.day",
"storage.org.hour",
"trigger.id.hour",
"trigger.org.day",
"thing.global.day",
"api.global.hour",
"api.whoami.hour",
"storage.global.hour",
"api.whoami.day",
"trigger.global.day",
"api.org.hour",
"trigger.org.hour",
"thing.org.day"
]
}
}
}
Response Parameters
Name |
Type |
Description |
---|---|---|
types |
Array |
Counter types that can be searched. |
Counter Types
Type |
Description |
---|---|
api.global.day |
Global API usage by day. |
api.global.hour |
Global API usage by hour. |
api.org.day |
Organization API usage by day. |
api.org.hour |
Organization API usage by hour. |
api.whoami.day |
User/Thing API usage by day. |
api.whoami.hour |
User/Thing API usage by hour. |
storage.global.hour |
Global storage by hour. |
storage.org.hour |
Organization storage by hour. |
thing.global.day |
Global count of things by day. |
thing.org.day |
Organization count of things by day. |
trigger.global.day |
Global trigger activity by day. |
trigger.global.hour |
Global trigger activity by hour. |
trigger.id.hour |
Trigger activity by hour. |
trigger.org.day |
Organization trigger activity by day. |
trigger.org.hour |
Organization trigger activity by hour. |