app/@overflow/model/discovery/Host.ts

29 lines
628 B
TypeScript
Raw Normal View History

2018-09-03 16:12:10 +00:00
import { Zone } from './Zone';
2018-09-12 11:29:24 +00:00
// import { Port } from './Port';
2018-09-17 14:19:16 +00:00
import { MetaIPType, MetaDiscovererType } from '../meta';
2018-09-03 16:12:10 +00:00
2018-09-12 02:28:32 +00:00
export const defaultOsType = 'UNKNOWN';
export const defaultHostType = 'HOST';
export const defaultHostVendor = 'UNKNOWN';
export const defaultHostModel = 'UNKNOWN';
2018-09-03 16:12:10 +00:00
export interface Host {
metaIPType?: MetaIPType;
name?: string;
address?: string;
mac?: string;
2018-09-11 08:04:22 +00:00
osType?: string;
2018-09-12 02:28:32 +00:00
hostType?: string;
hostVendor?: string;
hostModel?: string;
2018-09-03 16:12:10 +00:00
2018-09-11 08:04:22 +00:00
meta?: Map<string, Map<string, string>>;
2018-09-17 14:19:16 +00:00
discoveredBy?: MetaDiscovererType[];
2018-09-03 16:12:10 +00:00
discoveredDate?: Date;
2018-09-11 08:04:22 +00:00
zone?: Zone;
2018-09-12 11:42:24 +00:00
portList?: any[];
2018-09-03 16:12:10 +00:00
}