Skip to end of banner
Go to start of banner

Invocation 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 7 Next »

Overview

ServiceDescription
Get all invocation data

Provides an overview of several invocation data

Get invocation detail

Provides detail information of a single invocation


1. Get all invocation data

Path:/rest/data/invocations
Parameters:
  1. agentId (Long value, not required) - Id of the agent to get
  2. fromDate (java.util.Date, not required) - from date of the invocation start
  3. toDate (java.util.Date, not required) - to date of the invocation ends
  4. latestReadId (Long value, not required) - latest read ID of the invocations, only invocations with higher id than submitted one, used for incremental reading
  5. limit (Long value, not required) - limit the results, default is 100, max is also 100
  6. businessTrxId (int value, not required) - Id of the business transaction to get
  7. appId (int value, not required) - Id of the application to get
Example URI:

/rest/data/invocations/?agentId=5&fromDate=2016/07/12&toDate=2016/07/23

Example output:
[
  {
    "id": 4611686018427387927,
    "platformIdent": 5,
    "sensorTypeIdent": 7961,
    "timeStamp": 1483522324878,
    "methodIdent": 7954,
    "timerData": {
      "@class": "rocks.inspectit.shared.all.communication.data.TimerData",
      "id": 4611686018427387949,
      "platformIdent": 15952,
      "sensorTypeIdent": 7965,
      "timeStamp": 1483522324878,
      "methodIdent": 7954,
      "min": 0.4304969999939203,
      "max": 0.4304969999939203,
      "count": 1,
      "duration": 0.4304969999939203,
      "cpuMin": 0.417,
      "cpuMax": 0.417,
      "cpuDuration": 0.417,
      "exclusiveCount": 1,
      "exclusiveDuration": 0.09430400095880032,
      "exclusiveMax": 0.09430400095880032,
      "exclusiveMin": 0.09430400095880032
    },
    "duration": 0.44577400013804436,
    "childCount": 6,
    "applicationId": -1133255037,
    "businessTransactionId": 463443944
  }
]


2. Get invocation detail

Path:/rest/data/invocations/{id}
Parameters:
  1. id (Long value, required) - Id of the invocation to get.
Example URI:/rest/data/invocations/4611686018427387927
Example output:
{
  "id": 4611686018427387927,
  "platformIdent": 5,
  "sensorTypeIdent": 30361,
  "timeStamp": 1468348002604,
  "methodIdent": 30352,
  "nestedSequences": [
    {
      "id": 4611686018427387934,
      "platformIdent": 5,
      "sensorTypeIdent": 30361,
      "timeStamp": 1468348002604,
      "methodIdent": 30355,
      "nestedSequences": [
        {
          "id": 4611686018427387935,
          "platformIdent": 5,
          "sensorTypeIdent": 30361,
          "timeStamp": 1468348002604,
          "methodIdent": 30370,
          "timerData": {
            "@class": ".TimerData",
            "id": 4611686018427387936,
            "platformIdent": 43152,
            "sensorTypeIdent": 30365,
            "timeStamp": 1468348002604,
            "methodIdent": 30370,
            "min": 0.15588605403900146,
            "max": 0.15588605403900146,
            "count": 1,
            "duration": 0.15588605403900146,
            "cpuMin": 0.151,
            "cpuMax": 0.151,
            "cpuDuration": 0.151,
            "exclusiveCount": 1,
            "exclusiveDuration": 0.15588605403900146,
            "exclusiveMax": 0.15588605403900146,
            "exclusiveMin": 0.15588605403900146
          },
          "duration": 0.25355100631713867,
          "childCount": 0
        }
	  ],
      "timerData": {
        "@class": ".TimerData",
        "id": 4611686018427387941,
        "platformIdent": 5,
        "sensorTypeIdent": 30365,
        "timeStamp": 1468348002604,
        "methodIdent": 30355,
        "min": 0.5061780214309692,
        "max": 0.5061780214309692,
        "count": 1,
        "duration": 0.5061780214309692,
        "cpuMin": 0.482,
        "cpuMax": 0.482,
        "cpuDuration": 0.482,
        "exclusiveCount": 1,
        "exclusiveDuration": 0.2613779306411743,
        "exclusiveMax": 0.2613779306411743,
        "exclusiveMin": 0.2613779306411743
      },
      "duration": 0.553291916847229,
      "childCount": 3
    }
  ],
  "timerData": {
    "@class": ".TimerData",
    "id": 4611686018427387942,
    "platformIdent": 5,
    "sensorTypeIdent": 30365,
    "timeStamp": 1468348002605,
    "methodIdent": 30352,
    "min": 0.7361769676208496,
    "max": 0.7361769676208496,
    "count": 1,
    "duration": 0.7361769676208496,
    "cpuMin": 0.698,
    "cpuMax": 0.698,
    "cpuDuration": 0.698,
    "exclusiveCount": 1,
    "exclusiveDuration": 0.22999894618988037,
    "exclusiveMax": 0.22999894618988037,
    "exclusiveMin": 0.22999894618988037
  },
  "duration": 0.7865550518035889,
  "childCount": 4
}



  • No labels