api model has changed.
This commit is contained in:
parent
cf8037063a
commit
3edcb8985b
|
@ -1,11 +1,15 @@
|
|||
|
||||
import MetaInfraType from '@overflow/meta/api/model/MetaInfraType';
|
||||
import Probe from '@overflow/probe/api/model/Probe';
|
||||
import Target from '@overflow/target/api/model/Target';
|
||||
|
||||
interface Infra {
|
||||
id: number;
|
||||
type: MetaInfraType;
|
||||
childId: number;
|
||||
createDate: Date;
|
||||
probe: Probe;
|
||||
target: Target;
|
||||
}
|
||||
|
||||
export default Infra;
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
|
||||
import Probe from '@overflow/probe/api/model/Probe';
|
||||
|
||||
interface InfraMachine {
|
||||
id: number;
|
||||
probe: Probe;
|
||||
meta: string;
|
||||
createDate: Date;
|
||||
}
|
||||
|
|
|
@ -1,16 +1,23 @@
|
|||
import MetaProbeStatus from '@overflow/meta/api/model/MetaProbeStatus';
|
||||
import Domain from '@overflow/domain/api/model/Domain';
|
||||
import Member from '@overflow/member/api/model/Member';
|
||||
import InfraHost from '@overflow/infra/api/model/InfraHost';
|
||||
|
||||
interface Probe {
|
||||
id?: number;
|
||||
status: MetaProbeStatus;
|
||||
status: MetaProbeStatus; // INITIAL / NORMAL
|
||||
description: string;
|
||||
createDate?: Date;
|
||||
lastPollingDate?: Date;
|
||||
nextPollingDate?: Date;
|
||||
domain?: Domain;
|
||||
probeKey: string;
|
||||
encryptionKey: string;
|
||||
targetCount: number;
|
||||
sensorCount: number;
|
||||
displayName: string;
|
||||
cidr: string;
|
||||
authorizeDate: Date;
|
||||
authorizeMember: Member;
|
||||
host: InfraHost;
|
||||
}
|
||||
|
||||
export default Probe;
|
||||
|
|
|
@ -4,8 +4,8 @@ import Infra from '@overflow/infra/api/model/Infra';
|
|||
interface Target {
|
||||
id?: number;
|
||||
createDate?: Date;
|
||||
probe: Probe;
|
||||
infra: Infra;
|
||||
displayName: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export default Target;
|
||||
|
|
Loading…
Reference in New Issue
Block a user