Difference between revisions of "NXSL:GetMaxDCIValue"
Jump to navigation
Jump to search
(Created page with "__NOTOC__ Get the maximum value of the DCI item for the given period. The item value must be of either integer or double type. == Syntax == GetMaxDCIValue(''node'',''dciitem...") |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
Get the maximum value of the DCI item for the given period. The item value must be of either integer or double type. | Get the maximum 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 == | == Syntax == |
Revision as of 19:22, 26 July 2012
Get the maximum 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
GetMaxDCIValue(node,dciitem,fromtime,totime);
Parameters
node Node object to calculate the maximum DCI value for. dciitem DCI item id (integer). fromtime Start of the peridod (timestamp). totime End of the peridod (timestamp).
Return Value
Maximum value or null on failure.
Examples
sub main()
{
value = GetMaxDCIValue(FindObject("MYWORKPC"), 18, 0, time()); // from the beginning till now
trace(1, "Processor max load ". value . "%");
}