Share via


DiagnosticsTelemetryModule.AddHeartbeatProperty Method

Definition

Add a new Heartbeat property to the payload sent with each heartbeat.

To update the value of the property you are adding to the heartbeat, SetHeartbeatProperty(String, String, Nullable<Boolean>).

Note that you cannot add a HeartbeatProperty with a name that already exists in the Heartbeat payload, including (but not limited to) the name of SDK-default items.

public bool AddHeartbeatProperty (string propertyName, string propertyValue, bool isHealthy);
abstract member AddHeartbeatProperty : string * string * bool -> bool
override this.AddHeartbeatProperty : string * string * bool -> bool
Public Function AddHeartbeatProperty (propertyName As String, propertyValue As String, isHealthy As Boolean) As Boolean

Parameters

propertyName
String

Name of the heartbeat value to add.

propertyValue
String

Current value of the heartbeat value to add.

isHealthy
Boolean

Flag indicating whether or not the property represents a healthy value.

Returns

True if the new payload item is successfully added, false otherwise.

Implements

Applies to