iya-sts
    Preparing search index...

    Draws Metrics from the answer of GET /admin-api/metrics: endpoint calls, tokens and artifacts by kind, and sessions counted both ways.

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

    Index
    • Draws the metrics page's table of assertions, tickets and SVIDs.

      Parameters

      • snap: any

        a snapshot from stats.snapshot()

      • t: any

        the page's translator (#539)

      Returns string

      the table as HTML

    • 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

    • Draws the metrics page's table of calls per route.

      At most MAX_ROWS routes are drawn, busiest first; notes say how many were left out and how many unmatched paths were collapsed.

      Parameters

      • snap: any

        a snapshot from stats.snapshot()

      • t: any

        the page's translator (#539)

      Returns string

      the table and its notes as HTML

    • Draws the metrics page's table of tokens by kind and state.

      Parameters

      • snap: any

        a snapshot from stats.snapshot()

      • t: any

        the page's translator (#539)

      Returns string

      the table as HTML