NXSL:GetMinDCIValue

Revision as of 17:43, 2 February 2013 by Victor (talk | contribs)

Get the minimum value of the DCI for the given period. The DCI value must be of numeric type.

Since: 1.2.1

Syntax

GetMinDCIValue(node, dciId, from, to);


Parameters

node Node object to calculate the mininum DCI value for.
dciId DCI item id (integer).
from Start of the peridod (as UNIX timestamp).
to End of the peridod (as UNIX timestamp).

Return Value

Minimum value or null on failure.

Examples

sub main()
{
    value = GetMinDCIValue(FindObject("MYWORKPC"), 18, 0, time()); // from the beginning till now
    trace(1, "Processor minimum load ". value . "%");
}