chore: diag-info

This commit is contained in:
2025-08-12 01:13:22 +08:00
parent d5762713b9
commit 100eef300a
7 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
export type { NdmCameraDiagInfo } from './ndm-camera-diag-info';
export type { NdmDecoderDiagInfo } from './ndm-decoder-diag-info';
export type { NdmNvrDiagInfo } from './ndm-nvr-diag-info';
export type { NdmSecurityBoxDiagInfo } from './ndm-security-box-diag-info';
export type { NdmServerDiagInfo } from './ndm-server-diag-info';
export type { NdmSwitchDiagInfo } from './ndm-switch-diag-info';

View File

@@ -0,0 +1,5 @@
export interface NdmCameraDiagInfo {
[key: string]: any;
logTime: string;
info: string;
}

View File

@@ -0,0 +1,14 @@
export interface NdmDecoderDiagInfo {
[key: string]: any;
logTime: string;
stCommonInfo: {
设备ID: string;
软件版本: string;
生产厂商: string;
设备别名: string;
设备型号: string;
硬件版本: string;
内存使用率: string;
CPU使用率: string;
};
}

View File

@@ -0,0 +1,23 @@
export interface NdmNvrDiagInfo {
[key: string]: any;
logTime: string;
info: {
diskHealth: number[];
groupInfoList: {
freeSize: number;
state: number;
stateValue: string;
totalSize: number;
}[];
};
stCommonInfo: {
设备ID: string;
软件版本: string;
生产厂商: string;
设备别名: string;
设备型号: string;
硬件版本: string;
内存使用率: string;
CPU使用率: string;
};
}

View File

@@ -0,0 +1,21 @@
export interface NdmSecurityBoxDiagInfo {
[key: string]: any;
info: [
{
addrCode: number;
circuits: {
current: number;
status: number;
voltage: number;
}[];
fanSpeeds: number[];
humidity: number;
switches: number[];
temperature: number;
},
];
stCommonInfo: {
内存使用率: string;
CPU使用率: string;
};
}

View File

@@ -0,0 +1,9 @@
export interface NdmServerDiagInfo {
[key: string]: any;
commInfo: {
CPU使用率: string;
内存使用率: string;
磁盘使用率: string;
系统运行时间: string;
};
}

View File

@@ -0,0 +1,22 @@
export interface NdmSwitchDiagInfo {
[key: string]: any;
cpuRatio?: string; // 因环境不同可能不存在
memoryRatio?: string; // 因环境不同可能不存在
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;
}