Add delete_outdate_alarm to collectd

In actual usage scenarios, the expired alarm data should be deleted,
so it is agreed to enable this function for the alarm data source.

Implements: blueprint add-delete-outdate-alarm
Change-Id: I9fd1bcb0c9dec3f24c554154360dfd8a743f9fca
This commit is contained in:
Q.hongtao 2020-08-31 08:48:48 +08:00
parent 4382fef1d4
commit 40671f1852
1 changed files with 4 additions and 0 deletions

View File

@ -101,3 +101,7 @@ class CollectdDriver(AlarmDriverBase):
return ['collectd.alarm.ok',
'collectd.alarm.failure',
'collectd.alarm.warning']
@staticmethod
def should_delete_outdated_entities():
return True