Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MetricsService

AeroGear Metrics SDK Provides internal api for metrics that are sent to metrics server.

Hierarchy

  • MetricsService

Index

Constructors

constructor

Properties

Protected builder

Protected Optional configuration

configuration: ServiceConfiguration

Protected Optional publisher

publisher: MetricsPublisher

Static CLIENT_ID_KEY

CLIENT_ID_KEY: "aerogear_metrics_client_key" = "aerogear_metrics_client_key"

Static DEFAULT_METRICS_TYPE

DEFAULT_METRICS_TYPE: "init" = "init"

Static TYPE

TYPE: "metrics" = "metrics"

Accessors

metricsBuilder

metricsPublisher

Methods

publish

  • publish(type: string, metrics: Metrics[]): Promise<any>
  • Publish metrics using predefined publisher

    Parameters

    • type: string

      type of the metrics to be published

    • metrics: Metrics[]

      metrics instances that should be published

    Returns Promise<any>

sendAppAndDeviceMetrics

  • sendAppAndDeviceMetrics(): Promise<any>
  • Collect metrics for all active metrics collectors Send data using metrics publisher

    Returns Promise<any>

Generated using TypeDoc