/* eslint-disable */ // @ts-nocheck /* * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY */ import * as InsightIoApiGraphV1alpha1Graph from "../../graph/v1alpha1/graph.pb" import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb" import * as InsightIoApiTracingV1alpha1Model from "./model.pb" type Absent = { [k in Exclude]?: undefined }; type OneOf = | { [k in keyof T]?: undefined } | ( keyof T extends infer K ? (K extends string & keyof T ? { [k in K]: T[K] } & Absent : never) : never); export enum FilterField { SERVICE_NAME = "SERVICE_NAME", DATABASE_ADDRESS = "DATABASE_ADDRESS", DATABASE_SYSTEM = "DATABASE_SYSTEM", SQL_STATEMENT = "SQL_STATEMENT", SOURCE_POD = "SOURCE_POD", STATUS_ERROR = "STATUS_ERROR", DURATION = "DURATION", } export enum MetadataRequestQueryType { DATABASE_ADDRESS = "DATABASE_ADDRESS", DATABASE_SYSTEM = "DATABASE_SYSTEM", SQL_STATEMENT = "SQL_STATEMENT", } type BaseOperatorClause = { field?: FilterField operation?: InsightIoApiGraphV1alpha1Graph.FilterOperator } export type OperatorClause = BaseOperatorClause & OneOf<{ stringValue: string; floatValue: number; boolValue: boolean }> export type MetadataRequest = { clusterName?: string namespace?: string type?: MetadataRequestQueryType clauses?: OperatorClause[] startTime?: string endTime?: string limit?: number } export type MetadataResponse = { items?: string[] } export type StatementRequest = { clusterName?: string namespace?: string clauses?: OperatorClause[] sort?: string startTime?: string endTime?: string interval?: string topN?: string } export type BucketHistogram = { timestamp?: string value?: number } export type StatementHistogramResponse = { total?: BucketHistogram[] duration?: BucketHistogram[] errors?: BucketHistogram[] errorRate?: BucketHistogram[] sourcePods?: SourcePod[] } export type SourcePod = { name?: string count?: string } export type TopKItem = { address?: string system?: string sourceCluster?: string sourceNamespace?: string sourceService?: string statement?: string totalCount?: string avgDuration?: string errorRate?: string } export type StatementTopKResponse = { items?: TopKItem[] } export type SpansRequest = { clusterName?: string namespace?: string clauses?: OperatorClause[] sort?: string startTime?: string endTime?: string page?: number pageSize?: number } export type SQLSpan = { sourcePod?: string startTime?: string status?: InsightIoApiTracingV1alpha1Model.TraceStatus duration?: string traceId?: string spanId?: string } export type SpansResponse = { items?: SQLSpan[] pagination?: InsightIoApiTypeV1alpha1Page.Pagination }