NXSL:GetMinDCIValue

From NetXMS Wiki
Revision as of 19:22, 26 July 2012 by Victor (talk | contribs)
Jump to navigation Jump to search

Get the minimum value of the DCI item for the given period. The item value must be of either integer or double type.

Since: 1.2.1

Syntax

GetMinDCIValue(node,dciitem,fromtime,totime);


Parameters

node Node object to calculate the mininum DCI value for.
dciitem DCI item id (integer).
fromtime Start of the peridod (timestamp).
totime End of the peridod (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 . "%");
}