'Update stats views.'

def update_views(self):

    super(Plugin, self).update_views()
    for i in self.stats:
        self.views[i[self.get_key()]] = {'proc': {}, 'mem': {}}
        if ('proc' in i):
            alert = self.get_alert(i['proc'], header='proc')
            self.views[i[self.get_key()]]['proc']['decoration'] = alert
        if ('mem' in i):
            alert = self.get_alert(i['mem'], header='mem')
            self.views[i[self.get_key()]]['mem']['decoration'] = alert
    return True
