Interface Observable<AttributesTypes>

interface Observable<AttributesTypes> {
    addCallback(callback): void;
    removeCallback(callback): void;
}

Type Parameters

Methods

  • Sets up a function that will be called whenever a metric collection is initiated.

    If the function is already in the list of callbacks for this Observable, the function is not added a second time.

    Parameters

    Returns void

  • Removes a callback previously registered with Observable.addCallback.

    Parameters

    Returns void