Get started
  • English
  • 简体中文
Official Site
Get started
  • English
  • 简体中文
Official Site
  • Get started
  • Concepts
  • Guides
  • Device capabilities & events
    • Browse by device type
    • Device capabilities
      • Common methods
      • Detection and alarms
      • Image
      • PTZ
      • Light
      • Recording
      • Audio
      • Media
      • Network
      • Power
      • Privacy
      • Call
      • Storage
      • System
        • Diagnostics
          • system.diagnostics.loginTime (Read login timestamp update)
          • system.diagnostics.maxOnline (Read maximum online duration)
          • system.diagnostics.state (Read device boot state)
          • system.diagnostics.heartbeat (Heartbeat)
          • system.diagnostics.selfTest (One-tap self-test)
          • system.diagnostics.booted (Device booted)
          • system.diagnostics.rebootState (Read reboot state)
          • system.diagnostics.rebootState (Set reboot state)
        • Information
        • Maintenance
        • Time
        • Upgrade
        • Credentials
      • Algorithm
      • Maintenance
      • Control
    • Events overview
    • Permission codes
    • Capability error codes
    • Alarm and capability messages
    • Capability FAQ
    • Legacy ability and push types
  • API reference
  • SDK and tools
  • Solutions
  • Platform and support
On this page
What it does
Reported fields
Example
Minimum permission

system.diagnostics.heartbeat (Heartbeat)

system.diagnostics.heartbeat: Heartbeat

system.diagnostics.heartbeat · device scope · message query permission Alarm

What it does

Reported on heartbeat. msgType is system.diagnostics.heartbeat (legacy everyMinEvent/19002 merged into this page). Subscribe to capabilityEvent; search via the event catalog and history/search APIs. See Event catalog, Overview and common payload, and Receive device messages and setMessageCallback.

Reported fields

outputData may be {} or contain only the optional index. Platform fields: Overview and common payload.

NameDescriptionTypeRequiredValues
indexIndex. Range 0–10000, step 1.intno0–10000, step 1

Example

{
 "msgType": "system.diagnostics.heartbeat",
 "deviceId": "TESTIPC000012345",
 "productId": "56WGTET2",
 "outputData": {
 "index": 0
 },
 "time": 1673406989,
 "localTime": "20230111T111629",
 "alarmId": "116257862023505xxxx"
}

Minimum permission

The administrator does not need an extra permission on a device they bound. A shared device needs the alarm message permission. A bound sub-user does not. When a sub-account queries messages for this event, each message is checked against the capability row share/sub codes (system.diagnostics is usually Config). list / search filters out events without permission. Diagnostics.

system.diagnostics.state (Read device boot state)
system.diagnostics.selfTest (One-tap self-test)