Merge "Add host specific VM list to inspector design guide line"
[doctor.git] / doctor_tests / monitor / base.py
1 ##############################################################################
2 # Copyright (c) 2017 ZTE Corporation and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 import abc
10 import six
11
12
13 @six.add_metaclass(abc.ABCMeta)
14 class BaseMonitor(object):
15     """Monitor computer fault and report error to the inspector"""
16     def __init__(self, conf, inspector_url, log):
17         self.conf = conf
18         self.log = log
19         self.inspector_url = inspector_url
20
21     @abc.abstractmethod
22     def start(self, host):
23         pass
24
25     @abc.abstractmethod
26     def stop(self):
27         pass