Query the device history alarms of the currently logged in user by page. The interface data is for devices that the user has permission to use, and does not include alarms for lower-level customer devices.
Authorization: ********************
{ "pageSize": "10", "pageIndex": "1", "start": "string", "end": "string", "alarmType": "string" }
curl --location --request POST 'https://mettahub.mettaxiot.com/gps/v2/openapi/alarm/user/page' \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data-raw '{ "pageSize": "10", "pageIndex": "1", "start": "string", "end": "string", "alarmType": "string" }'
{ "code": 0, "data": { "records": [ { "id": "", "deviceName": "", "deviceId": "", "alarmTs": "", "alarmTsEnd": "", "alarmType": "", "lat": 0.0, "lon": 0.0, "alarmText": 0.0, "serialNo": "", "fenceId": "", "fileNum": 0 } ], "total": 0, "size": 0, "current": 0 }, "msg": "" }