iya-sts
    Preparing search index...

    Draws the Shared Signals dead letters from the answer of GET /admin-api/ssf/dead-letters: the events a receiver never acknowledged, over time, stream by stream, with Retry.

    A static utility class; it holds no state and takes no dependencies.

    Index
    • Draws the page's body from its view.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of the page's management API operation

      Returns string

      the body as HTML

    • Chooses a round step for the dead-letter timeline's value axis: 1, 2 or 5 times a power of ten, never below one.

      Parameters

      • peak: any

        the largest column count on the timeline

      Returns number

      the step between gridlines

    • Draws one stacked column of the dead-letter timeline, a segment per cause present, bottom up in the report's cause order, the top rounded.

      Parameters

      • bucket: any

        the time bucket, with its counts per cause id

      • causes: any

        the report's causes, in order

      • geometry: any

        the column's x, width, baseline and pixels per letter

      Returns any

      the column's segments as SVG markup

    • Draws the rows of the dead-letter list for one page of letters.

      Parameters

      • json: any

        the report, whose letters are drawn

      • causeById: any

        each cause's description, keyed by its id

      • listView: any

        the list's query, carried into each stream link

      • t: any

        the page's translator (#539)

      Returns any

      the table rows as HTML

    • Formats a window length for an axis label, as 60m, 12h or 30d.

      Parameters

      • seconds: any

        the length in seconds

      Returns string

      the short label

    • Draws a 12px rounded square of one colour, the swatch beside a cause.

      Parameters

      • colour: any

        the fill colour

      Returns string

      the swatch as inline SVG markup

    • Draws the whole dead-letter timeline: axes, gridlines, a column per bucket, a title per column and an aria-label for a reader who cannot see the colours.

      Parameters

      • timeline: any

        the buckets, peak, bucket length and window length

      • causes: any

        the report's causes, in order

      • t: any

        the page's translator (#539)

      Returns string

      the chart as HTML wrapping an SVG