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:
parent
4382fef1d4
commit
40671f1852
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue