Skip to content

Heartbeat

A heartbeat sent at a fixed interval from a device.

Collected by HeartbeatProbe for the DeviceSamplingPackage.HEARTBEAT measure. Useful for calculating sampling coverage over time.

Inheritance
Annotations

Constructors

Heartbeat.fromJson

Heartbeat.fromJson(
  1. Map<String, dynamic> json
)

Heartbeat

Heartbeat({
  1. required String deviceType,
  2. required String deviceRoleName,
})

Properties

deviceRoleName

String deviceRoleName
getter/setter pair

The role name of the device in the protocol.

deviceType

String deviceType
getter/setter pair

The type of device sending the heartbeat, e.g. the CARP type name of the Smartphone device.

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.