pamoja for TypeScript - v0.1.17
    Preparing search index...

    Class Reporter

    Records telemetry events, ships the ones worth their bytes, and counts them all.

    Index
    • get dropped(): number

      How many events the threshold dropped.

      Returns number

    • get emitted(): number

      How many events passed the threshold and were shipped.

      Returns number

    • get threshold(): Level

      The level this reporter is currently shipping from.

      Returns Level

    • set threshold(threshold: Level): void

      Moves the level this reporter ships from.

      Parameters

      Returns void

    • get total(): number

      How many events have been seen across every level.

      Returns number

    • Returns how many events have been seen at level, shipped or not.

      Parameters

      Returns number

    • Records an event at level and returns whether it should be shipped.

      The event is counted either way, so the aggregate picture survives even when the link is too costly to carry the detail.

      Parameters

      Returns boolean