MeterStatusAPI implements the MeterStatus interface and is the concrete implementation of the API endpoint. Additionally, it embeds common.UnitStateAPI to allow meter status workers to access their controller-backed internal state.

Hierarchy

  • default

Implements

Constructors

Properties

NAME: string = "MeterStatus"
VERSION: number = 2
_transport: Transport
NAME: string = "MeterStatus"
VERSION: number = 2

Methods

  • SetState sets the state persisted by the charm running in this unit and the state internal to the uniter for this unit.

    Parameters

    Returns Promise<ErrorResults>

  • State returns the state persisted by the charm running in this unit and the state internal to the uniter for this unit.

    Parameters

    Returns Promise<UnitStateResults>

  • WatchMeterStatus returns a NotifyWatcher for observing changes to each unit's meter status.

    Parameters

    Returns Promise<NotifyWatchResults>

Generated using TypeDoc