fixed json data

This commit is contained in:
snoop 2017-07-28 19:58:01 +09:00
parent eb8f977aa8
commit 1db8caeebb
2 changed files with 59 additions and 100 deletions

View File

@ -249,43 +249,53 @@ const SensorTypeJsonData: any = [
},
];
const SensorJsonData = [
{
const SensorJsonData = [{
'id': 1,
'create_date': '2017-06-26T11:10:08Z',
'itemType': {
'id': 1,
'name': 'CPU',
'description': 'CPU blah blah blah',
'createDate': 1498474179690,
},
'key': 'cpu.usage',
'name': 'CPU USAGE',
'metaSensorItemType': {
'id': 1,
},
},
{
'createDate': 1498475408269,
},
{
'id': 2,
'create_date': '2017-06-26T11:10:08Z',
'itemType': {
'id': 1,
'name': 'CPU',
'description': 'CPU blah blah blah',
'createDate': 1498474179690,
},
'key': 'cpu.free',
'name': 'CPU FREE',
'metaSensorItemType': {
'id': 1,
},
},
{
'createDate': 1498475408361,
},
{
'id': 3,
'create_date': '2017-06-26T11:10:08Z',
'itemType': {
'id': 2,
'name': 'MEMORY',
'description': 'MEMORY blah blah blah',
'createDate': 1498474179811,
},
'key': 'mem.usage',
'name': 'MEMORY USAGE',
'metaSensorItemType': {
'id': 2,
},
},
{
'createDate': 1498475408376,
},
{
'id': 4,
'create_date': '2017-06-26T11:10:08Z',
'itemType': {
'id': 2,
'name': 'MEMORY',
'description': 'MEMORY blah blah blah',
'createDate': 1498474179811,
},
'key': 'mem.free',
'name': 'MEMORY FREE',
'metaSensorItemType': {
'id': 2,
},
},
];
'createDate': 1498475408394,
}];
export default SensorItemTree;

View File

@ -81,35 +81,9 @@ const SensorItemJson: any = [{
},
'target': {
'id': 1,
'createDate': 1498448242854,
'probe': {
'id': 1,
'status': {
'id': 1,
'name': 'INITIAL',
},
'description': 'snoop probe',
'createDate': 1498448699813,
'lastPollingDate': null,
'nextPollingDate': null,
'domain': {
'id': 1,
'name': 'overFlow\'s domain',
'createDate': 1498443944866,
},
'probeKey': 'a1e1710557de11e78799080027658d13',
'encryptionKey': '9c8d41ab57de11e7a2c9080027658d13',
},
'infra': {
'id': 1,
'type': {
'id': 1,
'name': 'MACHINE',
'createDate': 1498379502770,
},
'childId': 0,
'createDate': 1498446731809,
},
'createDate': 1501154289555,
'displayName': 'ghost target',
'description': 'i am target',
},
'crawler': {
'id': 1,
@ -121,7 +95,7 @@ const SensorItemJson: any = [{
},
'item': {
'id': 1,
'metaSensorItemType': {
'itemType': {
'id': 1,
'name': 'CPU',
'description': 'CPU blah blah blah',
@ -137,7 +111,7 @@ const SensorItemJson: any = [{
'id': 2,
'sensor': {
'id': 1,
'createDate': 1498475947009,
'createDate': 1498475947074,
'description': 'My sensor',
'status': {
'id': 1,
@ -145,35 +119,9 @@ const SensorItemJson: any = [{
},
'target': {
'id': 1,
'createDate': 1498448242854,
'probe': {
'id': 1,
'status': {
'id': 1,
'name': 'INITIAL',
},
'description': 'snoop probe',
'createDate': 1498448699813,
'lastPollingDate': null,
'nextPollingDate': null,
'domain': {
'id': 1,
'name': 'overFlow\'s domain',
'createDate': 1498443944866,
},
'probeKey': 'a1e1710557de11e78799080027658d13',
'encryptionKey': '9c8d41ab57de11e7a2c9080027658d13',
},
'infra': {
'id': 1,
'type': {
'id': 1,
'name': 'MACHINE',
'createDate': 1498379502770,
},
'childId': 0,
'createDate': 1498446731809,
},
'createDate': 1501154289555,
'displayName': 'ghost target',
'description': 'i am target',
},
'crawler': {
'id': 1,
@ -185,7 +133,7 @@ const SensorItemJson: any = [{
},
'item': {
'id': 2,
'metaSensorItemType': {
'itemType': {
'id': 1,
'name': 'CPU',
'description': 'CPU blah blah blah',
@ -196,4 +144,5 @@ const SensorItemJson: any = [{
'createDate': 1498475408361,
},
'createDate': 1498476110988,
}];
},
];