diff options
author | 2020-03-20 14:34:13 +0100 | |
---|---|---|
committer | 2020-03-23 07:47:18 +0000 | |
commit | ac4ab50bdf312a1824388acbb9908c31f2b39c1a (patch) | |
tree | 599173be86ff68dabbfd619b35b2c2949b9df1c7 /vnfs/VES5.0/evel/evel-library/code/VESreporting_vFW/meas_config.json | |
parent | 06e584f80beaa11ff180ed0348202287574a208c (diff) |
Pretty print json files in vnfs/
Fixing json files to conform to linter rules.
Change-Id: I88556796ebf7737bc82db1ab0675b943061c6354
Issue-ID: INT-1482
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'vnfs/VES5.0/evel/evel-library/code/VESreporting_vFW/meas_config.json')
-rw-r--r-- | vnfs/VES5.0/evel/evel-library/code/VESreporting_vFW/meas_config.json | 89 |
1 files changed, 46 insertions, 43 deletions
diff --git a/vnfs/VES5.0/evel/evel-library/code/VESreporting_vFW/meas_config.json b/vnfs/VES5.0/evel/evel-library/code/VESreporting_vFW/meas_config.json index 14f98650..4fd5621d 100644 --- a/vnfs/VES5.0/evel/evel-library/code/VESreporting_vFW/meas_config.json +++ b/vnfs/VES5.0/evel/evel-library/code/VESreporting_vFW/meas_config.json @@ -1,50 +1,53 @@ { - "tmp_directParameters": { - "eventName": "Measurement_vFirewall-AT&T_nicPerformance", - "eventType": "applicationVnf", - "nfcNamingCode": "AFX", - "nfNamingCode": "AFX", - "priority": "Low", - "reportingEntityId": "cc305d54-75b4-431b-adb2-eb6b9e541234", - "reportingEntityName": "ibcx0001vm002oam001", - "sourceId": "de305d54-75b4-431b-adb2-eb6b9e546014", - "sourceName": "scfx0001vm002cap001", - "measurementInterval": 20, - "tmp_device": ["lo", "enp0s3", "docker0"] - + "tmp_directParameters": { + "eventName": "Measurement_vFirewall-AT&T_nicPerformance", + "eventType": "applicationVnf", + "nfcNamingCode": "AFX", + "nfNamingCode": "AFX", + "priority": "Low", + "reportingEntityId": "cc305d54-75b4-431b-adb2-eb6b9e541234", + "reportingEntityName": "ibcx0001vm002oam001", + "sourceId": "de305d54-75b4-431b-adb2-eb6b9e546014", + "sourceName": "scfx0001vm002cap001", + "measurementInterval": 20, + "tmp_device": [ + "lo", + "enp0s3", + "docker0" + ] }, - "tmp_indirectParameters": { - "tmp_init":{ - "tmp_t0BytesIn": "sudo cat /proc/net/dev | grep $tmp_device | tr -s ' ' | cut -d ':' -f2 | cut -d ' ' -f2", - "tmp_t0BytesOut": "sudo cat /proc/net/dev | grep $tmp_device | tr -s ' ' | cut -d ':' -f2 | cut -d ' ' -f10", - "tmp_t0PacketsIn": "sudo cat /proc/net/dev | grep $tmp_device | tr -s ' ' | cut -d ':' -f2 | cut -d ' ' -f3", - "tmp_t0PacketsOut": "sudo cat /proc/net/dev | grep $tmp_device | tr -s ' ' | cut -d ':' -f2 | cut -d ' ' -f11" - }, - "vNicPerformance": { - "tmp_vnic_command": { - "tmp_t1BytesIn": "sudo cat /proc/net/dev | grep $tmp_device | tr -s ' ' | cut -d ':' -f2 | cut -d ' ' -f2", - "tmp_t1BytesOut": "sudo cat /proc/net/dev | grep $tmp_device | tr -s ' ' | cut -d ':' -f2 | cut -d ' ' -f10", - "tmp_t1PacketsIn": "sudo cat /proc/net/dev | grep $tmp_device | tr -s ' ' | cut -d ':' -f2 | cut -d ' ' -f3", - "tmp_t1PacketsOut": "sudo cat /proc/net/dev | grep $tmp_device | tr -s ' ' | cut -d ':' -f2 | cut -d ' ' -f11" - }, - "receivedOctetsDelta": "$(tmp_t1BytesIn - tmp_t0BytesIn)", - "receivedTotalPacketsDelta": "$(tmp_t1PacketsIn - tmp_t0PacketsIn)", - "transmittedOctetsDelta": "$(tmp_t1BytesOut - tmp_t0BytesOut)", - "transmittedTotalPacketsDelta": "$(tmp_t1PacketsOut - tmp_t0PacketsOut)", - "valuesAreSuspect": "true", - "vNicIdentifier": "$tmp_device" - }, - "cpuUsage": { - "tmp_cpuuse_command": { + "tmp_indirectParameters": { + "tmp_init": { + "tmp_t0BytesIn": "sudo cat /proc/net/dev | grep $tmp_device | tr -s ' ' | cut -d ':' -f2 | cut -d ' ' -f2", + "tmp_t0BytesOut": "sudo cat /proc/net/dev | grep $tmp_device | tr -s ' ' | cut -d ':' -f2 | cut -d ' ' -f10", + "tmp_t0PacketsIn": "sudo cat /proc/net/dev | grep $tmp_device | tr -s ' ' | cut -d ':' -f2 | cut -d ' ' -f3", + "tmp_t0PacketsOut": "sudo cat /proc/net/dev | grep $tmp_device | tr -s ' ' | cut -d ':' -f2 | cut -d ' ' -f11" + }, + "vNicPerformance": { + "tmp_vnic_command": { + "tmp_t1BytesIn": "sudo cat /proc/net/dev | grep $tmp_device | tr -s ' ' | cut -d ':' -f2 | cut -d ' ' -f2", + "tmp_t1BytesOut": "sudo cat /proc/net/dev | grep $tmp_device | tr -s ' ' | cut -d ':' -f2 | cut -d ' ' -f10", + "tmp_t1PacketsIn": "sudo cat /proc/net/dev | grep $tmp_device | tr -s ' ' | cut -d ':' -f2 | cut -d ' ' -f3", + "tmp_t1PacketsOut": "sudo cat /proc/net/dev | grep $tmp_device | tr -s ' ' | cut -d ':' -f2 | cut -d ' ' -f11" + }, + "receivedOctetsDelta": "$(tmp_t1BytesIn - tmp_t0BytesIn)", + "receivedTotalPacketsDelta": "$(tmp_t1PacketsIn - tmp_t0PacketsIn)", + "transmittedOctetsDelta": "$(tmp_t1BytesOut - tmp_t0BytesOut)", + "transmittedTotalPacketsDelta": "$(tmp_t1PacketsOut - tmp_t0PacketsOut)", + "valuesAreSuspect": "true", + "vNicIdentifier": "$tmp_device" + }, + "cpuUsage": { + "tmp_cpuuse_command": { "tmp_cpuUseCmd": "/usr/bin/top -bn 2 -d 0.01 | grep '^%Cpu' | tail -n 1 | cut -d ':' -f2", "tmp_cpuIdle": "/usr/bin/top -bn 2 -d 0.01 | grep '^%Cpu' | tail -n 1 |cut -d ':' -f2 | cut -d ',' -f4 | cut -b 1-5", "tmp_cpuUsageSystem": "/usr/bin/top -bn 2 -d 0.01 | grep '^%Cpu' | tail -n 1 |cut -d ':' -f2 | cut -d ',' -f2 | cut -b 1-5", "tmp_cpuUsageUser": "/usr/bin/top -bn 2 -d 0.01 | grep '^%Cpu' | tail -n 1 |cut -d ':' -f2 | cut -d ',' -f1 | cut -b 1-5" - }, - "cpuIdentifier": "Cpu1", - "cpuIdle": "$tmp_cpuIdle", - "cpuUsageSystem": "$tmp_cpuUsageSystem", - "cpuUsageUser": "$tmp_cpuUsageUser" - } - } + }, + "cpuIdentifier": "Cpu1", + "cpuIdle": "$tmp_cpuIdle", + "cpuUsageSystem": "$tmp_cpuUsageSystem", + "cpuUsageUser": "$tmp_cpuUsageUser" + } + } } |