« Back to Product

Documentation

AC_GetAggregationType

Require: IP-Symcon >= 3.0

 int AC_GetAggregationType (int $InstanceID, int $VariableID) 

Parameters

InstanceID

ID for the archive

VariableID

ID of the variable to be queried

Returns

An integer that represents the type of aggregation.

Return value Description
0 Standard
1 Counter

Description

This function queries the aggregation type of the variable with the ID VariableID and returns it as an integer.

Example

// The variable is aggregated as a counter
echo AC_GetAggregationType(39147 /*[Archive]*/, 53716 /*[TestVariableCounter]*/);
 
// Output: 1
Any questions?