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

View File

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

View File

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

View File

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