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