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 3 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/overview
Parameters:
  1. platformId (Long value, not required) - Id of the agent/platform 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
Example URI:

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

Example output:
[
  {
    "id": 4611686018427387927,
    "platformIdent": 5,
    "sensorTypeIdent": 30361,
    "timeStamp": 1468348002604,
    "methodIdent": 30352,
    "timerData": {
      "@class": ".TimerData",
      "id": 4611686018427387942,
      "platformIdent": 43152,
      "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
  },
  {
    "id": 4611686018427387948,
    "platformIdent": 6,
    "sensorTypeIdent": 30361,
    "timeStamp": 1468348003582,
    "methodIdent": 30352,
    "timerData": {
      "@class": ".TimerData",
      "id": 4611686018427387969,
      "platformIdent": 43152,
      "sensorTypeIdent": 30365,
      "timeStamp": 1468348003582,
      "methodIdent": 30352,
      "min": 0.3156009912490845,
      "max": 0.3156009912490845,
      "count": 1,
      "duration": 0.3156009912490845,
      "cpuMin": 0.31,
      "cpuMax": 0.31,
      "cpuDuration": 0.31,
      "exclusiveCount": 1,
      "exclusiveDuration": 0.12003695964813232,
      "exclusiveMax": 0.12003695964813232,
      "exclusiveMin": 0.12003695964813232
    },
    "duration": 0.3381279706954956,
    "childCount": 2
  }
]


2. Get invocation detail

Path:/rest/data/invocations/details
Parameters:
  1. id (Long value, required) - Id of the invocation to get.
Example URI:/rest/data/invocations/details?id=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
        },
        {
          "id": 4611686018427387937,
          "platformIdent": 5,
          "sensorTypeIdent": 30361,
          "timeStamp": 1468348002604,
          "methodIdent": 30361,
          "timerData": {
            "@class": ".TimerData",
            "id": 4611686018427387938,
            "platformIdent": 43152,
            "sensorTypeIdent": 30365,
            "timeStamp": 1468348002604,
            "methodIdent": 30361,
            "min": 0.012436985969543457,
            "max": 0.012436985969543457,
            "count": 1,
            "duration": 0.012436985969543457,
            "cpuMin": 0.012,
            "cpuMax": 0.012,
            "cpuDuration": 0.012,
            "exclusiveCount": 1,
            "exclusiveDuration": 0.012436985969543457,
            "exclusiveMax": 0.012436985969543457,
            "exclusiveMin": 0.012436985969543457
          },
          "duration": 0.04024100303649902,
          "childCount": 0
        },
        {
          "id": 4611686018427387939,
          "platformIdent": 5,
          "sensorTypeIdent": 30361,
          "timeStamp": 1468348002604,
          "methodIdent": 30370,
          "timerData": {
            "@class": ".TimerData",
            "id": 4611686018427387940,
            "platformIdent": 43152,
            "sensorTypeIdent": 30365,
            "timeStamp": 1468348002605,
            "methodIdent": 30370,
            "min": 0.07647705078125,
            "max": 0.07647705078125,
            "count": 1,
            "duration": 0.07647705078125,
            "cpuMin": 0.059,
            "cpuMax": 0.059,
            "cpuDuration": 0.059,
            "exclusiveCount": 1,
            "exclusiveDuration": 0.07647705078125,
            "exclusiveMax": 0.07647705078125,
            "exclusiveMin": 0.07647705078125
          },
          "duration": 0.10727298259735107,
          "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