noc.core.etl.bi.extractor.archive

Module Contents

class noc.core.etl.bi.extractor.archive.ArchivingExtractor

Bases: noc.core.etl.bi.extractor.base.BaseExtractor

enable_archive = False
use_archive = False
archive_batch_limit = 1000
archive_collection_template
archive_collection_prefix = alarms
_archive_db
archive_meta
archive_intervals
require_db_connect(self)
clean(self, force=False)
get_archived_template(self)
iter_archived_items(self)

Generator yielding documents to be archived :return:

iter_archived_collections(self)

Generator yielding archived collection names :return: :rtype: str

calculate_meta(self, collection_name)

Calculate Meta Information about archived collection :param collection_name: :return: :rtype: dict

fill_meta(self)
find_archived_collections(self, start, stop)
archive(self)

Move data to archive collection :return: