Correlations: change casing of *UID properties (#52836)

* Correlations: change casing of *UID properties

* add link to correlations HTTP API
This commit is contained in:
Giordano Ricci
2022-07-27 07:01:46 +01:00
committed by GitHub
parent 0235fc136c
commit 4b2144fe40
13 changed files with 119 additions and 118 deletions

View File

@@ -4140,6 +4140,49 @@
}
}
},
"/datasources/uid/{sourceUID}/correlations": {
"post": {
"tags": ["correlations"],
"summary": "Add correlation.",
"operationId": "createCorrelation",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/CreateCorrelationCommand"
}
},
{
"type": "string",
"name": "sourceUID",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"$ref": "#/responses/createCorrelationResponse"
},
"400": {
"$ref": "#/responses/badRequestError"
},
"401": {
"$ref": "#/responses/unauthorisedError"
},
"403": {
"$ref": "#/responses/forbiddenError"
},
"404": {
"$ref": "#/responses/notFoundError"
},
"500": {
"$ref": "#/responses/internalServerError"
}
}
}
},
"/datasources/uid/{uid}": {
"get": {
"description": "If you are running Grafana Enterprise and have Fine-grained access control enabled\nyou need to have a permission with action: `datasources:read` and scopes: `datasources:*`, `datasources:uid:*` and `datasources:uid:kLtEtcRGk` (single data source).",
@@ -4243,49 +4286,6 @@
}
}
},
"/datasources/uid/{uid}/correlations": {
"post": {
"tags": ["correlations"],
"summary": "Add correlation.",
"operationId": "createCorrelation",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/CreateCorrelationCommand"
}
},
{
"type": "string",
"name": "uid",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"$ref": "#/responses/createCorrelationResponse"
},
"400": {
"$ref": "#/responses/badRequestError"
},
"401": {
"$ref": "#/responses/unauthorisedError"
},
"403": {
"$ref": "#/responses/forbiddenError"
},
"404": {
"$ref": "#/responses/notFoundError"
},
"500": {
"$ref": "#/responses/internalServerError"
}
}
}
},
"/datasources/uid/{uid}/health": {
"get": {
"tags": ["datasources"],
@@ -10534,12 +10534,12 @@
"type": "string",
"example": "My Label"
},
"sourceUid": {
"sourceUID": {
"description": "UID of the data source the correlation originates from",
"type": "string",
"example": "d0oxYRg4z"
},
"targetUid": {
"targetUID": {
"description": "UID of the data source the correlation points to",
"type": "string",
"example": "PE1C5CBDA0504A6A3"
@@ -10600,7 +10600,7 @@
"type": "string",
"example": "My label"
},
"targetUid": {
"targetUID": {
"description": "Target data source UID to which the correlation is created",
"type": "string",
"example": "PE1C5CBDA0504A6A3"