Specifying attributes to be aggregated by STHSink

36 views Asked by At

I am investigating NGSISTHSink. When STHSink is configured, the default setting is that all Notifications sent to Cygnus are aggregated.

Is there a setting to aggregate only some attributes of the Notification?

For example, from the room entity's attributes such as room name, temperature and humidity, etc., only the temperature and humidity are aggregated.(The room name is not written to the DB.)

Thank you in advance.

1

There are 1 answers

4
Perrolobo On BEST ANSWER

You must design your NGSI subscriptions so only the chosen attrs are sent to a given SOURCE-SINK.

In this way you may have different SINKS with different configurations (in this case maybe different agg periods), which attrs you send to which SOURCE-SINK get "configured" via different subscription/notification configuration.