C-DEngine 5.105

TheCDEKPIs..::..IncrementKPI Method (String, Int64, Boolean)

Increments an existing KPI by name by a given amount. If the KPI does not exist, a new one will be created with the given value.

Namespace:  nsCDEngine.BaseClasses
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static void IncrementKPI(
	string name,
	long value,
	bool dontReset
)
Public Shared Sub IncrementKPI ( _
	name As String, _
	value As Long, _
	dontReset As Boolean _
)
public:
static void IncrementKPI(
	String^ name, 
	long long^ value, 
	bool^ dontReset
)

Parameters

name
Type: String
Name (key) of the KPI to increment
value
Type: Int64
The value to add to the KPI
dontReset
Type: Boolean
If true and the KPI does not exist, the new KPI created will never be reset to zero and always increase. This means that a separatae "Total" property will not be calculated when harvested by the NodeHost.