mirror of
https://github.com/mtan93/cachet-url-monitor.git
synced 2026-03-08 05:31:58 +00:00
Merge pull request #31 from jacekszubert/remove_unused_functs
Remove unused functions
This commit is contained in:
@@ -92,18 +92,6 @@ class Configuration(object):
|
|||||||
for expectation in self.expectations:
|
for expectation in self.expectations:
|
||||||
self.logger.info('Registered expectation: %s' % (expectation,))
|
self.logger.info('Registered expectation: %s' % (expectation,))
|
||||||
|
|
||||||
def is_create_incident(self):
|
|
||||||
"""Will verify if the configuration is set to create incidents or not.
|
|
||||||
:return True if the configuration is set to create incidents or False it otherwise.
|
|
||||||
"""
|
|
||||||
return 'create_incident' in self.data['cachet'] and self.data['cachet']['create_incident']
|
|
||||||
|
|
||||||
def is_update_status(self):
|
|
||||||
"""Will verify if the configuration is set to update status or not.
|
|
||||||
:return True if the configuration is set to update status or False it otherwise.
|
|
||||||
"""
|
|
||||||
return 'update_status' in self.data['cachet'] and self.data['cachet']['update_status']
|
|
||||||
|
|
||||||
def get_action(self):
|
def get_action(self):
|
||||||
"""Retrieves the action list from the configuration. If it's empty, returns an empty list.
|
"""Retrieves the action list from the configuration. If it's empty, returns an empty list.
|
||||||
:return: The list of actions, which can be an empty list.
|
:return: The list of actions, which can be an empty list.
|
||||||
|
|||||||
Reference in New Issue
Block a user