/* eslint-disable */ // @ts-nocheck /* * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY */ import * as InsightIoApiTypeV1alpha1Objectmeta from "../../type/v1alpha1/objectmeta.pb" import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb" export enum StatusPhase { Pending = "Pending", Running = "Running", Failed = "Failed", } export type BaseProbeRequest = { clusterName?: string namespace?: string jobName?: string } export type CreateProbeRequest = { clusterName?: string namespace?: string probe?: ProbeSpec } export type UpdateProbeRequest = { clusterName?: string namespace?: string jobName?: string module?: string targets?: Targets interval?: string scrapeTimeout?: string } export type Status = { phase?: StatusPhase } export type Probe = { kind?: string apiVersion?: string metadata?: InsightIoApiTypeV1alpha1Objectmeta.ObjectMeta spec?: ProbeSpec status?: Status } export type ProbeSpec = { jobName?: string module?: string prober?: ProberSpec targets?: Targets interval?: string scrapeTimeout?: string relabelings?: RelabelConfig[] proxyUrl?: string enableHttp2?: boolean filterRunning?: boolean honorTimestamps?: boolean honorLabels?: boolean metricRelabelings?: RelabelConfig[] followRedirects?: boolean sampleLimit?: string } export type ProberSpec = { url?: string scheme?: string path?: string proxyUrl?: string name?: string } export type RelabelConfig = { sourceLabels?: string[] separator?: string targetLabel?: string regex?: string modulus?: string replacement?: string action?: string } export type TargetsStaticConfig = { static?: string[] labels?: {[key: string]: string} relabelingConfigs?: RelabelConfig[] } export type TargetsIngress = { } export type Targets = { staticConfig?: TargetsStaticConfig } export type ListProbesRequest = { clusterName?: string namespace?: string fuzzyName?: string page?: number pageSize?: number sorts?: string } export type ListProbesResponse = { items?: Probe[] pagination?: InsightIoApiTypeV1alpha1Page.Pagination } export type GetProbersRequest = { clusterName?: string } export type ClusterProbersResponseProber = { prober?: ProberSpec modules?: string[] configmapMeta?: ClusterProbersResponseConfigmapMeta } export type ClusterProbersResponseConfigmapMeta = { clusterName?: string namespace?: string name?: string data?: string } export type ClusterProbersResponse = { probers?: ClusterProbersResponseProber[] }