geonode.monitoring.aggregation
Attributes
Functions
Returns list of tuples: (service type, list of metrics) |
|
|
|
|
|
|
|
|
|
|
|
|
Return list of pairs (event_type, requests) |
|
Find previous network metric value and caclulate rate between them |
|
Find previous network metric value and caclulate percent |
|
|
|
Aggregate past metric data into longer periods. |
|
Module Contents
- geonode.monitoring.aggregation.get_metric_names()[source]
Returns list of tuples: (service type, list of metrics)
- geonode.monitoring.aggregation.extract_special_event_types(requests)[source]
Return list of pairs (event_type, requests) that should be registered as one of aggregating event types: ows:all, other,
- geonode.monitoring.aggregation.calculate_rate(metric_name, metric_label, current_value, valid_to)[source]
Find previous network metric value and caclulate rate between them
- geonode.monitoring.aggregation.calculate_percent(metric_name, metric_label, current_value, valid_to)[source]
Find previous network metric value and caclulate percent
- geonode.monitoring.aggregation.aggregate_past_periods(metric_data_q=None, periods=None, cleanup=True, now=None, max_since=None)[source]
Aggregate past metric data into longer periods.
- @param metric_data_q: Query for metric data to use as input
(default: all MetricValues)
- @param periods: List of tuples (cutoff, aggregation) to be used
(default: settings.MONITORING_DATA_AGGREGATION)
- @param cleanup: Flag if input data should be removed after aggregation
(default: True)
- @param now: Arbitrary now moment to start calculation of cutoff
(default: current now)
- @param max_since: Look for data no older than max_since
(default: 1 year)