class_docstr: Run queries to generate statistics on alerts.
docstr: Query the Rule table for rule staging info needed to count each rule's alerts
  
  Example of rule metadata returned by RuleTable.remote_rule_info():
  {
      'example_rule_name':
          {
              'Staged': True
              'StagedAt': datetime.datetime object,
              'StagedUntil': '2018-04-21T02:23:13.332223Z'
          }
  }
docstr_tok: ["Query","the","Rule","table","for","rule","staging","info","needed","to","count","each","rule","'s","alerts","Example","of","rule","metadata","returned","by","RuleTable.remote_rule_info","(",")",":","{","'example_rule_name","'",":","{","'Staged","'",":","True","'StagedAt","'",":","datetime.datetime","object",",","'StagedUntil","'",":","'2018-04-21T02:23:13.332223Z'","}","}"]
code: def _get_staging_info(self):
      """Query the Rule table for rule staging info needed to count each rule's alerts
  
      Example of rule metadata returned by RuleTable.remote_rule_info():
      {
          'example_rule_name':
              {
                  'Staged': True
                  'StagedAt': datetime.datetime object,
                  'StagedUntil': '2018-04-21T02:23:13.332223Z'
              }
      }
      """
      for rule in sorted(self._rule_table.remote_rule_info):
          info = self._rule_table.remote_rule_info[rule]
          # If the rule is not staged, do not get stats on it
          if not info["Staged"]:
              continue
  
          self._staging_stats[rule] = StagingStatistic(
              info["StagedAt"],
              info["StagedUntil"],
              self._current_time,
              rule,
          )
  
      return len(self._staging_stats) != 0
  
file_path: streamalert/streamalert/rule_promotion/promoter.py
imports: from datetime import datetime
  from streamalert.rule_promotion.publisher import StatsPublisher
  from streamalert.rule_promotion.statistic import StagingStatistic
  from streamalert.shared.utils import get_database_name
  from streamalert.shared.athena import AthenaClient
  from streamalert.shared.config import load_config
  from streamalert.shared.logger import get_logger
  from streamalert.shared.rule_table import RuleTable
label_desc: Use image node_id 2 for calling the RulePromoter obj's underlying member method code with example usage: obj._get_staging_info() and returns: unknown