Reference Source
public class | source

MetricsHttpCollector

Extends:

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

Metrics Http collector class.

Static Method Summary

Static Public Methods
public static

create_middleware(arg_server: object): nothing

Executed before main request processing.

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 reducer instance.

public

Metrics state 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.

Static Public Methods

public static create_middleware(arg_server: object): nothing source

Executed before main request processing.

Params:

NameTypeAttributeDescription
arg_server object

server instance (Server base class instance).

Return:

nothing

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

Class test flag.

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