original_docstring: 
          periodic task to get usage from openstack and check warning
          
docstring: periodic task to get usage from openstack and check warning
docstring_tokens: periodic task to get usage from openstack and check warning
code: def periodic_tasks(self, level):
          '''
          periodic task to get usage from openstack and check warning
          '''
          LOG.debug("looping calling get usage from openstack for level %s...." %
                    level)
          for usage in self.request_usages(level):
              metric_list = monitor.convert_usages_to_metric(usage, level)
              utils.convert_mem_to_gb_for_monitor(metric_list)
              if CONF.need_alarm:
                  LOG.debug(_("alarm for level %s."), level)
                  eventlet.spawn_n(self.check_alarm, level, usage)
              eventlet.spawn_n(self.post_monitor, level, metric_list)
code_tokens: def periodic_tasks ( self , level ) : LOG . debug ( "looping calling get usage from openstack for level %s...." % level ) for usage in self . request_usages ( level ) : metric_list = monitor . convert_usages_to_metric ( usage , level ) utils . convert_mem_to_gb_for_monitor ( metric_list ) if CONF . need_alarm : LOG . debug ( _ ( "alarm for level %s." ) , level ) eventlet . spawn_n ( self . check_alarm , level , usage ) eventlet . spawn_n ( self . post_monitor , level , metric_list )
short_docstring: periodic task to get usage from openstack and check warning
short_docstring_tokens: periodic task to get usage from openstack and check warning
comment: '''
          periodic task to get usage from openstack and check warning
          '''