chore: apis

This commit is contained in:
yangsy
2025-08-22 11:19:51 +08:00
parent 80a30a3cba
commit 29ff837da8
9 changed files with 9 additions and 7 deletions

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;
}

View File

@@ -0,0 +1,8 @@
export * from './diag-info/ndm-camera-diag-info';
export * from './diag-info/ndm-decoder-diag-info';
export * from './diag-info/ndm-nvr-diag-info';
export * from './diag-info/ndm-security-box-diag-info';
export * from './diag-info/ndm-server-diag-info';
export * from './diag-info/ndm-switch-diag-info';
export * from './device-id-type';