GROUP_BY_DEVICE
Description
Converts vector to a grouped vector by grouping by devices. I.e. each device has its own list of events.
GROUP_BY_DEVICE(Vector<Event>)
GROUP_BY_DEVICE(vector: Vector<Event>): GroupedVector<Device,Event>
Groups the events in the given vector by deviceId.
Parameters
Parameter
Description
vector
A vector of type Event
Returns
A GroupedVector of type <Device,Event>.
Examples
Group the events in the GridPowerConsumption vector by device id.
GROUP_BY_DEVICE($GridPowerConsumption)
Last updated