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 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 {
|
interface Infra {
|
||||||
id: number;
|
id: number;
|
||||||
type: MetaInfraType;
|
type: MetaInfraType;
|
||||||
childId: number;
|
childId: number;
|
||||||
createDate: Date;
|
createDate: Date;
|
||||||
|
probe: Probe;
|
||||||
|
target: Target;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Infra;
|
export default Infra;
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
|
|
||||||
import Probe from '@overflow/probe/api/model/Probe';
|
|
||||||
|
|
||||||
interface InfraMachine {
|
interface InfraMachine {
|
||||||
id: number;
|
id: number;
|
||||||
probe: Probe;
|
|
||||||
meta: string;
|
meta: string;
|
||||||
createDate: Date;
|
createDate: Date;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,16 +1,23 @@
|
||||||
import MetaProbeStatus from '@overflow/meta/api/model/MetaProbeStatus';
|
import MetaProbeStatus from '@overflow/meta/api/model/MetaProbeStatus';
|
||||||
import Domain from '@overflow/domain/api/model/Domain';
|
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 {
|
interface Probe {
|
||||||
id?: number;
|
id?: number;
|
||||||
status: MetaProbeStatus;
|
status: MetaProbeStatus; // INITIAL / NORMAL
|
||||||
description: string;
|
description: string;
|
||||||
createDate?: Date;
|
createDate?: Date;
|
||||||
lastPollingDate?: Date;
|
|
||||||
nextPollingDate?: Date;
|
|
||||||
domain?: Domain;
|
domain?: Domain;
|
||||||
probeKey: string;
|
probeKey: string;
|
||||||
encryptionKey: string;
|
encryptionKey: string;
|
||||||
|
targetCount: number;
|
||||||
|
sensorCount: number;
|
||||||
|
displayName: string;
|
||||||
|
cidr: string;
|
||||||
|
authorizeDate: Date;
|
||||||
|
authorizeMember: Member;
|
||||||
|
host: InfraHost;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Probe;
|
export default Probe;
|
||||||
|
|
|
@ -4,8 +4,8 @@ import Infra from '@overflow/infra/api/model/Infra';
|
||||||
interface Target {
|
interface Target {
|
||||||
id?: number;
|
id?: number;
|
||||||
createDate?: Date;
|
createDate?: Date;
|
||||||
probe: Probe;
|
displayName: string;
|
||||||
infra: Infra;
|
description: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Target;
|
export default Target;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user