/* eslint-disable */ // @ts-nocheck /* * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY */ import * as InsightIoApiMetricV1alpha1Metric from "../../metric/v1alpha1/metric.pb" import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb" import * as InsightIoApiSpan_metricV1alpha1Otelspankind from "./otelspankind.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); type BaseMetricsQueryBaseRequest = { namespace?: string instanceName?: string extensionFilters?: string serviceNames?: string[] groupByOperation?: boolean endTime?: string lookback?: string step?: string ratePer?: string spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[] } export type MetricsQueryBaseRequest = BaseMetricsQueryBaseRequest & OneOf<{ cluster: string; clusterName: string }> type BaseGetApdexRequest = { namespace?: string name?: string apdexThreshold?: string startTime?: string endTime?: string extensionFilters?: string } export type GetApdexRequest = BaseGetApdexRequest & OneOf<{ cluster: string; clusterName: string }> export type GetServiceDetailResponse = { p95Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[] p75Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[] p50Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[] reqRateMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[] errorsRateMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[] } export type GetOperationDetailRequest = { clusterName?: string namespace?: string serviceName?: string sort?: string page?: number pageSize?: number extensionFilters?: string endTime?: string lookback?: string step?: string ratePer?: string spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[] } export type MetricsWithOperation = { operationName?: string metricsMap?: {[key: string]: MetricsEntity} spanKind?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind } export type MetricsEntity = { metrics?: InsightIoApiMetricV1alpha1Metric.samplePair[] metricsAvg?: number } export type GetOperationDetailResponse = { metrics?: MetricsWithOperation[] pagination?: InsightIoApiTypeV1alpha1Page.Pagination } type BaseGetServicesRequest = { namespace?: string extensionFilters?: string endTime?: string lookback?: string spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[] page?: number pageSize?: number sort?: string } export type GetServicesRequest = BaseGetServicesRequest & OneOf<{ cluster: string; clusterName: string }> export type ServiceItem = { serviceName?: string namespace?: string reqRate?: number repLatency?: number errorRate?: number } export type GetServicesResponse = { items?: ServiceItem[] pagination?: InsightIoApiTypeV1alpha1Page.Pagination } export type GetServicePodsRequest = { clusterName?: string namespace?: string name?: string sort?: string page?: number pageSize?: number extensionFilters?: string endTime?: string lookback?: string step?: string ratePer?: string spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[] } export type PodItem = { podName?: string clusterName?: string namespace?: string metricsMap?: {[key: string]: MetricsEntity} reqPercentage?: number } export type GetServicePodsResponse = { items?: PodItem[] pagination?: InsightIoApiTypeV1alpha1Page.Pagination }