class_docstr: Provides convenience methods for accessing and modifying the rules table.
class_docstr_tok: ["Provides","convenience","methods","for","accessing","and","modifying","the","rules","table","."]
docstr: Return the state of all rules stored in the database
  
  Returns:
      dict: key = rule name, value = dictionary of staging information
          Example:
              {
                  'example_rule_name':
                      {
                          'Staged': True
                          'StagedAt': datetime.datetime object,
                          'StagedUntil': datetime.datetime object
                      }
              }
docstr_tok: ["Return","the","state","of","all","rules","stored","in","the","database","Returns",":","dict",":","key","=","rule","name",",","value","=","dictionary","of","staging","information","Example",":","{","'example_rule_name","'",":","{","'Staged","'",":","True","'StagedAt","'",":","datetime.datetime","object",",","'StagedUntil","'",":","datetime.datetime","object","}","}"]
code: def _load_remote_state(self):
      """Return the state of all rules stored in the database
  
      Returns:
          dict: key = rule name, value = dictionary of staging information
              Example:
                  {
                      'example_rule_name':
                          {
                              'Staged': True
                              'StagedAt': datetime.datetime object,
                              'StagedUntil': datetime.datetime object
                          }
                  }
      """
      paginator = self._table.meta.client.get_paginator("scan")
      page_iterator = paginator.paginate(
          TableName=self.name, ConsistentRead=True
      )
      return {
          item["RuleName"]: {
              key: self._cast_value(key, value)
              for key, value in item.items()
              if key != "RuleName"
          }
          for page in page_iterator
          for item in page["Items"]
      }
  
imports: from datetime import datetime, timedelta
  import boto3
  from streamalert.shared.helpers.dynamodb import ignore_conditional_failure
  from streamalert.shared.importer import import_folders
  from streamalert.shared.logger import get_logger
  from streamalert.shared.rule import Rule
label_desc: Use image node_id 6 for calling the RuleTable obj's underlying member method code with example usage: obj._load_remote_state() and returns: unknown