1. alarm
IotHub
  • README
  • 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
    • syncChannelMosaic
      POST
    • deviceList
      POST
    • saveChannelMosaic
      POST
    • deviceTraffic
      POST
    • deviceTrafficDetail
      POST
    • deviceSensorData
      POST
    • expandInfoByDeviceId
      POST
    • saveDeviceChannelName
      POST
    • Device Awaken Command
      POST
    • deviceDltData
      POST
  • fence
    • device
      • Add or update fences
      • Update the fence configuration file
      • Remove the fence
      • Re issue task command
      • Cancel upload task
      • Get the tasks
    • fencePage
    • fenceInfo
    • addFence
    • saveFence
    • delFence
    • fenceDevices
    • fenceDeviceUpdate
    • fenceDeviceDel
    • fenceDeviceAdd
  • push&Webhook
    • README
  • video
    • history
      • README
      • H5 Page
      • custom upload
        • customHistoricalUploadStop
        • customHistoricalUpload
      • playBackList
      • historicalUpload
      • playBack
      • replaySet
      • taskPage
      • taskStop
      • taskDelete
    • live
      • README
      • H5 Page-V2[Recommend]
      • H5 page
      • liveVideo
      • liveVideoControl
    • task
      • Creates a historical video scheduled task.
      • Deletes a historical video scheduled task.
      • Queries historical video scheduled tasks by page.
      • Queries a historical video scheduled task by ID.
    • getNodes
  • alarm
    • Alert Types
    • alarmTypeList
      POST
    • alarmFilePage
      POST
    • alarmFileByAlarmId
      POST
    • alarmHistoryPage
      POST
    • alarmPageByUser
      POST
    • alarmFileRecordReUpload
      POST
  • audio
    • README
    • talk「Deprecated」
    • talkPlus
  • gallery
    • filePageV2
    • filePage
    • deleteFile
    • capture
    • capturePage
    • captureRecord
  • fleet
    • Passenger Total Report
    • Device Face Save
    • Face Record Query
    • Device Face Delete
    • RFID Record Query
    • Device Face Query
    • Paginated query for driver face scheduled task.
    • Get driver face scheduled task information.
    • Delete driver face scheduled task by task ID.
  • gps
    • historyData
  • dev
    • playBackM3u8
  • 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

Authorization
Add parameter in header
Authorization
Example:
Authorization: ********************
Header Params

Body Params application/json

Example
{
    "pageSize": "10",
    "pageIndex": "1",
    "start": "string",
    "end": "string",
    "alarmType": "string"
}

Request Code 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 'https://mettahub.mettaxiot.com/gps/v2/openapi/alarm/user/page' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "pageSize": "10",
    "pageIndex": "1",
    "start": "string",
    "end": "string",
    "alarmType": "string"
}'

Responses

🟢200Success
application/json
Bodyapplication/json

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
alarmFileRecordReUpload
Built with