Event Examples

APPUSAGE

{
    "startTime": "2017-05-18T05:13:39Z",
    "endTime": "2017-05-18T05:15:01.526Z",
    "packageName": "io.optiko.support.optikosupport",
    "screenOnDuration": 0,
    "duration": 82,
    "deviceId": "141185225D0096",
    "event": "appusage",
    "orgId": "00000000-0000-0000-0000-000000000000",
    "origin": "handheld",
    "time": "2017-05-18T05:15:01.526Z"
}

EXCEPTION

{
    "stackTrace": "io.optiko.agent.common.models.CoreException: java.lang.ArithmeticException: divide by zero
                    at io.optiko.agent.OptikoApplication.onUncaughtException(OptikoApplication.java:168)
                    at io.optiko.agent.OptikoApplication$1.uncaughtException(OptikoApplication.java:48)
                    at android.support.v7.app.AppCompatDelegateImplBase$1.uncaughtException(AppCompatDelegateImplBase.java:70)
                    at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)\n\tat java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
                    at dalvik.system.NativeStart.main(Native Method)\nCaused by: java.lang.ArithmeticException: divide by zero
                    at io.optiko.agent.features.ui.developer.InformationDisplayActivity$2.onClick(InformationDisplayActivity.java:102)
                    at android.support.v7.app.AlertController$ButtonHandler.handleMessage(AlertController.java:161)
                    at android.os.Handler.dispatchMessage(Handler.java:102)\n\tat android.os.Looper.loop(Looper.java:136)
                    at android.app.ActivityThread.main(ActivityThread.java:5034)\n\tat java.lang.reflect.Method.invokeNative(Native Method)
                    at java.lang.reflect.Method.invoke(Method.java:515)\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
                    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)\n\t... 1 more\n",
    "deviceId": "141185225D0096",
    "event": "exception",
    "orgId": "00000000-0000-0000-0000-000000000000",
    "origin": "handheld",
    "time": "2017-05-24T08:59:28.299Z"
}

NETWORKSESSION

{
    "startTime": "2017-05-18T07:39:18Z",
    "ssid": "\<unknown ssid\>",
    "endTime": "2017-05-18T07:39:18Z",
    "maxRssi": -200,
    "minRssi": -200,
    "duration": 0,
    "avgRssi": -200,
    "deviceId": "141185225D0096",
    "event": "networksession",
    "orgId": "00000000-0000-0000-0000-000000000000",
    "origin": "handheld",
    "time": "2017-05-18T07:39:26.427Z"
}

POWERSESSION

{
    "type": "discharging",
    "startTime": "2017-05-17T14:52:56Z",
    "endTime": "2017-05-18T13:27:48.6Z",
    "projectedHour": 94,
    "ratePerHour": 1.062835211336909,
    "startCharge": 85,
    "endCharge": 61,
    "duration": -81292,
    "deviceId": "141185225D0096",
    "event": "powersession",
    "orgId": "00000000-0000-0000-0000-000000000000",
    "origin": "handheld",
    "time": "2017-05-18T13:27:48.6Z"
}

BATTERYCYCLE

{
    "battery": {
      "technology": "Li-ion",
      "connectionState": "",
      "health": "Good",
      "serialNumber": "Unknown"
      "status": "Discharging",
      "voltage": 0,
      "temperature": 32,
      "charge": 60
    },
    "foregroundApp": "com.google.android.gms.persistent",
    "gps": {
      "gpsEnabled": false,
      "gpsLat": "0.0",
      "gpsLong": "0.0",
      "netEnabled": true,
      "netLat": "0.0",
      "netLong": "0.0",
      "passiveEnabled": true,
      "passiveLat": "0.0",
      "passiveLong": "0.0"
    },
    "network": {
      "connectSubType": "LTE",
      "connectType": "mobile",
      "connected": 1,
      "ssid": "\<unknown ssid\>",
      "ipAddress": "0.0.0.0",
      "linkSpeed": -1,
      "networkId": -1,
      "isRoaming": 0,
      "rssi": -9999,
      "hiddenSSID": 0
    },
    "screenState": "off",
    "deviceId": "unknown",
    "event": "batterycycle",
    "orgId": "00000000-0000-0000-0000-000000000000",
    "origin": "handheld",
    "time": "2017-05-18T12:42:40.6Z"
}

PACKAGEADD

{
    "appdetail": {
      "name": "com.bluefletch.dealrover",
      "ver": "1.0.27"
    },
    "battery": {
      "technology": "Li-ion",
      "connectionState": "AC",
      "health": "Good",
      "serialNumber": "Unknown",
      "status": "Charging",
      "voltage": 0,
      "temperature": 32,
      "charge": 50
    },
    "foregroundApp": "com.android.launcher",
    "network": {
      "connectSubType": "LTE",
      "connectType": "mobile",
      "connected": 1,
      "ssid": "\<unknown ssid\>",
      "ipAddress": "0.0.0.0",
      "linkSpeed": -1,
      "networkId": -1,
      "isRoaming": 0,
      "rssi": -9999,
      "hiddenSSID": 0
    },
    "screenState": "on",
    "gps": {
      "gpsEnabled": false,
      "gpsLat": "0.0",
      "gpsLong": "0.0",
      "netEnabled": true,
      "netLat": "0.0",
      "netLong": "0.0",
      "passiveEnabled": true,
      "passiveLat": "0.0",
      "passiveLong": "0.0"
    },
    "deviceId": "unknown",
    "event": "packageadd",
    "orgId": "00000000-0000-0000-0000-000000000000",
    "origin": "handheld",
    "time": "2017-05-22T18:44:50.261Z",
    "userSettings": {
      "settingsKey": "settingsValue"
    }
}

PACKAGEREMOVE

{
    "appdetail": {
      "name": "com.bluefletch.dealrover",
      "ver": ""
    },
    "battery": {
      "technology": "Li-ion",
      "connectionState": "AC",
      "health": "Good",
      "serialNumber": "Unknown",
      "status": "Charging",
      "voltage": 0,
      "temperature": 32,
      "charge": 50
    },
    "foregroundApp": "com.android.launcher",
    "network": {
      "connectSubType": "LTE",
      "connectType": "mobile",
      "connected": 1,
      "ssid": "\<unknown ssid\>",
      "ipAddress": "0.0.0.0",
      "linkSpeed": -1,
      "networkId": -1,
      "isRoaming": 0,
      "rssi": -9999,
      "hiddenSSID": 0
    },
    "screenState": "on",
    "gps": {
      "gpsEnabled": false,
      "gpsLat": "0.0",
      "gpsLong": "0.0",
      "netEnabled": true,
      "netLat": "0.0",
      "netLong": "0.0",
      "passiveEnabled": true,
      "passiveLat": "0.0",
      "passiveLong": "0.0"
    },
    "deviceId": "unknown",
    "event": "packageremove",
    "orgId": "00000000-0000-0000-0000-000000000000",
    "origin": "handheld",
    "time": "2017-05-22T18:44:21.835Z",
    "userSettings": {
      "settingsKey": "settingsValue"
    }
}

INSTALLEDAPPLICATIONS

{
    "appdetails": [
      {
        "name": "com.android.soundrecorder",
        "ver": "4.4.2-2470823"
      },
      {
        "name": "com.android.sdksetup",
        "ver": "4.4.2-2470823"
      },
      {
        "name": "com.android.launcher",
        "ver": "4.4.2-2470823"
      },
      {
        "name": "com.google.android.syncadapters.contacts",
        "ver": "4.4.2-2470823"
      }
    ],
    "battery": {
      "technology": "Li-ion",
      "connectionState": "AC",
      "health": "Good",
      "serialNumber": "Unknown",
      "status": "Charging",
      "voltage": 0,
      "temperature": 32,
      "charge": 50
    },
    "foregroundApp": "com.android.launcher",
    "network": {
      "connectSubType": "LTE",
      "connectType": "mobile",
      "connected": 1,
      "ssid": "\<unknown ssid\>",
      "ipAddress": "0.0.0.0",
      "linkSpeed": -1,
      "networkId": -1,
      "isRoaming": 0,
      "rssi": -9999,
      "hiddenSSID": 0
    },
   "screenState": "on",
   "gps": {
      "gpsEnabled": false,
      "gpsLat": "0.0",
      "gpsLong": "0.0",
      "netEnabled": true,
      "netLat": "0.0",
      "netLong": "0.0",
      "passiveEnabled": true,
      "passiveLat": "0.0",
      "passiveLong": "0.0"
    },
    "deviceId": "unknown",
    "event": "installedapplications",
    "orgId": "00000000-0000-0000-0000-000000000000",
    "origin": "handheld",
    "time": "2017-05-22T17:17:50.774Z",
    "userSettings": {
      "settingsKey": "settingsValue"
    }
}

SETTINGSCHANGE

{
    "devicedetails": {
      "build": "01-23257-K-18-03-00-MV release-keys",
      "kernel": "3.4.0 us0h00@buildserver #1 Sun Mar 20 00:38:27 CST 2016",
      "os": "4.4.3:19",
      "type": "TC700H"
    },
    "devicesettings": {
      "adbEnabled": 0,
      "devMode": 0,
      "disabledlockScreen": 1,
      "rootAccess": 0,
      "usb": 0
    },
    "deviceId": "141185225D0096",
    "event": "settingschanged",
    "orgId": "00000000-0000-0000-0000-000000000000",
    "origin": "handheld",
    "time": "2017-05-23T16:23:41.167Z"
}

LOWMEMORY

{
    "battery": {
      "technology": "Li-ion",
      "connectionState": "",
      "health": "Good",
      "serialNumber": "Unknown",
      "status": "Discharging",
      "voltage": 0,
      "temperature": 32,
      "charge": 13
    },
    "foregroundApp": "io.optiko.agent",
    "network": {
      "connectSubType": "LTE",
      "connectType": "mobile",
      "connected": 1,
      "ssid": "\<unknown ssid\>",
      "ipAddress": "0.0.0.0",
      "linkSpeed": -1,
      "networkId": -1,
      "isRoaming": 0,
      "rssi": -9999,
      "hiddenSSID": 0
    },
    "screenState": "on",
    "gps": {
      "gpsEnabled": false,
      "gpsLat": "0.0",
      "gpsLong": "0.0",
      "netEnabled": true,
      "netLat": "0.0",
      "netLong": "0.0",
      "passiveEnabled": true,
      "passiveLat": "0.0",
      "passiveLong": "0.0"
    },
    "deviceId": "unknown",
    "event": "lowmemory",
    "orgId": "00000000-0000-0000-0000-000000000000",
    "origin": "handheld",
    "time": "2017-05-23T12:18:11.224Z",
    "userSettings": {
      "settingsKey": "settingsValue"
    }
}

LOWBATTERY

{
    "battery": {
      "technology": "Li-ion",
      "connectionState": "",
      "health": "Good",
      "serialNumber": "Unknown",
      "status": "Discharging",
      "voltage": 0,
      "temperature": 32,
      "charge": 13
    },
    "foregroundApp": "io.optiko.agent",
    "network": {
      "connectSubType": "LTE",
      "connectType": "mobile",
      "connected": 1,
      "ssid": "\<unknown ssid\>",
      "ipAddress": "0.0.0.0",
      "linkSpeed": -1,
      "networkId": -1,
      "isRoaming": 0,
      "rssi": -9999,
      "hiddenSSID": 0
    },
    "screenState": "on",
    "gps": {
      "gpsEnabled": false,
      "gpsLat": "0.0",
      "gpsLong": "0.0",
      "netEnabled": true,
      "netLat": "0.0",
      "netLong": "0.0",
      "passiveEnabled": true,
      "passiveLat": "0.0",
      "passiveLong": "0.0"
    },
    "deviceId": "unknown",
    "event": "lowbattery",
    "orgId": "00000000-0000-0000-0000-000000000000",
    "origin": "handheld",
    "time": "2017-05-23T12:18:11.224Z",
    "userSettings": {
      "settingsKey": "settingsValue"
    }
}

LOWSTORAGE

{
    "details": {
      "DATA": {
        "free": "3.77 Gb",
        "path": "/data",
        "used": "481.82 Mb",
        "total": "4.24 Gb",
        "percentUsed": 11
      },
      "ROOT": {
        "free": "522.73 Mb",
        "path": "/system",
        "used": "486.56 Mb",
        "total": "1009.29 Mb",
        "percentUsed": 48
      },
      "EXTERNAL": {
        "free": "153.36 Mb",
        "path": "/storage/sdcard0",
        "used": "868.63 Mb",
        "total": "1021.99 Mb",
        "percentUsed": 84
      },
      "ENTERPRISE": {
        "free": "121.26 Mb",
        "path": "/enterprise/usr",
        "used": "4.78 Mb",
        "total": "126.04 Mb",
        "percentUsed": 3
      }
    },
    "deviceId": "141185225D0096",
    "event": "lowstorage",
    "orgId": "00000000-0000-0000-0000-000000000000",
    "origin": "handheld",
    "time": "2017-05-24T12:31:04.058Z"
}

HEARTBEAT

{
    "battery": {
      "technology": "Li-ion",
      "connectionState": "AC",
      "health": "Good",
      "serialNumber": "Unknown",
      "status": "Charging",
      "voltage": 0,
      "temperature": 32,
      "charge": 50
    },
    "foregroundApp": "io.optiko.agent",
    "gps": {
      "gpsEnabled": false,
      "gpsLat": "0.0",
      "gpsLong": "0.0",
      "netEnabled": true,
      "netLat": "0.0",
      "netLong": "0.0",
      "passiveEnabled": true,
      "passiveLat": "0.0",
      "passiveLong": "0.0"
    },
    "network": {
      "connectSubType": "LTE",
      "connectType": "mobile",
      "connected": 1,
      "ssid": "\<unknown ssid\>",
      "ipAddress": "0.0.0.0",
      "linkSpeed": -1,
      "networkId": -1,
      "isRoaming": 0,
      "rssi": -9999,
      "hiddenSSID": 0
    },
    "screenState": "on",
    "deviceId": "unknown",
    "event": "heartbeat",
    "orgId": "00000000-0000-0000-0000-000000000000",
    "origin": "handheld",
    "time": "2017-05-18T10:40:52.833Z"
}

BOOT

{
    "devicedetails": {
      "build": "google\_sdk\_x86-eng 4.4.2 KK 2470823 test-keys",
      "kernel": "3.4.67+ digit@tyrion.par.corp.google.com #3 Tue Sep 16 19:46:22 CEST 2014",
      "os": "4.4.2:19",
      "type": "Android SDK built for x86"
    },
    "devicesettings": {
      "disabledlockScreen": 1,
      "rootAccess": 1
    },
    "deviceId": "unknown",
    "event": "boot",
    "orgId": "00000000-0000-0000-0000-000000000000",
    "origin": "handheld",
    "time": "2017-05-18T11:35:12.537Z"
}

NetworkEvent

{
    "linkProperties": {
      "dnsServers": [
        "192.168.1.254"
      ],
      "getDomains": "attlocal.net",
      "interfaceName": "wlan0",
      "linkAddresses": [
        {
          "hostAddress": "/192.168.1.181",
          "hostFlags": 128,
          "hostScope": 0
        }
      ],
      "proxyPost": 0,
      "routes": [
        {
          "gatewayHost": "/::",
          "interface": "wlan0",
          "isDefaultRoute": 0
        },
        {
          "gatewayHost": "/0.0.0.0",
          "interface": "wlan0",
          "isDefaultRoute": 0
        },
        {
          "gatewayHost": "/192.168.1.254",
          "interface": "wlan0",
          "isDefaultRoute": 1
        }
      ]
    },
    "networkInfo": {
      "detailedState": "CONNECTED",
      "extraInfo": "\"DAVIS\"",
      "isAvailable": 1,
      "isConnected": 1,
      "isFailover": 0,
      "isRoaming": 0,
      "networkType": 1,
      "subtype": 0,
      "subtypeName": "",
      "typeName": "WIFI"
    },
    "wifiInfo": {
      "bssid": "44:e1:37:37:57:30",
      "connectSubType": "",
      "connectType": "WIFI",
      "connected": 1,
      "frequency": 2437,
      "hiddenSSID": 0,
      "ipAddress": "192.168.1.181",
      "linkSpeed": 130,
      "macAddress": "02:00:00:00:00:00",
      "networkId": 4,
      "isRoaming": 0,
      "rssi": -59,
      "ssid": "DAVIS"
    },
    "gps": {
      "gpsEnabled": false,
      "gpsLat": "0.0",
      "gpsLong": "0.0",
      "netEnabled": true,
      "netLat": "0.0",
      "netLong": "0.0",
      "passiveEnabled": true,
      "passiveLat": "0.0",
      "passiveLong": "0.0"
    },
    "deviceId": "17144522509454",
    "event": "networkevent",
    "orgId": "48f05446-fcbf-4420-858c-1bd0c3e8c56f",
    "origin": "handheld",
    "originModel": "TC51",
    "time": "2017-08-11T16:51:57.652Z"
 }