export interface NdmSwitchDiagInfo {
  [key: string]: any;
  cpuRatio?: string; // 因环境不同可能不存在
  memoryRatio?: string; // 因环境不同可能不存在
  temperature?: number;
  logTime?: string;
  info?: {
    overFlowPorts?: string[];
    portInfoList?: NdmSwitchPortInfo[];
  };
}

export interface NdmSwitchPortInfo {
  flow: number;
  inBytes: number;
  inFlow: number;
  lastInBytes: number;
  lastOutBytes: number;
  outBytes: number;
  outFlow: number;
  portName: string;
  upDown: number;

  lastChangeTime: string;

  opticalTemperature?: number;
  opticalVoltage?: number;
  opticalBiasCurrent?: number;
  opticalReceivePower?: number;
  opticalTransmitPower?: number;
}
