code: def update_views(self):
          
          # Call the father's method
          super(Plugin, self).update_views()
  
          if 'containers' not in self.stats:
              return False
  
          # Add specifics informations
          # Alert
          for i in self.stats['containers']:
              # Init the views for the current container (key = container name)
              self.views[i[self.get_key()]] = {'cpu': {}, 'mem': {}}
              # CPU alert
              if 'cpu' in i and 'total' in i['cpu']:
                  # Looking for specific CPU container threasold in the conf file
                  alert = self.get_alert(i['cpu']['total'],
                                         header=i['name'] + '_cpu',
                                         action_key=i['name'])
                  if alert == 'DEFAULT':
                      # Not found ? Get back to default CPU threasold value
                      alert = self.get_alert(i['cpu']['total'], header='cpu')
                  self.views[i[self.get_key()]]['cpu']['decoration'] = alert
              # MEM alert
              if 'memory' in i and 'usage' in i['memory']:
                  # Looking for specific MEM container threasold in the conf file
                  alert = self.get_alert(i['memory']['usage'],
                                         maximum=i['memory']['limit'],
                                         header=i['name'] + '_mem',
                                         action_key=i['name'])
                  if alert == 'DEFAULT':
                      # Not found ? Get back to default MEM threasold value
                      alert = self.get_alert(i['memory']['usage'],
                                             maximum=i['memory']['limit'],
                                             header='mem')
                  self.views[i[self.get_key()]]['mem']['decoration'] = alert
  
          return True
docs: Update stats views.