Difference between revisions of "NXSL:GetMinDCIValue"
m (Text replacement - "^" to "{{deprecated}}") |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | {{deprecated}}__NOTOC__ | ||
Get the | Get the minimum value of the DCI for the given period. The DCI value must be of numeric type. | ||
'''Since:''' 1.2. | '''Since:''' 1.2.1 | ||
== Syntax == | == Syntax == | ||
GetMinDCIValue(''node'', ''dciId'', ''from'', ''to''); | |||
Line 13: | Line 13: | ||
:{| | :{| | ||
|- | |- | ||
| ''node'' || [[NXSL:Node|Node]] object to calculate the | | ''node'' || [[NXSL:Node|Node]] object to calculate the mininum DCI value for. | ||
|- | |- | ||
| ''dciId'' || DCI item id (integer). | | ''dciId'' || DCI item id (integer). | ||
Line 31: | Line 31: | ||
sub main() | sub main() | ||
{ | { | ||
value = | value = GetMinDCIValue(FindObject("MYWORKPC"), 18, 0, time()); // from the beginning till now | ||
trace(1, "Processor | trace(1, "Processor minimum load ". value . "%"); | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |
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 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 . "%");
}