Alerts and Notification Channels APIs
List of APIs to manage alerts and notification channels
Last updated
List of APIs to manage alerts and notification channels
Last updated
Successful response
Successful response
Successful response
Unique identifier for the alert
Successful response
Unique identifier for the alert
Successful response
Unique identifier for the alert
Successful response
Unique identifier for the alert
Successful response
Successful response
Unique identifier for the alert
Successful response
Successful response
This URLwill provided access to user to delete any custom rule.
Unique identifier for the alert
Successful response
"\"{\\n \\\"name\\\": \\\"Total Api Calls1\\\",\\n \\\"manager\\\":\\\"grafana\\\",\\n \\\"description\\\": \\\"This alert is set up to notify you when the CPU usage on a host reaches a Low level.\\\",\\n \\\"expression\\\": \\\"(node_total_api_calls) > 20\\\",\\n \\\"category\\\": \\\"Infra\\\",\\n \\\"severity\\\":\\\"warning\\\",\\n \\\"frequency\\\": \\\"1m\\\",\\n \\\"interval\\\": \\\"1m\\\",\\n \\\"labels\\\": {\\n \\\"component\\\": \\\"api\\\",\\n \\\"notificationChannel\\\": \\\"slack\\\"\\n },\\n \\\"annotations\\\":{\\n \\\"summary\\\":\\\"Host Low CPU usage\\\"\\n },\\n \\\"metadata\\\": {\\n \\\"query\\\": [\\n {\\n \\\"refId\\\": \\\"A\\\",\\n \\\"datasourceUid\\\": \\\"$datasourceUid\\\",\\n \\\"queryType\\\": \\\"\\\",\\n \\\"relativeTimeRange\\\": {\\n \\\"from\\\": 600,\\n \\\"to\\\": 0\\n },\\n \\\"model\\\": {\\n \\\"refId\\\": \\\"A\\\",\\n \\\"hide\\\": false,\\n \\\"editorMode\\\": \\\"code\\\",\\n \\\"expr\\\": \\\"node_total_api_calls\\\",\\n \\\"legendFormat\\\": \\\"__auto\\\",\\n \\\"range\\\": true\\n }\\n },\\n {\\n \\\"refId\\\": \\\"B\\\",\\n \\\"datasourceUid\\\": \\\"__expr__\\\",\\n \\\"queryType\\\": \\\"\\\",\\n \\\"model\\\": {\\n \\\"refId\\\": \\\"B\\\",\\n \\\"hide\\\": false,\\n \\\"type\\\": \\\"reduce\\\",\\n \\\"datasource\\\": {\\n \\\"uid\\\": \\\"__expr__\\\",\\n \\\"type\\\": \\\"__expr__\\\"\\n },\\n \\\"conditions\\\": [\\n {\\n \\\"type\\\": \\\"query\\\",\\n \\\"evaluator\\\": {\\n \\\"params\\\": [],\\n \\\"type\\\": \\\"gt\\\"\\n },\\n \\\"operator\\\": {\\n \\\"type\\\": \\\"and\\\"\\n },\\n \\\"query\\\": {\\n \\\"params\\\": [\\n \\\"B\\\"\\n ]\\n },\\n \\\"reducer\\\": {\\n \\\"params\\\": [],\\n \\\"type\\\": \\\"last\\\"\\n }\\n }\\n ],\\n \\\"reducer\\\": \\\"last\\\",\\n \\\"expression\\\": \\\"A\\\"\\n },\\n \\\"relativeTimeRange\\\": {\\n \\\"from\\\": 600,\\n \\\"to\\\": 0\\n }\\n },\\n {\\n \\\"refId\\\": \\\"C\\\",\\n \\\"datasourceUid\\\": \\\"__expr__\\\",\\n \\\"queryType\\\": \\\"\\\",\\n \\\"model\\\": {\\n \\\"refId\\\": \\\"C\\\",\\n \\\"hide\\\": false,\\n \\\"type\\\": \\\"threshold\\\",\\n \\\"datasource\\\": {\\n \\\"uid\\\": \\\"__expr__\\\",\\n \\\"type\\\": \\\"__expr__\\\"\\n },\\n \\\"conditions\\\": [\\n {\\n \\\"type\\\": \\\"query\\\",\\n \\\"evaluator\\\": {\\n \\\"params\\\": [\\n 20\\n ],\\n \\\"type\\\": \\\"gt\\\"\\n },\\n \\\"operator\\\": {\\n \\\"type\\\": \\\"and\\\"\\n },\\n \\\"query\\\": {\\n \\\"params\\\": [\\n \\\"C\\\"\\n ]\\n },\\n \\\"reducer\\\": {\\n \\\"params\\\": [],\\n \\\"type\\\": \\\"last\\\"\\n }\\n }\\n ],\\n \\\"expression\\\": \\\"B\\\"\\n },\\n \\\"relativeTimeRange\\\": {\\n \\\"from\\\": 600,\\n \\\"to\\\": 0\\n }\\n }\\n ]\\n }\\n}\""
Successful response
Successful response
Unique identifier for the alert
Successful response
This URL will provide access to users to edit any properties in the Alert rule and save the changes.
Unique identifier for the alert
Successful response