cloki
Version:
LogQL API with Clickhouse Backend
30 lines (29 loc) • 780 B
TypeScript
import {DataStream} from "scramjet";
export namespace registry_types {
interface Request {
ctx?: {[k: string]: any},
with?: {[k: string]: Request | UnionRequest}
select: (string | Object)[],
from: string,
left_join?: [{
name: string,
on: (string | string[])[]
}],
where?: (string | string[])[],
limit?: number,
offset?: number,
order_by?: {
name: string[],
order: string
},
group_by?: string[],
having?: (string | string[])[],
matrix?: boolean,
stream?: ((DataStream) => DataStream)[],
final: boolean,
distinct?: boolean
}
interface UnionRequest {
requests: Request[]
}
}