api model has changed.

This commit is contained in:
insanity 2017-07-28 11:06:00 +09:00
parent cf8037063a
commit 3edcb8985b
4 changed files with 16 additions and 8 deletions

View File

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

View File

@ -1,9 +1,6 @@
import Probe from '@overflow/probe/api/model/Probe';
interface InfraMachine {
id: number;
probe: Probe;
meta: string;
createDate: Date;
}

View File

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

View File

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