UNPKG

@nopwdio/sdk-js

Version:
31 lines (30 loc) 1.12 kB
import { LitElement } from "lit"; import { Status } from "../core/status.js"; /** * @summary `np-status-history` is a custom element that displays the status history of a service. * * @description * This component connects to a WebSocket server to receive real-time updates and renders the status history accordingly. * It maintains a list of status updates and displays them based on the success and error counts. * The possible status indicators are: * - `operational`: All systems are functioning correctly. * - `disrupted`: Some errors occurred. * - `down`: No successful responses. * - `nodata`: Insufficient data to determine status. * - `offline`: Unable to connect to the service. * * @csspart link - The component's link wrapper. */ export declare class NpStatusHistory extends LitElement { statuses: Status[]; limit: number; render(): import("lit-html").TemplateResult<1>; connectedCallback(): void; private connect; static styles: import("lit").CSSResult[]; } declare global { interface HTMLElementTagNameMap { "np-status-history": NpStatusHistory; } }