Reference Source
public class | source

MetricsBusCollector

Extends:

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

Metrics Bus 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

Logs bus metrics record.

public

Metrics bus metrics record.

public

Message bus metrics record.

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_bus_collector: boolean source

Class test flag.

public metrics_logs_bus: MetricsBusRecord source

Logs bus metrics record.

public metrics_metrics_bus: MetricsBusRecord source

Metrics bus metrics record.

public metrics_msg_bus: MetricsBusRecord source

Message bus metrics record.

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