Skip to content

Get Entity History Data

Retrieves object's or link's metric history using an existing metric token.

Request

HTTP Request

GET /node/api/metric-token/:id/history

Path parameters

Parameter Type Description
id String Metric Token ID

Query parameters

Parameter Type Description
duration Integer History period up to present moment (in milliseconds).

Request body

The request body is empty.

Response

Returns the set of data points containing entity's history data.

Fields included in the response:

Field Type Description
metric String Metric name.
tags.entity String The ID of the entity prefixed by the type of the entity. The format is objectxxx for objects and linkxxx for links.
aggregateTags Array Work In Progress
dps Array An array of data points. Contains a timestamp and a value.

Example

Request

Response

[
  {
    "metric": "responseTimeMs",
    "tags": {
        "entity": "obj59141f6253d529144c977f1f"
    },
    "aggregateTags": [],
    "dps": [
      [
          1499333280000,
          275
      ],
      [
          1499333400000,
          275
      ]
    ]
  },
  ...
]

See Also