Constructor
new dataProcessingFeature($scope)
constructor - description
Important the use of _.cloneDeep to ensure that no two instances of the same plugin share references of the same variables.
Important the use of _.cloneDeep to ensure that no two instances of the same plugin share references of the same variables.
Parameters:
| Name | Type | Description |
|---|---|---|
$scope |
type | A reference to the plugin's scope for the subscription to events |
Methods
(static) mapSeriesToValue(timeseries) → {Object}
mapSeriesToValue - Applies statistics to obtain a [metric, value] pair from a TimeSeries.
Parameters:
| Name | Type | Description |
|---|---|---|
timeseries |
Timeseries | receives a timeseries object containing all values registered for a metric. |
Returns:
Object containing both the name and value for a specific metric.
- Type
- Object
(static) onDataReceived(dataList)
onDataReceived - Handler for the event : data-received
When new data is received, it is converted into a simpler data structure;
then the selected statistic is applied to each of the metrics received.
When new data is received, it is converted into a simpler data structure;
then the selected statistic is applied to each of the metrics received.
Parameters:
| Name | Type | Description |
|---|---|---|
dataList |
type | description |
(static) onInitEditMode()
onInitEditMode - Handler for the event : init-edit-mode
(static) onRefresh()
onRefresh - Handler for the event : refresh
When configuration is modified, data is converted into a simpler data structure;
then the selected statistic is applied to each of the metrics received.
Previous data received, stored in the rawData attribute, is used.
When configuration is modified, data is converted into a simpler data structure;
then the selected statistic is applied to each of the metrics received.
Previous data received, stored in the rawData attribute, is used.
(static) seriesHandler(dataList) → {TimeSeries}
seriesHandler - Extracts a simpler data structure.
Parameters:
| Name | Type | Description |
|---|---|---|
dataList |
type | Original data structure |
Returns:
TimeSeries created from the original one
- Type
- TimeSeries