import MetricsCollector from 'devapt-core-server/js/metrics/base/metrics_collector.js'
MetricsCollector
Extends:
Direct Subclass:
Metrics collector base 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 reducer instance. |
|
public |
Metrics server name. |
|
public |
Metrics state instance. |
Private Members | ||
private |
Metrics collector status. |
Method Summary
Public Methods | ||
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_status(): string 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 Members
Private Members
Public Methods
public get_state_values(): string source
Get the metrics collector status: CREATED, INITIALIZED, CLOSED.
public process_record(arg_metrics_record: MetricsRecord): nothing source
Process a metrics record.
Params:
Name | Type | Attribute | Description |
arg_metrics_record | MetricsRecord | metrics record. |
Return:
nothing |