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...") |
m (Text replacement - "^" to "{{deprecated}}") |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | {{deprecated}}__NOTOC__ | ||
Get the maximum value of the DCI | Get the maximum value of the DCI for the given period. The DCI value must be of numeric type. | ||
'''Since:''' 1.2.1 | |||
== Syntax == | == Syntax == | ||
GetMaxDCIValue(''node'','' | GetMaxDCIValue(''node'', ''dciId'', ''from'', ''to''); | ||
Line 13: | Line 15: | ||
| ''node'' || [[NXSL:Node|Node]] object to calculate the maximum DCI value for. | | ''node'' || [[NXSL:Node|Node]] object to calculate the maximum DCI value for. | ||
|- | |- | ||
| '' | | ''dciId'' || DCI item id (integer). | ||
|- | |- | ||
| '' | | ''from'' || Start of the period (as [http://en.wikipedia.org/wiki/Unix_time UNIX timestamp]). | ||
|- | |- | ||
| '' | | ''to'' || End of the period (as [http://en.wikipedia.org/wiki/Unix_time UNIX timestamp]). | ||
|} | |} | ||
Latest revision as of 16:13, 13 September 2022
This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide) |
Get the maximum value of the DCI for the given period. The DCI value must be of numeric type.
Since: 1.2.1
Syntax
GetMaxDCIValue(node, dciId, from, to);
Parameters
node Node object to calculate the maximum DCI value for. dciId DCI item id (integer). from Start of the period (as UNIX timestamp). to End of the period (as UNIX 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 . "%");
}