Difference between revisions of "NXSL:GetMinDCIValue"
no edit summary
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
Get the | Get the sum value of the DCI for the given period. The DCI value must be of numeric type. | ||
'''Since:''' 1.2. | '''Since:''' 1.2.7 | ||
== Syntax == | == Syntax == | ||
GetSumDCIValue(''node'', ''dciId'', ''from'', ''to''); | |||
Line 13: | Line 13: | ||
:{| | :{| | ||
|- | |- | ||
| ''node'' || [[NXSL:Node|Node]] object to calculate the | | ''node'' || [[NXSL:Node|Node]] object to calculate the sum DCI value for. | ||
|- | |- | ||
| ''dciId'' || DCI item id (integer). | | ''dciId'' || DCI item id (integer). | ||
Line 31: | Line 31: | ||
sub main() | sub main() | ||
{ | { | ||
value = | value = GetSumDCIValue(FindObject("MYWORKPC"), 18, 0, time()); // from the beginning till now | ||
trace(1, "Processor | trace(1, "Processor sum load ". value . "%"); | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |