noc.cm.models.confdbquery

Module Contents

noc.cm.models.confdbquery.id_lock
noc.cm.models.confdbquery.TYPE_MAP
class noc.cm.models.confdbquery.ConfDBQueryParam

Bases: mongoengine.document.EmbeddedDocument

meta
name
type
default
description
__str__(self)
to_json(self)
get_parameter(self)
class noc.cm.models.confdbquery.ConfDBQuery

Bases: mongoengine.document.Document

meta
name
uuid
description
source
params
allow_object_filter
allow_interface_filter
allow_object_validation
allow_interface_validation
allow_object_classification
allow_interface_classification
require_raw
_id_cache
__str__(self)
classmethod get_by_id(cls, id)
get_json_path(self)
query(self, engine, **kwargs)

Run query against ConfDB engine :param engine: ConfDB engine :param kwargs: Optional arguments :return:

any(self, engine, **kwargs)

Run query agains ConfDB engine and return True if any result found :param engine: ConfDB engine :param kwargs: Optional arguments :return: True if any result found

to_json(self)