API ReferenceGuidesChangelog
Insights

Insight Query

Query for metrics,event logs and coin prices in a project.

POST
/v1/insights/{owner}/{slug}/query

Authorization

api-key<token>

In: header

Path Parameters

owner*string

username or organization name

slug*string

project slug

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/insights/string/string/query" \  -H "Content-Type: application/json" \  -d '{}'
{  "results": [    {      "alias": "string",      "color": "string",      "computeStats": {        "binaryVersionHash": "string",        "clickhouseStats": {          "memoryUsage": "string",          "queryDurationMs": "string",          "readBytes": "string",          "readRows": "string",          "resultBytes": "string",          "resultRows": "string"        },        "computeCostMs": "string",        "computedAt": "2019-08-24T14:15:22Z",        "computedBy": "string",        "isCached": true,        "isRefreshing": true      },      "dataSource": "METRICS",      "error": "string",      "id": "string",      "matrix": {        "samples": [          {            "metric": {              "displayName": "string",              "labels": {                "property1": "string",                "property2": "string"              },              "name": "string"            },            "values": [              {                "timestamp": "string",                "value": 0.1              }            ]          }        ],        "totalSamples": 0      }    }  ]}