v1

latestOpenAPI 3.0.32026-07-14314472448.6 KB
datasources
correlations

Add correlation.

post/datasources/uid/{sourceUID}/correlations

Path parameters

sourceUIDstring required

Request body

descriptionstring

Optional description of the correlation

labelstring

Optional label identifying the correlation

provisionedboolean

True if correlation was created with provisioning. This makes it read-only.

targetUIDstring

Target data source UID to which the correlation is created. required if type = query

typestring

the type of correlation, either query for containing query information, or external for containing an external URL +enum

Example request

{
  "config": {
    "field": "message",
    "target": {
      "prop1": "value1",
      "prop2": "value"
    }
  },
  "description": "Logs to Traces",
  "label": "My label",
  "targetUID": "PE1C5CBDA0504A6A3"
}

Response

(empty)

messagestring

Example response

{
  "message": "Correlation created",
  "result": {
    "config": {
      "field": "message",
      "target": {
        "prop1": "value1",
        "prop2": "value"
      }
    },
    "description": "Logs to Traces",
    "label": "My Label",
    "orgId": 1,
    "sourceUID": "d0oxYRg4z",
    "targetUID": "PE1C5CBDA0504A6A3",
    "uid": "50xhMlg9k"
  }
}