From fbecc24b8053ff5ab967e21620c6b2f21ed231d3 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 30 Jun 2015 17:22:27 +0200 Subject: [PATCH] impl_log: make methods static Change-Id: I1cee538367a6dac1b1f2aa1a71c4bee9809d321e --- aodh/storage/impl_log.py | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/aodh/storage/impl_log.py b/aodh/storage/impl_log.py index 6ade968a2..3f697f708 100644 --- a/aodh/storage/impl_log.py +++ b/aodh/storage/impl_log.py @@ -26,30 +26,37 @@ LOG = log.getLogger(__name__) class Connection(base.Connection): """Log the data.""" - def upgrade(self): + @staticmethod + def upgrade(): pass - def clear(self): + @staticmethod + def clear(): pass - def get_alarms(self, name=None, user=None, state=None, meter=None, + @staticmethod + def get_alarms(name=None, user=None, state=None, meter=None, project=None, enabled=None, alarm_id=None, alarm_type=None, severity=None): """Yields a lists of alarms that match filters.""" return [] - def create_alarm(self, alarm): + @staticmethod + def create_alarm(alarm): """Create alarm.""" return alarm - def update_alarm(self, alarm): + @staticmethod + def update_alarm(alarm): """Update alarm.""" return alarm - def delete_alarm(self, alarm_id): + @staticmethod + def delete_alarm(alarm_id): """Delete an alarm.""" - def clear_expired_alarm_history_data(self, alarm_history_ttl): + @staticmethod + def clear_expired_alarm_history_data(alarm_history_ttl): """Clear expired alarm history data from the backend storage system. Clearing occurs according to the time-to-live.