v1

latestOpenAPI 3.0.32026-07-14314472448.6 KB
datasources
correlations

Updates a correlation.

patch/datasources/uid/{sourceUID}/correlations/{correlationUID}

Path parameters

sourceUIDstring required
correlationUIDstring required

Request body

descriptionstring

Optional description of the correlation

labelstring

Optional label identifying the correlation

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"
    },
    "transformations": [
      {
        "type": "logfmt"
      },
      {
        "expression": "(Superman|Batman)",
        "type": "regex",
        "variable": "name"
      }
    ]
  },
  "description": "Logs to Traces",
  "label": "My label"
}

Response

(empty)

messagestring

Example response

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