export type Sub2ApiOpsAction = "diagnosis" | "channels";

export interface Sub2ApiOpsOptions {
  action: Sub2ApiOpsAction;
  targetId: string;
  json: boolean;
  platform: string | null;
  group: string | null;
  diagnosisId: string | null;
  timeRange: "5m" | "30m" | "1h" | "6h" | "24h";
  channel: string | null;
  model: string | null;
  window: "7d" | "15d" | "30d";
  pageToken: string | null;
  recordId: string | null;
}

export interface Sub2ApiOpsTarget {
  id: string;
  route: string;
  namespace: string;
  runtimeMode: "k3s" | "host-docker";
  hostDockerAppPort: number | null;
  hostDockerEnvPath: string | null;
  appSecretName: string;
}
