This commit is contained in:
snoop 2017-07-19 20:45:44 +09:00
parent 8beaf58578
commit 9fb16788fb

View File

@ -75,53 +75,53 @@ export class SensorItemTree extends React.Component<any, any> {
const SensorTypeJsonData = [ const SensorTypeJsonData = [
{ {
"id" : 1, 'id' : 1,
"create_date" : "2017-06-26T10:49:39Z", 'create_date' : '2017-06-26T10:49:39Z',
"description" : "CPU blah blah blah", 'description' : 'CPU blah blah blah',
"name" : "CPU" 'name' : 'CPU'
}, },
{ {
"id" : 2, 'id' : 2,
"create_date" : "2017-06-26T10:49:39Z", 'create_date' : '2017-06-26T10:49:39Z',
"description" : "MEMORY blah blah blah", 'description' : 'MEMORY blah blah blah',
"name" : "MEMORY" 'name' : 'MEMORY'
}, },
{ {
"id" : 3, 'id' : 3,
"create_date" : "2017-06-26T10:49:39Z", 'create_date' : '2017-06-26T10:49:39Z',
"description" : "DISK blah blah blah", 'description' : 'DISK blah blah blah',
"name" : "DISK" 'name' : 'DISK'
} }
]; ];
const SensorJsonData = [ const SensorJsonData = [
{ {
"id": 1, 'id': 1,
"create_date": "2017-06-26T11:10:08Z", 'create_date': '2017-06-26T11:10:08Z',
"key": "cpu.usage", 'key': 'cpu.usage',
"name": "CPU USAGE", 'name': 'CPU USAGE',
"type_id": 1 'type_id': 1
}, },
{ {
"id": 2, 'id': 2,
"create_date": "2017-06-26T11:10:08Z", 'create_date': '2017-06-26T11:10:08Z',
"key": "cpu.free", 'key': 'cpu.free',
"name": "CPU FREE", 'name': 'CPU FREE',
"type_id": 1 'type_id': 1
}, },
{ {
"id": 3, 'id': 3,
"create_date": "2017-06-26T11:10:08Z", 'create_date': '2017-06-26T11:10:08Z',
"key": "mem.usage", 'key': 'mem.usage',
"name": "MEMORY USAGE", 'name': 'MEMORY USAGE',
"type_id": 2 'type_id': 2
}, },
{ {
"id": 4, 'id': 4,
"create_date": "2017-06-26T11:10:08Z", 'create_date': '2017-06-26T11:10:08Z',
"key": "mem.free", 'key': 'mem.free',
"name": "MEMORY FREE", 'name': 'MEMORY FREE',
"type_id": 2 'type_id': 2
} }
]; ];
@ -225,174 +225,174 @@ export class DiscoveryResult extends React.Component<any, any> {
} }
const jsonData = [{ const jsonData = [{
"firstScanRange": 1, 'firstScanRange': 1,
"lastScanRange": 10000, 'lastScanRange': 10000,
"name": "", 'name': '',
"ip": 3232235818, 'ip': 3232235818,
"mac": 91754662925, 'mac': 91754662925,
"os": "Windows", 'os': 'Windows',
"ports": [{ 'ports': [{
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"services": [{ 'services': [{
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"portType": "TCP", 'portType': 'TCP',
"serviceName": "SSH", 'serviceName': 'SSH',
"target": true 'target': true
}], }],
"portType": "TCP", 'portType': 'TCP',
"portNumber": 22 'portNumber': 22
}, },
{ {
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"services": [{ 'services': [{
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"portType": "TCP", 'portType': 'TCP',
"serviceName": "HTTP" 'serviceName': 'HTTP'
}], }],
"portType": "TCP", 'portType': 'TCP',
"portNumber": 443 'portNumber': 443
}, },
{ {
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"services": [{ 'services': [{
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"portType": "TCP", 'portType': 'TCP',
"serviceName": "HTTP" 'serviceName': 'HTTP'
}], }],
"portType": "TCP", 'portType': 'TCP',
"portNumber": 80 'portNumber': 80
}], }],
"createDate": 1498470178000, 'createDate': 1498470178000,
"updateDate": 1498470178000 'updateDate': 1498470178000
}, },
{ {
"firstScanRange": 1, 'firstScanRange': 1,
"lastScanRange": 10000, 'lastScanRange': 10000,
"name": "", 'name': '',
"ip": 3232235781, 'ip': 3232235781,
"mac": 91754660625, 'mac': 91754660625,
"os": "Windows", 'os': 'Windows',
"ports": [{ 'ports': [{
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"services": [{ 'services': [{
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"portType": "TCP", 'portType': 'TCP',
"serviceName": "SSH" 'serviceName': 'SSH'
}], }],
"portType": "TCP", 'portType': 'TCP',
"portNumber": 22 'portNumber': 22
}, },
{ {
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"services": [{ 'services': [{
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"portType": "TCP", 'portType': 'TCP',
"serviceName": "HTTP" 'serviceName': 'HTTP'
}], }],
"portType": "TCP", 'portType': 'TCP',
"portNumber": 80 'portNumber': 80
}, },
{ {
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"services": [{ 'services': [{
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"portType": "TCP", 'portType': 'TCP',
"serviceName": "HTTP" 'serviceName': 'HTTP'
}], }],
"portType": "TCP", 'portType': 'TCP',
"portNumber": 1936 'portNumber': 1936
}, },
{ {
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"services": null, 'services': null,
"portType": "TCP", 'portType': 'TCP',
"portNumber": 443 'portNumber': 443
}], }],
"createDate": 1498470178000, 'createDate': 1498470178000,
"updateDate": 1498470178000 'updateDate': 1498470178000
}, },
{ {
"firstScanRange": 1, 'firstScanRange': 1,
"lastScanRange": 10000, 'lastScanRange': 10000,
"name": "", 'name': '',
"ip": 3232235797, 'ip': 3232235797,
"mac": 91754662913, 'mac': 91754662913,
"os": "Windows", 'os': 'Windows',
"target": true, 'target': true,
"ports": [{ 'ports': [{
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"services": [{ 'services': [{
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"portType": "TCP", 'portType': 'TCP',
"serviceName": "HTTP" 'serviceName': 'HTTP'
}], }],
"portType": "TCP", 'portType': 'TCP',
"portNumber": 80 'portNumber': 80
}, },
{ {
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"services": [{ 'services': [{
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"portType": "TCP", 'portType': 'TCP',
"serviceName": "SSH" 'serviceName': 'SSH'
}], }],
"portType": "TCP", 'portType': 'TCP',
"portNumber": 22 'portNumber': 22
}, },
{ {
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"services": [{ 'services': [{
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"portType": "TCP", 'portType': 'TCP',
"serviceName": "HTTP" 'serviceName': 'HTTP'
}], }],
"portType": "TCP", 'portType': 'TCP',
"portNumber": 3343 'portNumber': 3343
}, },
{ {
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"services": [{ 'services': [{
"createDate": -62135596800000, 'createDate': -62135596800000,
"updateDate": -62135596800000, 'updateDate': -62135596800000,
"portType": "TCP", 'portType': 'TCP',
"serviceName": "HTTP" 'serviceName': 'HTTP'
}], }],
"portType": "TCP", 'portType': 'TCP',
"portNumber": 443 'portNumber': 443
}], }],
"createDate": 1498470178000, 'createDate': 1498470178000,
"updateDate": 1498470178000 'updateDate': 1498470178000
}, },
{ {
"firstScanRange": 1, 'firstScanRange': 1,
"lastScanRange": 10000, 'lastScanRange': 10000,
"name": "", 'name': '',
"ip": 3232235877, 'ip': 3232235877,
"mac": 75361038758387, 'mac': 75361038758387,
"os": "Windows", 'os': 'Windows',
"ports": null, 'ports': null,
"createDate": 1498470179000, 'createDate': 1498470179000,
"updateDate": 1498470179000 'updateDate': 1498470179000
} }