29a330b1f4
* Fixing whitespace. * Fixing syncing. * Fixing tests
37 lines
847 B
Python
37 lines
847 B
Python
"""
|
|
.. module: lemur.bases.source
|
|
:platform: Unix
|
|
:copyright: (c) 2015 by Netflix Inc., see AUTHORS for more
|
|
:license: Apache, see LICENSE for more details.
|
|
|
|
.. moduleauthor:: Kevin Glisson <kglisson@netflix.com>
|
|
"""
|
|
from lemur.plugins.base import Plugin
|
|
|
|
|
|
class SourcePlugin(Plugin):
|
|
type = 'source'
|
|
|
|
default_options = [
|
|
{
|
|
'name': 'pollRate',
|
|
'type': 'int',
|
|
'required': False,
|
|
'helpMessage': 'Rate in seconds to poll source for new information.',
|
|
'default': '60',
|
|
}
|
|
]
|
|
|
|
def get_certificates(self):
|
|
raise NotImplemented
|
|
|
|
def get_endpoints(self):
|
|
raise NotImplemented
|
|
|
|
def clean(self):
|
|
raise NotImplemented
|
|
|
|
@property
|
|
def options(self):
|
|
return list(self.default_options) + self.additional_options
|