Different retention rules for different alarm status

Hello Community,

I am wondering if I could configure different retention rules for alarm status. I looked at the online documentation it seems not work. I can’t define alarm “status”.
https://cumulocity.com/guides/10.4.6/reference/retention-rules/#post—create-a-new-retentionrule

My simple thought was that alarms in ACTIVE should have a longer retention rule then CLEARED or ACKNOWLEDGED alarms. These alarms are already processed and need not longer attention. An ACTIVE alarm in contrast should never be deleted or at least much later, we lose maybe important information, and no user had a look at the alarm. Please think of a huge device fleet which sends a lot of data into the Platform, the data gets offloaded regularly and the data should be keept only for 7 days.

Is this somehow already working. If not, is there any customer/user which has similar requirement? Another field which could be interesting is “severity”.

Best regards,
Alex

Hi Alex,

unfortunately the only retention rule filter is the “type” for alarm. So for severity you can include it in the type and change the retention but for status this won’t work.
Right now the only thing you can do is to define the retention to the max for all status.

Btw. your link is wrong and is pointing to https://documentation.

ah, thanks, i added the right URL

Hi Stefan,

i got an information from R&D that indeed only alarms in status CLEARED get removed via retention rules! All other alarms in status ACTIVE or ACKNOWLEDGED will not be removed. Another important information is that lastUpdated time is used for retention rule. Which makes a lot of sense regards deduplication.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.