IotHub
  1. alarm
IotHub
  • README
  • Update Record
  • token
    • createToken
      POST
    • destroyToken
      POST
  • customer
    • customerPage
      POST
    • customerTree
      POST
  • device
    • command
      • commandSend
      • commandInfoList
      • cutOilElectric
      • getConfig
    • devicePage
      POST
    • deviceTypes
      POST
    • deviceTypeInfo
      POST
    • deviceDataByDeviceIds
      POST
    • deviceDataByCustomerId
      POST
    • deviceTripInfoByTripId
      POST
    • deviceTripsByDeviceId
      POST
    • expandInfoByDeviceId
      POST
    • saveDeviceChannelName
      POST
  • fence
    • fencePage
      POST
    • fenceInfo
      POST
    • addFence
      POST
    • saveFence
      POST
    • delFence
      POST
    • fenceDevices
      POST
    • fenceDeviceUpdate
      POST
    • fenceDeviceDel
      POST
    • fenceDeviceAdd
      POST
  • push
    • README
  • video
    • H5 page
    • H5 Page-V2
    • liveVideo
    • playBackList
    • historicalUpload
    • playBack
    • replaySet
    • taskPage
    • taskDelete
    • getNodes
  • alarm
    • alarmTypeList
      POST
    • alarmFilePage
      POST
    • alarmFileByAlarmId
      POST
    • alarmHistoryPage
      POST
    • alarmPageByUser
      POST
  • audio
    • README
    • talk
    • talkPlus
  • gallery
    • filePageV2
    • filePage
    • deleteFile
    • capture
    • capturePage
  • fleet
    • faceRecordPage
  • gps
    • historyData
  • Protocol Analysis
    POST
  1. alarm

alarmPageByUser

Singapore
https://mettahub.mettaxiot.com/gps
Singapore
https://mettahub.mettaxiot.com/gps
POST
/v2/openapi/alarm/user/page

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.

Request

Header Params
Authorization
string 
required
Body Params application/json
pageSize
integer  | null 
optional
Default:
10
pageIndex
integer  | null 
optional
Default:
1
start
string  | null 
required
Start time,UTC = 0 yyyy-MM-dd HH:mm:ss
The query interval must be less than 30 days
end
string  | null 
required
End time,UTC = 0 yyyy-MM-dd HH:mm:ss
The query interval must be less than 30 days
alarmType
string  | null 
optional
alarmType split by , can be empty,default all
source from alarmTypeList
alarmType:acc、accOff、accOff...
Example
{
    "pageSize": "10",
    "pageIndex": "1",
    "start": "string",
    "end": "string",
    "alarmType": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mettahub.mettaxiot.com/gps/v2/openapi/alarm/user/page' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "pageSize": "10",
    "pageIndex": "1",
    "start": "string",
    "end": "string",
    "alarmType": "string"
}'

Responses

🟢200Success
application/json
Body
code
integer  | null 
optional
data
object (PageResult«ApiReportAlarmByUserVO») 
optional
records
array[object (ApiReportAlarmByUserVO) {12}]  | null 
optional
total
integer  | null 
optional
size
integer  | null 
optional
current
integer  | null 
optional
msg
string  | null 
optional
Example
{
  "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": ""
}
Modified at 2025-03-27 02:10:44
Previous
alarmHistoryPage
Next
README
Built with