alarm-comment-controller
Get Alarm comments (getAlarmComments)
Returns a page of alarm comments for specified alarm. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details.
Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
get/api/alarm/{alarmId}/comment
Request
- Base URLhttps://demo.thingsboard.io
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
alarmIdstring required
A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
Query parameters
pageSizeinteger required
Maximum amount of entities in a one page
pageinteger required
Sequence number of page starting from 0
sortProperty'createdTime' | 'id'
Property of entity to sort by
sortOrder'ASC' | 'DESC'
Sort order. ASC (ASCENDING) or DESC (DESCENDING)
Response
OK
Example response
{
"data": [
{
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9"
},
"createdTime": 1634058704567,
"alarmId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "ALARM"
},
"userId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "USER"
},
"type": "SYSTEM/OTHER",
"comment": {},
"firstName": "John",
"lastName": "Brown",
"email": "johnBrown@gmail.com",
"name": "Please take a look"
}
]
}Changes
No recorded changes to this operation across all 2 revisions of this API.