/* eslint-disable */ // @ts-nocheck /* * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY */ import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb" import * as InsightIoApiResourceV1alpha1Pod from "./pod.pb" import * as InsightIoApiResourceV1alpha1Type from "./type.pb" import * as InsightIoApiResourceV1alpha1Workload from "./workload.pb" export enum ClusterPhase { CLUSTER_PHASE_UNSPECIFIED = "CLUSTER_PHASE_UNSPECIFIED", UNKNOWN = "UNKNOWN", CREATING = "CREATING", RUNNING = "RUNNING", UPDATING = "UPDATING", DELETING = "DELETING", FAILED = "FAILED", } export enum ClusterProvider { GENERIC = "GENERIC", DAOCLOUD_KUBESPRAY = "DAOCLOUD_KUBESPRAY", DAOCLOUD_CLUSTER_API = "DAOCLOUD_CLUSTER_API", DAOCLOUD_DCE4 = "DAOCLOUD_DCE4", REDHAT_OPENSHIFT4 = "REDHAT_OPENSHIFT4", SUSE_RANCHER = "SUSE_RANCHER", VMWARE_TANZU = "VMWARE_TANZU", AWS_EKS = "AWS_EKS", ALIYUN_ACK = "ALIYUN_ACK", TENCENT_TKE = "TENCENT_TKE", HUAWEI_CCE = "HUAWEI_CCE", MICROSOFT_AZURE = "MICROSOFT_AZURE", } export enum InsightAgentStatus { NOT_INSTALLED = "NOT_INSTALLED", HEALTHY = "HEALTHY", UNHEALTHY = "UNHEALTHY", OFFLINE = "OFFLINE", } export enum Role { ROLE_UNSPECIFIED = "ROLE_UNSPECIFIED", ROLE_VIEWER = "ROLE_VIEWER", ROLE_ADMIN = "ROLE_ADMIN", } export enum AccessScope { SCOPE_UNSPECIFIED = "SCOPE_UNSPECIFIED", ClusterScoped = "ClusterScoped", Namespaced = "Namespaced", } export enum serverComponentName { NAME_UNSPECIFIED = "NAME_UNSPECIFIED", VMINSERT = "VMINSERT", VMALERT = "VMALERT", VMALERTMANAGER = "VMALERTMANAGER", VMSELECT = "VMSELECT", VMSTORAGE = "VMSTORAGE", GRAFANA = "GRAFANA", JAEGER_COLLECTOR = "JAEGER_COLLECTOR", JAEGER_QUERY = "JAEGER_QUERY", OPENTELEMETRY_COLLECTOR = "OPENTELEMETRY_COLLECTOR", ELASTICSEARCH = "ELASTICSEARCH", KAFKA = "KAFKA", } export type ListClustersResponse = { items?: Cluster[] } export type Cluster = { name?: string kubeSystemId?: string phase?: ClusterPhase role?: Role accessScope?: AccessScope } export type ListClusterRequest = { showAllCluster?: boolean } export type ListClusterSummaryRequest = { name?: string version?: string phase?: ClusterPhase showAllCluster?: boolean page?: number pageSize?: number } export type ListClusterSummaryResponse = { items?: ClusterSummary[] pagination?: InsightIoApiTypeV1alpha1Page.Pagination } export type GetClusterRequest = { name?: string } export type ClusterSummary = { name?: string kubeSystemId?: string phase?: ClusterPhase nodeNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary insightAgentStatus?: insightAgentState role?: Role accessScope?: AccessScope } export type ClusterDetail = { name?: string kubeSystemId?: string phase?: ClusterPhase provider?: ClusterProvider kubernetesVersion?: string creationTimestamp?: string nodeNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary deploymentNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary statefulsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary daemonsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary gpuNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary insightAgentStatus?: insightAgentState } export type insightAgentState = { status?: InsightAgentStatus version?: string createTime?: string traceStatus?: InsightAgentStatus } export type GetAgentSummaryRequest = { cluster?: string } export type AgentSummary = { insightAgentState?: insightAgentState agentModuleStatus?: agentModuleStatus } export type agentModuleStatus = { pods?: InsightIoApiResourceV1alpha1Pod.Pod[] } export type ServerComponentSummary = { summary?: serverComponent[] } export type serverComponent = { name?: serverComponentName workloadName?: string workloadNamespace?: string workloadKind?: InsightIoApiResourceV1alpha1Workload.WorkloadKind phase?: InsightIoApiResourceV1alpha1Workload.WorkloadPhase availability?: boolean message?: string version?: string podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary creationTimestamp?: string }