Business Engine API (2.1.0)
Download OpenAPI specification:Download
Business Intelligence for Grafana.
Response samples
- 200
- 403
- 500
Content type
application/json
[- {
- "status": "active",
- "title": "string",
- "dashboardId": "string",
- "panelId": 0,
- "schedule": "string",
- "actionIds": [
- "string"
], - "annotations": "panel",
- "timeRangeSource": "dashboard",
- "timeRange": {
- "from": 0,
- "to": 0
}, - "conditions": [
- {
- "id": "string",
- "repeat": "string",
- "type": "global",
- "variables": {
- "property1": {
- "name": "string",
- "multi": true,
- "includeAll": true,
- "value": "string"
}, - "property2": {
- "name": "string",
- "multi": true,
- "includeAll": true,
- "value": "string"
}
}, - "evaluationType": "anomaly",
- "evaluation": {
- "field": "string",
- "pattern": "string",
- "type": "pattern"
}, - "evaluationApply": {
- "mode": "all",
- "percentage": 0
}
}
], - "id": "string",
- "stateStartDate": "2019-08-24T14:15:22Z"
}
]
Create alert rule
Authorizations:
Authorization
Request Body schema: application/jsonrequired
status required | string Enum: "active" "paused" |
title required | string |
dashboardId required | string |
panelId required | number |
schedule required | string |
actionIds required | Array of strings |
annotations required | string Enum: "panel" "dashboard" "disabled" |
timeRangeSource required | string Enum: "dashboard" "configured" |
object (AlertTimeRange) | |
required | array |
Responses
Request samples
- Payload
Content type
application/json
{- "status": "active",
- "title": "string",
- "dashboardId": "string",
- "panelId": 0,
- "schedule": "string",
- "actionIds": [
- "string"
], - "annotations": "panel",
- "timeRangeSource": "dashboard",
- "timeRange": {
- "from": 0,
- "to": 0
}, - "conditions": [
- {
- "id": "string",
- "repeat": "string",
- "type": "global",
- "variables": {
- "property1": {
- "name": "string",
- "multi": true,
- "includeAll": true,
- "value": "string"
}, - "property2": {
- "name": "string",
- "multi": true,
- "includeAll": true,
- "value": "string"
}
}, - "evaluationType": "anomaly",
- "evaluation": {
- "field": "string",
- "pattern": "string",
- "type": "pattern"
}, - "evaluationApply": {
- "mode": "all",
- "percentage": 0
}
}
]
}
Response samples
- 200
- 400
- 403
- 500
Content type
application/json
{- "status": "active",
- "title": "string",
- "dashboardId": "string",
- "panelId": 0,
- "schedule": "string",
- "actionIds": [
- "string"
], - "annotations": "panel",
- "timeRangeSource": "dashboard",
- "timeRange": {
- "from": 0,
- "to": 0
}, - "conditions": [
- {
- "id": "string",
- "repeat": "string",
- "type": "global",
- "variables": {
- "property1": {
- "name": "string",
- "multi": true,
- "includeAll": true,
- "value": "string"
}, - "property2": {
- "name": "string",
- "multi": true,
- "includeAll": true,
- "value": "string"
}
}, - "evaluationType": "anomaly",
- "evaluation": {
- "field": "string",
- "pattern": "string",
- "type": "pattern"
}, - "evaluationApply": {
- "mode": "all",
- "percentage": 0
}
}
], - "id": "string",
- "stateStartDate": "2019-08-24T14:15:22Z"
}
Update alert rule
Authorizations:
Authorization
path Parameters
id required | any |
Request Body schema: application/jsonrequired
status required | string Enum: "active" "paused" |
title required | string |
dashboardId required | string |
panelId required | number |
schedule required | string |
actionIds required | Array of strings |
annotations required | string Enum: "panel" "dashboard" "disabled" |
timeRangeSource required | string Enum: "dashboard" "configured" |
object (AlertTimeRange) | |
required | array |
Responses
Request samples
- Payload
Content type
application/json
{- "status": "active",
- "title": "string",
- "dashboardId": "string",
- "panelId": 0,
- "schedule": "string",
- "actionIds": [
- "string"
], - "annotations": "panel",
- "timeRangeSource": "dashboard",
- "timeRange": {
- "from": 0,
- "to": 0
}, - "conditions": [
- {
- "id": "string",
- "repeat": "string",
- "type": "global",
- "variables": {
- "property1": {
- "name": "string",
- "multi": true,
- "includeAll": true,
- "value": "string"
}, - "property2": {
- "name": "string",
- "multi": true,
- "includeAll": true,
- "value": "string"
}
}, - "evaluationType": "anomaly",
- "evaluation": {
- "field": "string",
- "pattern": "string",
- "type": "pattern"
}, - "evaluationApply": {
- "mode": "all",
- "percentage": 0
}
}
]
}
Response samples
- 200
- 400
- 403
- 404
- 500
Content type
application/json
{- "status": "active",
- "title": "string",
- "dashboardId": "string",
- "panelId": 0,
- "schedule": "string",
- "actionIds": [
- "string"
], - "annotations": "panel",
- "timeRangeSource": "dashboard",
- "timeRange": {
- "from": 0,
- "to": 0
}, - "conditions": [
- {
- "id": "string",
- "repeat": "string",
- "type": "global",
- "variables": {
- "property1": {
- "name": "string",
- "multi": true,
- "includeAll": true,
- "value": "string"
}, - "property2": {
- "name": "string",
- "multi": true,
- "includeAll": true,
- "value": "string"
}
}, - "evaluationType": "anomaly",
- "evaluation": {
- "field": "string",
- "pattern": "string",
- "type": "pattern"
}, - "evaluationApply": {
- "mode": "all",
- "percentage": 0
}
}
], - "id": "string",
- "stateStartDate": "2019-08-24T14:15:22Z"
}
Response samples
- 200
- 403
- 500
Content type
application/json
[- {
- "status": "active",
- "title": "string",
- "dashboardId": "string",
- "panelId": 0,
- "schedule": "string",
- "actionIds": [
- "string"
], - "annotations": "panel",
- "timeRangeSource": "dashboard",
- "timeRange": {
- "from": 0,
- "to": 0
}, - "conditions": [
- {
- "id": "string",
- "repeat": "string",
- "type": "global",
- "variables": {
- "property1": {
- "name": "string",
- "multi": true,
- "includeAll": true,
- "value": "string"
}, - "property2": {
- "name": "string",
- "multi": true,
- "includeAll": true,
- "value": "string"
}
}, - "evaluationType": "anomaly",
- "evaluation": {
- "field": "string",
- "pattern": "string",
- "type": "pattern"
}, - "evaluationApply": {
- "mode": "all",
- "percentage": 0
}
}
], - "id": "string",
- "stateStartDate": "2019-08-24T14:15:22Z"
}
]
Update alert rule status
Authorizations:
Authorization
path Parameters
id required | any |
Request Body schema: application/jsonrequired
status required | string Enum: "active" "paused" |
Responses
Request samples
- Payload
Content type
application/json
{- "status": "active"
}
Response samples
- 200
- 400
- 403
- 404
- 500
Content type
application/json
{- "status": "active",
- "title": "string",
- "dashboardId": "string",
- "panelId": 0,
- "schedule": "string",
- "actionIds": [
- "string"
], - "annotations": "panel",
- "timeRangeSource": "dashboard",
- "timeRange": {
- "from": 0,
- "to": 0
}, - "conditions": [
- {
- "id": "string",
- "repeat": "string",
- "type": "global",
- "variables": {
- "property1": {
- "name": "string",
- "multi": true,
- "includeAll": true,
- "value": "string"
}, - "property2": {
- "name": "string",
- "multi": true,
- "includeAll": true,
- "value": "string"
}
}, - "evaluationType": "anomaly",
- "evaluation": {
- "field": "string",
- "pattern": "string",
- "type": "pattern"
}, - "evaluationApply": {
- "mode": "all",
- "percentage": 0
}
}
], - "id": "string",
- "stateStartDate": "2019-08-24T14:15:22Z"
}
Get last history event for alert rule
Authorizations:
Authorization
path Parameters
id required | any |
Responses
Response samples
- 200
- 403
- 404
- 500
Content type
application/json
{- "id": "string",
- "alertId": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "event": "string",
- "prevState": "scheduled",
- "newState": "scheduled",
- "duration": 0,
- "alertTitle": "string"
}
Get all history events
Authorizations:
Authorization
query Parameters
limit | number |
ids | Array of strings |
Responses
Response samples
- 200
- 403
- 500
Content type
application/json
[- {
- "id": "string",
- "alertId": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "event": "string",
- "prevState": "scheduled",
- "newState": "scheduled",
- "duration": 0,
- "alertTitle": "string"
}
]
Get dashboard variables
Authorizations:
Authorization
Request Body schema: application/jsonrequired
dashboardId required | string |
required | object |
object (VariablesTimeRange) |
Responses
Request samples
- Payload
Content type
application/json
{- "dashboardId": "string",
- "variables": {
- "property1": "string",
- "property2": "string"
}, - "timeRange": {
- "from": 0,
- "to": 0
}
}
Response samples
- 200
- 400
- 403
- 500
Content type
application/json
{- "options": {
- "property1": {
- "label": "string",
- "value": "string"
}, - "property2": {
- "label": "string",
- "value": "string"
}
}
}
Response samples
- 200
- 403
- 500
Content type
application/json
[- {
- "title": "string",
- "type": "request",
- "options": {
- "url": "string",
- "headers": [
- {
- "key": "string",
- "value": "string"
}
]
}, - "isDefault": true,
- "message": "string",
- "id": "string",
- "useFor": [
- "string"
], - "useForByDefault": [
- "string"
]
}
]
Create action
Authorizations:
Authorization
Request Body schema: application/jsonrequired
title required | string |
type required | string Enum: "request" "custom" |
required | ActionRequestOptions (object) or ActionCustomOptions (object) |
isDefault | boolean |
message required | string |
Responses
Request samples
- Payload
Content type
application/json
{- "title": "string",
- "type": "request",
- "options": {
- "url": "string",
- "headers": [
- {
- "key": "string",
- "value": "string"
}
]
}, - "isDefault": true,
- "message": "string"
}
Response samples
- 200
- 400
- 403
- 500
Content type
application/json
{- "title": "string",
- "type": "request",
- "options": {
- "url": "string",
- "headers": [
- {
- "key": "string",
- "value": "string"
}
]
}, - "isDefault": true,
- "message": "string",
- "id": "string",
- "useFor": [
- "string"
], - "useForByDefault": [
- "string"
]
}
Response samples
- 200
- 403
- 404
- 500
Content type
application/json
{- "title": "string",
- "type": "request",
- "options": {
- "url": "string",
- "headers": [
- {
- "key": "string",
- "value": "string"
}
]
}, - "isDefault": true,
- "message": "string",
- "id": "string",
- "useFor": [
- "string"
], - "useForByDefault": [
- "string"
]
}
Update action
Authorizations:
Authorization
path Parameters
id required | any |
Request Body schema: application/jsonrequired
title required | string |
type required | string Enum: "request" "custom" |
required | ActionRequestOptions (object) or ActionCustomOptions (object) |
isDefault | boolean |
message required | string |
Responses
Request samples
- Payload
Content type
application/json
{- "title": "string",
- "type": "request",
- "options": {
- "url": "string",
- "headers": [
- {
- "key": "string",
- "value": "string"
}
]
}, - "isDefault": true,
- "message": "string"
}
Response samples
- 200
- 400
- 403
- 500
Content type
application/json
{- "title": "string",
- "type": "request",
- "options": {
- "url": "string",
- "headers": [
- {
- "key": "string",
- "value": "string"
}
]
}, - "isDefault": true,
- "message": "string",
- "id": "string",
- "useFor": [
- "string"
], - "useForByDefault": [
- "string"
]
}
Response samples
- 200
- 403
- 500
Content type
application/json
{- "title": "string",
- "type": "request",
- "options": {
- "url": "string",
- "headers": [
- {
- "key": "string",
- "value": "string"
}
]
}, - "isDefault": true,
- "message": "string",
- "id": "string",
- "useFor": [
- "string"
], - "useForByDefault": [
- "string"
]
}
Test action
Authorizations:
Authorization
Request Body schema: application/jsonrequired
title required | string |
type required | string Enum: "request" "custom" |
required | ActionRequestOptions (object) or ActionCustomOptions (object) |
isDefault | boolean |
message required | string |
Responses
Request samples
- Payload
Content type
application/json
{- "title": "string",
- "type": "request",
- "options": {
- "url": "string",
- "headers": [
- {
- "key": "string",
- "value": "string"
}
]
}, - "isDefault": true,
- "message": "string"
}
Response samples
- 200
- 403
- 500
- 502
Content type
application/json
{- "ok": true,
- "message": "string"
}