From a6176bad1cc6985af217521fea70178c2af757a6 Mon Sep 17 00:00:00 2001 From: snoop Date: Mon, 3 Jul 2017 16:05:55 +0900 Subject: [PATCH] meta ing --- src/ts/discovery/api/model/PortType.ts | 12 ++-- .../infra/api/service/InfraServiceService.ts | 1 + src/ts/meta/api/model/MetaCrawler.ts | 36 ++++++++++ src/ts/meta/api/model/MetaCrawlerInputItem.ts | 19 ++++++ src/ts/meta/api/model/MetaInfraType.ts | 18 +++++ src/ts/meta/api/model/MetaInfraVendor.ts | 67 +++++++++++++++++++ src/ts/meta/api/model/MetaInputType.ts | 17 +++++ src/ts/meta/api/model/MetaMemberStatus.ts | 7 ++ .../meta/api/model/MetaNoAuthProbeStatus.ts | 7 ++ src/ts/meta/api/model/MetaNotification.ts | 9 +++ .../meta/api/model/MetaProbeArchitecture.ts | 8 +++ src/ts/meta/api/model/MetaProbeOs.ts | 8 +++ src/ts/meta/api/model/MetaProbePackage.ts | 13 ++++ src/ts/meta/api/model/MetaProbeStatus.ts | 7 ++ src/ts/meta/api/model/MetaProbeTaskType.ts | 9 +++ src/ts/meta/api/model/MetaProbeVersion.ts | 8 +++ src/ts/meta/api/model/MetaSensorItem.ts | 12 ++++ src/ts/meta/api/model/MetaSensorItemType.ts | 9 +++ src/ts/meta/api/model/MetaSensorStatus.ts | 7 ++ src/ts/meta/api/model/MetaVendorCrawler.ts | 9 +++ .../api/model/MetaVendorCrawlerSensorItem.ts | 15 +++++ src/ts/meta/api/model/_ | 0 22 files changed, 293 insertions(+), 5 deletions(-) create mode 100644 src/ts/meta/api/model/MetaCrawler.ts create mode 100644 src/ts/meta/api/model/MetaCrawlerInputItem.ts create mode 100644 src/ts/meta/api/model/MetaInfraType.ts create mode 100644 src/ts/meta/api/model/MetaInfraVendor.ts create mode 100644 src/ts/meta/api/model/MetaInputType.ts create mode 100644 src/ts/meta/api/model/MetaMemberStatus.ts create mode 100644 src/ts/meta/api/model/MetaNoAuthProbeStatus.ts create mode 100644 src/ts/meta/api/model/MetaNotification.ts create mode 100644 src/ts/meta/api/model/MetaProbeArchitecture.ts create mode 100644 src/ts/meta/api/model/MetaProbeOs.ts create mode 100644 src/ts/meta/api/model/MetaProbePackage.ts create mode 100644 src/ts/meta/api/model/MetaProbeStatus.ts create mode 100644 src/ts/meta/api/model/MetaProbeTaskType.ts create mode 100644 src/ts/meta/api/model/MetaProbeVersion.ts create mode 100644 src/ts/meta/api/model/MetaSensorItem.ts create mode 100644 src/ts/meta/api/model/MetaSensorItemType.ts create mode 100644 src/ts/meta/api/model/MetaSensorStatus.ts create mode 100644 src/ts/meta/api/model/MetaVendorCrawler.ts create mode 100644 src/ts/meta/api/model/MetaVendorCrawlerSensorItem.ts delete mode 100644 src/ts/meta/api/model/_ diff --git a/src/ts/discovery/api/model/PortType.ts b/src/ts/discovery/api/model/PortType.ts index 972b0a8..1839ac9 100644 --- a/src/ts/discovery/api/model/PortType.ts +++ b/src/ts/discovery/api/model/PortType.ts @@ -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; \ No newline at end of file diff --git a/src/ts/infra/api/service/InfraServiceService.ts b/src/ts/infra/api/service/InfraServiceService.ts index 28bf6df..dcb1a1f 100644 --- a/src/ts/infra/api/service/InfraServiceService.ts +++ b/src/ts/infra/api/service/InfraServiceService.ts @@ -9,6 +9,7 @@ class InfraServiceService extends Service { public regist(infraService :InfraService): InfraService { + return null; } diff --git a/src/ts/meta/api/model/MetaCrawler.ts b/src/ts/meta/api/model/MetaCrawler.ts new file mode 100644 index 0000000..89ee451 --- /dev/null +++ b/src/ts/meta/api/model/MetaCrawler.ts @@ -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; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaCrawlerInputItem.ts b/src/ts/meta/api/model/MetaCrawlerInputItem.ts new file mode 100644 index 0000000..d4eda22 --- /dev/null +++ b/src/ts/meta/api/model/MetaCrawlerInputItem.ts @@ -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; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaInfraType.ts b/src/ts/meta/api/model/MetaInfraType.ts new file mode 100644 index 0000000..4d30a9e --- /dev/null +++ b/src/ts/meta/api/model/MetaInfraType.ts @@ -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; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaInfraVendor.ts b/src/ts/meta/api/model/MetaInfraVendor.ts new file mode 100644 index 0000000..4b5813c --- /dev/null +++ b/src/ts/meta/api/model/MetaInfraVendor.ts @@ -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; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaInputType.ts b/src/ts/meta/api/model/MetaInputType.ts new file mode 100644 index 0000000..54704bb --- /dev/null +++ b/src/ts/meta/api/model/MetaInputType.ts @@ -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; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaMemberStatus.ts b/src/ts/meta/api/model/MetaMemberStatus.ts new file mode 100644 index 0000000..8287c19 --- /dev/null +++ b/src/ts/meta/api/model/MetaMemberStatus.ts @@ -0,0 +1,7 @@ + +interface MetaMemberStatus { + id: number; + name: string; +} + +export default MetaMemberStatus; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaNoAuthProbeStatus.ts b/src/ts/meta/api/model/MetaNoAuthProbeStatus.ts new file mode 100644 index 0000000..d35416c --- /dev/null +++ b/src/ts/meta/api/model/MetaNoAuthProbeStatus.ts @@ -0,0 +1,7 @@ + +interface MetaNoAuthProbeStatus { + id: number; + name: string; +} + +export default MetaNoAuthProbeStatus; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaNotification.ts b/src/ts/meta/api/model/MetaNotification.ts new file mode 100644 index 0000000..bfb1f13 --- /dev/null +++ b/src/ts/meta/api/model/MetaNotification.ts @@ -0,0 +1,9 @@ + +interface MetaNotification { + id: number; + createDate: Date; + name: string; + description: string; +} + +export default MetaNotification; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaProbeArchitecture.ts b/src/ts/meta/api/model/MetaProbeArchitecture.ts new file mode 100644 index 0000000..f8ffb4f --- /dev/null +++ b/src/ts/meta/api/model/MetaProbeArchitecture.ts @@ -0,0 +1,8 @@ + +interface MetaProbeArchitecture { + id: number; + architecture: string; + createDate: Date; +} + +export default MetaProbeArchitecture; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaProbeOs.ts b/src/ts/meta/api/model/MetaProbeOs.ts new file mode 100644 index 0000000..1c319cb --- /dev/null +++ b/src/ts/meta/api/model/MetaProbeOs.ts @@ -0,0 +1,8 @@ + +interface MetaProbeOs { + id: number; + name: string; + createDate: Date; +} + +export default MetaProbeOs; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaProbePackage.ts b/src/ts/meta/api/model/MetaProbePackage.ts new file mode 100644 index 0000000..be24a88 --- /dev/null +++ b/src/ts/meta/api/model/MetaProbePackage.ts @@ -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; diff --git a/src/ts/meta/api/model/MetaProbeStatus.ts b/src/ts/meta/api/model/MetaProbeStatus.ts new file mode 100644 index 0000000..5ad4413 --- /dev/null +++ b/src/ts/meta/api/model/MetaProbeStatus.ts @@ -0,0 +1,7 @@ + +interface MetaProbeStatus { + id: number; + name: string; +} + +export default MetaProbeStatus; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaProbeTaskType.ts b/src/ts/meta/api/model/MetaProbeTaskType.ts new file mode 100644 index 0000000..9fdf7c2 --- /dev/null +++ b/src/ts/meta/api/model/MetaProbeTaskType.ts @@ -0,0 +1,9 @@ + +interface MetaProbeTaskType { + id: number; + name: string; + description: string; + createDate: Date; +} + +export default MetaProbeTaskType; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaProbeVersion.ts b/src/ts/meta/api/model/MetaProbeVersion.ts new file mode 100644 index 0000000..6ca215b --- /dev/null +++ b/src/ts/meta/api/model/MetaProbeVersion.ts @@ -0,0 +1,8 @@ + +interface MetaProbeVersion { + id: number; + version: string; + createDate: Date; +} + +export default MetaProbeVersion; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaSensorItem.ts b/src/ts/meta/api/model/MetaSensorItem.ts new file mode 100644 index 0000000..f942ce3 --- /dev/null +++ b/src/ts/meta/api/model/MetaSensorItem.ts @@ -0,0 +1,12 @@ + +import MetaProbeArchitecture from './MetaProbeArchitecture'; + +interface MetaSensorItem { + id: number; + metaSensorItemType: MetaSensorItemType; + key: string; + name: string; + createDate: Date; +} + +export default MetaSensorItem; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaSensorItemType.ts b/src/ts/meta/api/model/MetaSensorItemType.ts new file mode 100644 index 0000000..19fe899 --- /dev/null +++ b/src/ts/meta/api/model/MetaSensorItemType.ts @@ -0,0 +1,9 @@ + +interface MetaSensorItemType { + id: number; + name: string; + description: string; + createDate: Date; +} + +export default MetaSensorItemType; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaSensorStatus.ts b/src/ts/meta/api/model/MetaSensorStatus.ts new file mode 100644 index 0000000..ec1d7f6 --- /dev/null +++ b/src/ts/meta/api/model/MetaSensorStatus.ts @@ -0,0 +1,7 @@ + +interface MetaSensorStatus { + id: number; + name: string; +} + +export default MetaSensorStatus; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaVendorCrawler.ts b/src/ts/meta/api/model/MetaVendorCrawler.ts new file mode 100644 index 0000000..aecd549 --- /dev/null +++ b/src/ts/meta/api/model/MetaVendorCrawler.ts @@ -0,0 +1,9 @@ + +interface MetaVendorCrawler { + id: number; + metaCrawler: MetaCrawler; + metaInfraVendor: MetaInfraVendor; + createDate: Date; +} + +export default MetaVendorCrawler; \ No newline at end of file diff --git a/src/ts/meta/api/model/MetaVendorCrawlerSensorItem.ts b/src/ts/meta/api/model/MetaVendorCrawlerSensorItem.ts new file mode 100644 index 0000000..f70cb67 --- /dev/null +++ b/src/ts/meta/api/model/MetaVendorCrawlerSensorItem.ts @@ -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; \ No newline at end of file diff --git a/src/ts/meta/api/model/_ b/src/ts/meta/api/model/_ deleted file mode 100644 index e69de29..0000000