| |
Methods defined here:
- __init__(self)
- Initialize self. See help(type(self)) for accurate signature.
- deleteComplexMetric(self, hostname, metric_id)
- deleteMetric(self, hostname, metric_id)
- findData(self, filtr)
- Find in data collection using filter
- findInMeta(self, filtr=None)
- Find filter in meta collection
- getAll(self)
- Get all record from database
- getAllMetrics(self, filtr=None)
- Get all metrics from meta collection
- getCpxDefinitions(self, filtr=None)
- getHostname(self, sessionId)
- Get name of host specified by session id
- getHostnameByMetric(self, metric)
- Get name of host specified by metric
- getHosts(self, query)
- Get list of hosts from meta collection using query
- getMeasurements(self, sessionId, metricName, startTime, endTime)
- Get measurements from data collection precisize by session id,
metric name and time interval
- getMetadataByHost(self, host)
- Get metadata from meta colleciton specified by host
- getMetrics(self, sessionId, metricMatcher=None)
- Get metrics from meta collection using session id
- getSessionIds(self, dataFilter=None)
- Get session id from meta using filter
- insertMeasDefinition(self, hostname, metric_id, parent_id, moving_window, interval, description, owner)
- # TODO:Delete all this ugly arguments and
# replace with MeasurementDefinition object
- insertMeasurements(self, sessionId, metric_id, measurements)
- updateMeasDefinition(self, hostname, metric_id, parent_id, moving_window, interval, description, lastCalcTime, owner)
- # TODO:Delete all this ugly arguments and
# replace with MeasurementDefinition object
- updateMetricInMetadata(self, hostname, metric_id, parent_id, description)
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes defined here:
- COMPLEX_COLL = 'complexMeasurements'
- CONFIG_FILE = '/var/lib/jenkins/workspace/resmon_monitor_doc/common/data/db.conf.json'
- DATA_COLL = 'dataCollection'
- DATA_KEY = 'data'
- DESCRIPTION_KEY = 'description'
- FROM = '$gt'
- HOSTNAME_KEY = 'hostname'
- INTERVAL_KEY = 'interval'
- IP = None
- LAST_CALC_KEY = 'last_calculation'
- META_COLL = 'metaCollection'
- METRICS_KEY = 'metrics'
- METRIC_ID_KEY = 'metric_id'
- METRIC_PATH = 'metrics.metric_id'
- METRIC_QUERY_KEY = 'metric_id'
- MOVING_WINDOW_KEY = 'moving_window'
- NAME = 'monitorDatabase'
- OWNER_KEY = 'owner'
- PARENT_ID_KEY = 'parent_id'
- PASSW = None
- PORT = None
- SESSION_KEY = 'session_id'
- SESSION_PATH = 'data.session_id'
- STANDARD_FIELDS = ['metrics', 'session_id', 'meta_descriptions', 'hostname', 'session_start_date', 'descriptions', '_id']
- TIME_KEY = 'date'
- TO = '$lt'
- TYPE_KEY = 'type'
- UNIT_KEY = 'unit'
- USER = None
|