b327963925
This way IDEs can verify method overrides in subclasses, otherwise these are flagged as erroneous. Changed base classes to properly raise NotImplementedError; previously they would cause "TypeError: exceptions must derive from BaseException" Also fixed exception handling in sources.service.clean().
17 lines
454 B
Python
17 lines
454 B
Python
"""
|
|
.. module: lemur.plugins.bases.metric
|
|
: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 MetricPlugin(Plugin):
|
|
type = 'metric'
|
|
|
|
def submit(self, metric_name, metric_type, metric_value, metric_tags=None, options=None):
|
|
raise NotImplementedError
|