MetricsManagerAPI implements the metrics manager interface and is the concrete implementation of the api end point.

Hierarchy

  • default

Implements

Constructors

Properties

NAME: string = "MetricsManager"
VERSION: number = 1
_transport: Transport
NAME: string = "MetricsManager"
VERSION: number = 1

Methods

  • AddJujuMachineMetrics adds a metric that counts the number of non-container machines in the current model.

    Parameters

    • params: any

    Returns Promise<any>

  • CleanupOldMetrics removes old metrics from the collection. The single arg params is expected to contain and model uuid. Even though the call will delete all metrics across models it serves to validate that the connection has access to at least one model.

    Parameters

    Returns Promise<ErrorResults>

  • SendMetrics will send any unsent metrics onto the metric collection service.

    Parameters

    Returns Promise<ErrorResults>

Generated using TypeDoc