Difference between revisions of "NXSL:GetAvgDCIValue"

90 bytes added ,  18:13, 13 September 2022
m
Text replacement - "^" to "{{deprecated}}"
(Created page with "__NOTOC__ Get the average value of the DCI item for the given period. The item value must be of either integer or double type. == Syntax == GetAvgDCIValue(''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 average value of the DCI item for the given period. The item value must be of either integer or double type.
Get the average value of the DCI for the given period. The DCI value must be of numeric type.
 
'''Since:''' 1.2.1


== Syntax ==
== Syntax ==


GetAvgDCIValue(''node'',''dciitem'',''fromtime'',''totime'');
GetAvgDCIValue(''node'', ''dciId'', ''from'', ''to'');




Line 13: Line 15:
| ''node'' || [[NXSL:Node|Node]] object to calculate the average DCI value for.
| ''node'' || [[NXSL:Node|Node]] object to calculate the average DCI value for.
|-
|-
| ''dciitem'' || DCI item id (integer).
| ''dciId'' || DCI item id (integer).
|-
|-
| ''fromtime'' || Start of the peridod (timestamp).
| ''from'' || Start of the period (as [http://en.wikipedia.org/wiki/Unix_time UNIX timestamp]).
|-
|-
| ''totime'' || End of the peridod (timestamp).
| ''to'' || End of the period (as [http://en.wikipedia.org/wiki/Unix_time UNIX timestamp]).
|}
|}