Skip to end of banner
Go to start of banner

Platform Service

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Overview

ServiceDescription
Get all agents/platformsThis service returns information of all existing agents
Get status of one agentThis service returns information on existing agents status (connected, not-connected, etc)
Get instrumented methodsThis service returns a list of instrumented methods for an agent
Get used sensorsThis service returns a list of used sensors for an agent

1. Get all agents/platforms

Path:/rest/data/platform/all
Example URI:/rest/data/platform/all
Example output:
[
 {
  "id": 5,
  "timeStamp": 1461333224740,
  "definedIPs": [
   "fe80:0:0:0:bc8a:e7ff:fbae:b13%awdl0",
   "192.168.99.1",
   "fe80:0:0:0:a65e:60ee:fbb5:b5db%en0",
   "192.168.1.140",
   "fe80:0:0:0:0:0:0:1%lo0",
   "0:0:0:0:0:0:0:1",
   "127.0.0.1"
 ],
  "agentName": "Agent1",
  "version": "1.6.9"
 },
 {
  "id": 6,
  "timeStamp": 1464360543860,
  "definedIPs": [
   "fe80:0:0:0:b0bd:96ff:ef70:7ca0%awdl0",
   "2003:13:ab7b:9fad:d0e1:e7c3:96f6:1b4a",
   "2003:13:ab7b:9fad:a65e:55ff:fea5:b8db",
   "fe80:0:0:0:a65e:60ff:fee5:b8db%en0",
   "192.168.2.104",
   "fe80:0:0:0:0:0:0:1%lo0",
   "0:0:0:0:0:0:0:1",
   "127.0.0.1"
 ],
  "agentName": "Agent2",
  "version": "1.6.9"
 }
]

 

2. Get status of one agent

Path:/rest/data/platform/status
Example URI:/rest/data/platform/status?platformId=5
Example output:
{
  "agentConnection": "CONNECTED",
  "lastKeepAliveTimestamp": 1468053577757,
  "connectionTimestamp": 1468053524550,
  "millisSinceLastData": 4100
}

3. Get instrumented methods

Path:/rest/data/platform/methods
Example URI:/rest/data/platform/methods/platformId=5
Example output:
[
  {
    "id": 28766,
    "timeStamp": 1468054985881,
    "packageName": "info.novatec.inspectitsamples.calculator",
    "className": "Calculator",
    "methodName": "processEquals",
    "parameters": [],
    "returnType": "void",
    "modifiers": 268435456,
    "active": true
  },
  {
    "id": 28770,
    "timeStamp": 1468054985895,
    "packageName": "info.novatec.inspectitsamples.calculator",
    "className": "Calculator",
    "methodName": "setDisplayString",
    "parameters": [
      "java.lang.String"
    ],
    "returnType": "void",
    "modifiers": 268435456,
    "active": true
  },
  {
    "id": 28768,
    "timeStamp": 1468054985888,
    "packageName": "info.novatec.inspectitsamples.calculator",
    "className": "Calculator",
    "methodName": "processOperator",
    "parameters": [
      "java.lang.String"
    ],
    "returnType": "void",
    "modifiers": 268435456,
    "active": true
  }
]

4. Get used sensors

Path:/rest/data/platform/sensors
Example URI:/rest/data/platform/sensors?platformId=5
Example output:
[
  {
    "id": 28759,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.method.jdbc.ConnectionSensor"
  },
  {
    "id": 28756,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.platform.RuntimeInformation"
  },
  {
    "id": 28762,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.method.jdbc.PreparedStatementParameterSensor"
  },
  {
    "id": 28758,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.platform.ThreadInformation"
  },
  {
    "id": 28753,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.platform.CompilationInformation"
  },
  {
    "id": 28760,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.method.http.HttpSensor"
  },
  {
    "id": 28757,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.platform.SystemInformation"
  },
  {
    "id": 28754,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.platform.CpuInformation"
  },
  {
    "id": 28765,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.method.timer.TimerSensor"
  },
  {
    "id": 28767,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.exception.ExceptionSensor"
  },
  {
    "id": 28763,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.method.jdbc.PreparedStatementSensor"
  },
  {
    "id": 28755,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.platform.MemoryInformation"
  },
  {
    "id": 28761,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.method.invocationsequence.InvocationSequenceSensor"
  },
  {
    "id": 28764,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.method.jdbc.StatementSensor"
  },
  {
    "id": 28766,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.method.logging.Log4JLoggingSensor"
  },
  {
    "id": 28768,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.jmx.JmxSensor"
  },
  {
    "id": 28752,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.platform.ClassLoadingInformation"
  }
]


  • No labels