This commit is contained in:
snoop 2017-07-03 16:05:55 +09:00
parent d21e88cd99
commit a6176bad1c
22 changed files with 293 additions and 5 deletions

View File

@ -1,8 +1,10 @@
enum PortType {
TCP = 1,
UDP = 2,
TLS = 3,
}
// enum PortType {
// TCP = 1,
// UDP = 2,
// TLS = 3,
// }
type PortType = "TCP" | "UDP" | "TLS";
export default PortType;

View File

@ -9,6 +9,7 @@ class InfraServiceService extends Service {
public regist(infraService :InfraService): InfraService {
return null;
}

View File

@ -0,0 +1,36 @@
interface MetaCrawler {
id: number;
createDate: Date;
name: string;
description: string;
}
enum MetaCrawler_ID {
ACTIVEDIRECTORY_CRAWLER = 1,
CASSANDRA_CRAWLER = 2,
DHCP_CRAWLER = 3,
DNS_CRAWLER = 4,
FTP_CRAWLER = 5,
HTTP_CRAWLER = 6,
IMAP_CRAWLER = 7,
LDAP_CRAWLER = 8,
MONGODB_CRAWLER = 9,
MSSQL_CRAWLER = 10,
MYSQL_CRAWLER = 11,
NETBIOS_CRAWLER = 12,
ORACLE_CRAWLER = 13,
POP_CRAWLER = 14,
POSTGRESQL_CRAWLER = 15,
REDIS_CRAWLER = 16,
RMI_CRAWLER = 17,
SMB_CRAWLER = 18,
SMTP_CRAWLER = 19,
SNMP_CRAWLER = 20,
SSH_CRAWLER = 21,
TELNET_CRAWLER = 22,
WMI_CRAWLER = 23,
UNKNOWN_CRAWLER = 24
}
export default MetaCrawler;

View File

@ -0,0 +1,19 @@
import MetaInputType from './MetaInputType';
import MetaCrawler from './MetaCrawler';
interface MetaCrawlerInputItem {
id: number;
metaInputType: MetaInputType;
metaCrawler: MetaCrawler;
description: string;
name: string;
createDate: Date;
required: boolean;
defaultValue: string;
pattern: string;
keyName: string;
keyValue: string;
}
export default MetaCrawlerInputItem;

View File

@ -0,0 +1,18 @@
interface MetaInfraType {
id: number;
name: string;
createDate: Date;
}
enum MetaInfraType_ID {
MACHINE = 1,
HOST = 2,
OS = 3,
OS_APPLICATION = 4,
OS_DAEMON = 5,
OS_PORT = 6,
OS_SERVICE = 7
}
export default MetaInfraType;

View File

@ -0,0 +1,67 @@
import MetaInfraType from './MetaInfraType';
interface MetaInfraVendor {
id: number;
name: string;
createDate: Date;
metaInfraType: MetaInfraType;
}
enum MetaInfraVendor_Machine_ID {
APPLE = 1,
MICROSOFT = 2,
ASUS = 3,
HP = 4,
DELL = 5,
LENOVO = 6,
ACER = 7,
SAMSUNG = 8,
LG = 9,
CISCO = 10
}
enum MetaInfraVendor_HOST_ID {
Windows = 11,
Linux = 12,
MacOS = 13,
Ubuntu = 14,
CentOS = 15,
Fedora = 16,
RedHat = 17,
Debian = 18,
SUSE = 19,
CoreOS = 20,
AmazonLinux = 21,
Kubernetes = 22,
Docker = 23,
iOS = 24,
Android = 25
}
enum MetaInfraVendor_OS_ID {
Windows = 26,
MacOS = 27,
Ubuntu = 28,
CentOS = 29,
Fedora = 30,
RedHat = 31,
Debian = 32,
SUSE = 33,
CoreOS = 34,
AmazonLinux = 35,
Kubernetes = 36,
Docker = 37,
iOS = 38,
Android = 39
}
enum MetaInfraVendor_SERVICE_ID {
MySql = 40,
PostgreSQL = 41,
WMI = 42,
SNMP_V2 = 43,
UNKNOWN = 44
}
export default MetaInfraVendor;

View File

@ -0,0 +1,17 @@
interface MetaInputType {
id: number;
name: string;
description: string;
createDate: Date;
}
enum MetaInputType_ID {
TEXT_TYPE = 1,
PASSWORD_TYPE = 2,
NUMBER_TYPE = 3,
BOOLEAN_TYPE = 4,
SELECT_TYPE = 5
}
export default MetaInputType;

View File

@ -0,0 +1,7 @@
interface MetaMemberStatus {
id: number;
name: string;
}
export default MetaMemberStatus;

View File

@ -0,0 +1,7 @@
interface MetaNoAuthProbeStatus {
id: number;
name: string;
}
export default MetaNoAuthProbeStatus;

View File

@ -0,0 +1,9 @@
interface MetaNotification {
id: number;
createDate: Date;
name: string;
description: string;
}
export default MetaNotification;

View File

@ -0,0 +1,8 @@
interface MetaProbeArchitecture {
id: number;
architecture: string;
createDate: Date;
}
export default MetaProbeArchitecture;

View File

@ -0,0 +1,8 @@
interface MetaProbeOs {
id: number;
name: string;
createDate: Date;
}
export default MetaProbeOs;

View File

@ -0,0 +1,13 @@
import MetaProbeVersion from './MetaProbeVersion';
import MetaProbeOs from './MetaProbeOs';
import MetaProbeArchitecture from './MetaProbeArchitecture';
interface MetaProbePackage {
id: number;
version: MetaProbeVersion;
os: MetaProbeOs;
architecture: MetaProbeArchitecture;
createDate: Date;
}
export default MetaProbePackage;

View File

@ -0,0 +1,7 @@
interface MetaProbeStatus {
id: number;
name: string;
}
export default MetaProbeStatus;

View File

@ -0,0 +1,9 @@
interface MetaProbeTaskType {
id: number;
name: string;
description: string;
createDate: Date;
}
export default MetaProbeTaskType;

View File

@ -0,0 +1,8 @@
interface MetaProbeVersion {
id: number;
version: string;
createDate: Date;
}
export default MetaProbeVersion;

View File

@ -0,0 +1,12 @@
import MetaProbeArchitecture from './MetaProbeArchitecture';
interface MetaSensorItem {
id: number;
metaSensorItemType: MetaSensorItemType;
key: string;
name: string;
createDate: Date;
}
export default MetaSensorItem;

View File

@ -0,0 +1,9 @@
interface MetaSensorItemType {
id: number;
name: string;
description: string;
createDate: Date;
}
export default MetaSensorItemType;

View File

@ -0,0 +1,7 @@
interface MetaSensorStatus {
id: number;
name: string;
}
export default MetaSensorStatus;

View File

@ -0,0 +1,9 @@
interface MetaVendorCrawler {
id: number;
metaCrawler: MetaCrawler;
metaInfraVendor: MetaInfraVendor;
createDate: Date;
}
export default MetaVendorCrawler;

View File

@ -0,0 +1,15 @@
import MetaInfraVendor from './MetaInfraVendor';
import MetaSensorItem from './MetaSensorItem';
interface MetaVendorCrawlerSensorItem {
id: number;
interval: string;
warnCondition: string;
createDate: Date;
metaSensorItem: MetaSensorItem;
metaInfraVendor: MetaInfraVendor;
crawlerId: number;
}
export default MetaVendorCrawlerSensorItem;