Reference Source
public class | source

MetricsNodeJsCollector

Extends:

devapt-core-common/dist/js/base/settingsable~SettingsableMetricsCollector → MetricsNodeJsCollector

Metrics Node collector class.

Constructor Summary

Public Constructor
public

constructor(arg_settings: Immutable.Map, arg_log_context: string): nothing

Metrics collector constructor.

Member Summary

Public Members
public

Class test flag.

public

Metrics record instance.

public

Metrics reducer instance.

public

Metrics state instance.

public

scheduler: Timer

Timer instance.

Method Summary

Public Methods
public

close(): nothing

Flush and close the metrics collector.

public

flush(): nothing

Flush pending metrics records.

public

init(): nothing

Initialize metrics collector.

Inherited Summary

From class MetricsCollector
public

Class test flag.

public

Metrics reducer instance.

public

Metrics server name.

public

Metrics state instance.

private

Metrics collector status.

public

close(): nothing

Flush and close the metrics collector.

public

flush(): nothing

Flush pending metrics records.

public

Get the metrics collector status: CREATED, INITIALIZED, CLOSED.

public

Get the metrics collector status: CREATED, INITIALIZED, CLOSED.

public

init(): nothing

Initialize metrics collector.

public

process_record(arg_metrics_record: MetricsRecord): nothing

Process a metrics record.

public

process_values(arg_metrics_values: object): nothing

Process metrics record values.

public

send_metrics(arg_type: string, arg_values: array): boolean

Send metrics message.

Public Constructors

public constructor(arg_settings: Immutable.Map, arg_log_context: string): nothing source

Metrics collector constructor.

Override:

MetricsCollector#constructor

Params:

NameTypeAttributeDescription
arg_settings Immutable.Map

instance settings map.

arg_log_context string

trace context string.

Return:

nothing

Public Members

public is_metrics_node_collector: boolean source

Class test flag.

public metrics_record: MetricsRecord source

Metrics record instance.

public metrics_reducer: MetricsReducer source

Metrics reducer instance.

Override:

MetricsCollector#metrics_reducer

public metrics_state: MetricsState source

Metrics state instance.

Override:

MetricsCollector#metrics_state

public scheduler: Timer source

Timer instance.

Public Methods

public close(): nothing source

Flush and close the metrics collector.

Override:

MetricsCollector#close

Return:

nothing

public flush(): nothing source

Flush pending metrics records.

Override:

MetricsCollector#flush

Return:

nothing

public init(): nothing source

Initialize metrics collector.

Override:

MetricsCollector#init

Return:

nothing