#!/usr/bin/env python
import rospy
from monitoring.msg import Metric

class Watchdog:
    def __init__(self):
        self.state = 0
        self.observing = {}
        rospy.init_node("watchdog")
        rospy.Subscriber("metric", Metric, callback)

    def callback(self, monitoring):

        if monitoring.origin in self.observing:
            self.observing[metric]