Require: IP-Symcon >= 5.5
boolean AC_SetCounterIgnoreZeros (int $InstanceID, int $VariableID, boolean $IgnoreZeros)
ID for the archive
ID of the variable to be queried
True if zeros and negative values are to be ignored, otherwise False.
This function changes the property for ignoring zeros and negative values of the variable with the ID VariableID in the Archive Control with the ID InstanceID to active.
The function only works with variables that are logged as counters. Zeros and negative values are still logged, but are not included in the aggregation.
// Sets the property of the "54321" tag in the Archive Control "12345" to ignore zeros and negative values to true
AC_SetCounterIgnoreZeros(12345, 54321, true);