diff --git a/src/ts/@overflow/meta/react/components/SensorItemTree.tsx b/src/ts/@overflow/meta/react/components/SensorItemTree.tsx index c69182e..36df56b 100644 --- a/src/ts/@overflow/meta/react/components/SensorItemTree.tsx +++ b/src/ts/@overflow/meta/react/components/SensorItemTree.tsx @@ -249,43 +249,53 @@ const SensorTypeJsonData: any = [ }, ]; -const SensorJsonData = [ - { - 'id': 1, - 'create_date': '2017-06-26T11:10:08Z', - 'key': 'cpu.usage', - 'name': 'CPU USAGE', - 'metaSensorItemType': { - 'id': 1, - }, - }, - { - 'id': 2, - 'create_date': '2017-06-26T11:10:08Z', - 'key': 'cpu.free', - 'name': 'CPU FREE', - 'metaSensorItemType': { - 'id': 1, - }, - }, - { - 'id': 3, - 'create_date': '2017-06-26T11:10:08Z', - 'key': 'mem.usage', - 'name': 'MEMORY USAGE', - 'metaSensorItemType': { - 'id': 2, - }, - }, - { - 'id': 4, - 'create_date': '2017-06-26T11:10:08Z', - 'key': 'mem.free', - 'name': 'MEMORY FREE', - 'metaSensorItemType': { - 'id': 2, - }, - }, -]; +const SensorJsonData = [{ + 'id': 1, + 'itemType': { + 'id': 1, + 'name': 'CPU', + 'description': 'CPU blah blah blah', + 'createDate': 1498474179690, + }, + 'key': 'cpu.usage', + 'name': 'CPU USAGE', + 'createDate': 1498475408269, +}, +{ + 'id': 2, + 'itemType': { + 'id': 1, + 'name': 'CPU', + 'description': 'CPU blah blah blah', + 'createDate': 1498474179690, + }, + 'key': 'cpu.free', + 'name': 'CPU FREE', + 'createDate': 1498475408361, +}, +{ + 'id': 3, + 'itemType': { + 'id': 2, + 'name': 'MEMORY', + 'description': 'MEMORY blah blah blah', + 'createDate': 1498474179811, + }, + 'key': 'mem.usage', + 'name': 'MEMORY USAGE', + 'createDate': 1498475408376, +}, +{ + 'id': 4, + 'itemType': { + 'id': 2, + 'name': 'MEMORY', + 'description': 'MEMORY blah blah blah', + 'createDate': 1498474179811, + }, + 'key': 'mem.free', + 'name': 'MEMORY FREE', + 'createDate': 1498475408394, +}]; export default SensorItemTree; diff --git a/src/ts/@overflow/sensor/react/components/SensorDetailItems.tsx b/src/ts/@overflow/sensor/react/components/SensorDetailItems.tsx index 39f5c7d..c04c30d 100644 --- a/src/ts/@overflow/sensor/react/components/SensorDetailItems.tsx +++ b/src/ts/@overflow/sensor/react/components/SensorDetailItems.tsx @@ -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, -}]; +}, +];