Difference between revisions of "NXSL:GetSumDCIValue"

From NetXMS Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ Get the sum value of the DCI for the given period. The DCI value must be of numeric type. '''Since:''' 1.2.7 == Syntax == GetSumDCIValue(''node'', ''dciId'', ''fr...")
 
m (Text replacement - "^" to "{{deprecated}}")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
{{deprecated}}__NOTOC__
Get the sum value of the DCI for the given period. The DCI value must be of numeric type.
Get the sum value of the DCI for the given period. The DCI value must be of numeric type.


Line 24: Line 24:
== Return Value ==
== Return Value ==


Minimum value or null on failure.
Sum value or '''null''' on failure.


== Examples ==
== Examples ==

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 sum value of the DCI for the given period. The DCI value must be of numeric type.

Since: 1.2.7

Syntax

GetSumDCIValue(node, dciId, from, to);


Parameters

node Node object to calculate the sum 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

Sum value or null on failure.

Examples

sub main()
{
    value = GetSumDCIValue(FindObject("MYWORKPC"), 18, 0, time()); // from the beginning till now
    trace(1, "Processor sum load ". value . "%");
}