OpServ-Monitoring/opserv-backend

View on GitHub
app/gathering/measuring/generic_source.py

Summary

Maintainability
A
0 mins
Test Coverage
'''
    This module is a generic not implemented source
'''

from gathering.measuring.MeasuringSource import MeasuringSource


class GenericSource(MeasuringSource):
    '''
        Source description
    '''

    _supported_os = []
    _supported_comps = {

    }

    def init(self):
        '''
            Initializes the measuring source (opening hardware connections etc.)
            If initialization is successful, it will return True
            If errors occured, the return value will be False
        '''
        pass

    def deinit(self):
        '''
            De-Initializes the measuring source, removing connections etc.
            Returns True if deinit was successfull, False if it errord
        '''
        pass

    def get_measurement(self, component, metric, args):
        '''
            Retrieves a measurement from the measuring source
            given the component, metric and optionally arguments
        '''
        pass