@tikoci/centrs
    Preparing search index...

    Type Alias ApiStreamMeta

    ApiStreamMeta:
        | { kind: "started" }
        | {
            afterStop?: true;
            index: number;
            kind: "frame";
            observedAt: string;
            reply: "re" | "empty";
        }
        | {
            durationMs: number;
            empty: number;
            frames: number;
            kind: "summary";
            rows: number;
            stopReason: ApiStreamStopReason;
        }

    Per-line marker on --stream NDJSON output: the leading started, one wire reply, or the terminating summary. started (data: null, not counted) comes first on every stream that passed its preflight: it carries the full meta and any advice in tips — what RouterOS will not report for the request — so even a watch that never gets a reply sees both (#473). A frame carries only its meta.operation. Its reply is re (a row; data is the row) or empty (RouterOS !empty: zero rows; data is null), and observedAt is when centrs received it (host clock, ISO 8601; a slow reader does not move it). afterStop marks a reply that arrived after centrs stopped the stream locally, such as the !empty a cancelled listen sends; it is not evidence of an empty table.

    Type Declaration

    • { kind: "started" }
    • {
          afterStop?: true;
          index: number;
          kind: "frame";
          observedAt: string;
          reply: "re" | "empty";
      }
    • {
          durationMs: number;
          empty: number;
          frames: number;
          kind: "summary";
          rows: number;
          stopReason: ApiStreamStopReason;
      }
      • durationMs: number
      • empty: number

        !empty replies.

      • frames: number

        Every reply line: rows + empty.

      • kind: "summary"
      • rows: number

        !re rows. --count counts these.

      • stopReason: ApiStreamStopReason