Reference Source
public class | source

MetricsNodeReducer

Extends:

MetricsReducer → MetricsNodeReducer

Constructor Summary

Public Constructor
public

constructor(): nothing

Reducer for NodeJs metric class.

Member Summary

Public Members
public

Metrics record values.

Method Summary

Public Methods
public

create_state(): MetricsNodeJsState

Create a new state instance.

public

reduce_one_record(arg_state_values: object, arg_metrics_values: object, arg_state: MetricsNodeJsState): object

Reduce NodeJs metrics records into a state.

Inherited Summary

From class MetricsReducer
public

Class test flag.

public

Metrics series name.

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 constructor(): nothing source

Reducer for NodeJs metric class.

Override:

MetricsReducer#constructor

Return:

nothing

Public Members

public values: object source

Metrics record values.

Public Methods

public create_state(): MetricsNodeJsState source

Create a new state instance.

Override:

MetricsReducer#create_state

Return:

MetricsNodeJsState

a new node metrics state instance.

public reduce_one_record(arg_state_values: object, arg_metrics_values: object, arg_state: MetricsNodeJsState): object source

Reduce NodeJs metrics records into a state.

Override:

MetricsReducer#reduce_one_record

Params:

NameTypeAttributeDescription
arg_state_values object

metrics state values.

arg_metrics_values object

metrics records values.

arg_state MetricsNodeJsState

metrics state.

Return:

object

metrics state values.