import MetricsReducer from 'devapt-core-server/js/metrics/base/metrics_reducer.js'
MetricsReducer
Direct Subclass:
Reducer class for HTTP metrics collect.
Constructor Summary
Public Constructor | ||
public |
constructor(arg_metrics_name: string): nothing Reducer for metrics class. |
Member Summary
Public Members | ||
public |
Class test flag. |
|
public |
Metrics series name. |
Method Summary
Public Methods | ||
public |
Create a new state instance. |
|
public |
incr(arg_state_values: object, arg_state_key: string, arg_metrics_values_key: string): MetricsState Increment a state value. |
|
public |
reduce(arg_state: MetricsState, arg_metrics_values: object | array): object Reduce metrics records to a state. |
|
public |
reduce_one_record(arg_state_values: object, arg_metrics_values: object, arg_state: MetricsState): object Reduce metrics records into a state. |
Public Constructors
Public Members
Public Methods
public incr(arg_state_values: object, arg_state_key: string, arg_metrics_values_key: string): MetricsState source
Increment a state value.
public reduce(arg_state: MetricsState, arg_metrics_values: object | array): object source
Reduce metrics records to a state.
Params:
Name | Type | Attribute | Description |
arg_state | MetricsState | metrics state. |
|
arg_metrics_values | object | array | metrics records values. |
public reduce_one_record(arg_state_values: object, arg_metrics_values: object, arg_state: MetricsState): object source
Reduce metrics records into a state.
Params:
Name | Type | Attribute | Description |
arg_state_values | object | metrics state values. |
|
arg_metrics_values | object | metrics records values. |
|
arg_state | MetricsState | metrics state. |