summaryrefslogtreecommitdiffstats
path: root/veslibrary/ves_javalibrary/evel_javalib2/src/main/java/evel_javalibrary/att/com/loadbalance/meas_config.json
blob: 5d1a41e43e73e83b978365b8ce4e2cbb368b9108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
  "tmp_directParameters": {
      "eventName": "Measurement_vFirewall-AT&T_nicPerformance",
      "eventType": "applicationVnf",
      "nfcNamingCode": "AFX",
      "nfNamingCode": "AFX",
      "nfVendorName": "AT&T",
      "priority": "Low",
      "reportingEntityId": "cc305d54-75b4-431b-adb2-eb6b9e541234",
      "reportingEntityName": "ibcx0001vm002oam001",
      "sourceId": "de305d54-75b4-431b-adb2-eb6b9e546014",
      "sourceName": "scfx0001vm002cap001",
      "timeZoneOffset": "UTC-05:30",
      "measurementInterval": 25000,
      "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_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"
      }]
  }
}