EUPDATE

Use this function only in a real-time feed to an iWay Enable chart, since a chart is the only control that shows history. All other controls (gauges) show only the latest value.

This function formats its result specifically for an iWay Enable chart. When constructing the feed, you must add the following prefix to preserve the string that the function returns:

asis:

The syntax for the function is:

_EUPDATE(events,aggFunc,hist)

Parameter

Type

Required/
Optional

Description

events

String

Required

Is an array of event names that are delimited by a pipe (|).

aggFunc

String

Required

Specifies the aggregation function. See the table that follows for valid values.

hist

long

Optional

Specifies the amount of real-time data history that will be retrieved (current time minus hist).

The function aggregates the facts saved from an event capture by examining the aggFunc value and determining the corresponding aggregation function, as described in the following table.

aggFunc Value

Aggregation Function

avg

AVG()

min

MIN()

max

MAX()

sum

SUM()

count

COUNT()

The hist parameter groups the aggregation by the hist value. The rules for grouping by aggregation are described in the following table.

hist Value

Aggregation Interval

< 1 sec

Grouped by milliseconds

< 1 min

Grouped by seconds

< 1 hour

Grouped by minutes

< 1 day

Grouped by hours

< 4 weeks

Grouped by days


iWay Software