/* eslint-disable */ // @ts-nocheck /* * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY */ import * as InsightIoApiSpan_metricV1alpha1Otelspankind from "../../span_metric/v1alpha1/otelspankind.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 FilterOperator { EQUAL = "EQUAL", NOT_EQUAL = "NOT_EQUAL", } export type TracesResponseChunk = { traces?: InsightIoApiTracingV1alpha1Model.Trace[] } export type SpansResponseChunk = { items?: InsightIoApiTracingV1alpha1Model.SpanSummary[] pagination?: InsightIoApiTypeV1alpha1Page.Pagination } type BaseTraceQueryParameters = { serviceName?: string operationName?: string tags?: {[key: string]: string} start?: string end?: string durationMin?: string durationMax?: string limit?: number namespace?: string } export type TraceQueryParameters = BaseTraceQueryParameters & OneOf<{ cluster: string; clusterName: string }> export type TagFilter = { key?: string value?: string operation?: FilterOperator } type BaseSpanQueryParameters = { namespace?: string serviceName?: string[] operationName?: string[] tags?: TagFilter[] durationMin?: string durationMax?: string start?: string end?: string traceId?: string spanId?: string page?: number pageSize?: number interval?: string spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[] sort?: string onlyErrorSpans?: boolean onlyRootSpans?: boolean } export type SpanQueryParameters = BaseSpanQueryParameters & OneOf<{ cluster: string; clusterName: string }> export type SearchResponse = { response?: string } export type SpanDurationHistogram = { timestamp?: string p75Duration?: string p95Duration?: string p99Duration?: string avgDuration?: string } export type SpanCountHistogram = { timestamp?: string normal?: string error?: string total?: string } export type QuerySpanHistogramResponse = { countItems?: SpanCountHistogram[] durationItems?: SpanDurationHistogram[] }