Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions config/_default/menus/api.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9440,6 +9440,66 @@ menu:
url: /api/latest/on-call/
identifier: on-call
generated: true
- name: Update an On-Call notification rule for a user
url: '#update-an-on-call-notification-rule-for-a-user'
identifier: on-call-update-an-on-call-notification-rule-for-a-user
parent: on-call
generated: true
params:
versions:
- v2
operationids:
- UpdateUserNotificationRule
unstable: []
order: 21
- name: Get an On-Call notification rule for a user
url: '#get-an-on-call-notification-rule-for-a-user'
identifier: on-call-get-an-on-call-notification-rule-for-a-user
parent: on-call
generated: true
params:
versions:
- v2
operationids:
- GetUserNotificationRule
unstable: []
order: 20
- name: Delete an On-Call notification rule for a user
url: '#delete-an-on-call-notification-rule-for-a-user'
identifier: on-call-delete-an-on-call-notification-rule-for-a-user
parent: on-call
generated: true
params:
versions:
- v2
operationids:
- DeleteUserNotificationRule
unstable: []
order: 19
- name: Create an On-Call notification rule for a user
url: '#create-an-on-call-notification-rule-for-a-user'
identifier: on-call-create-an-on-call-notification-rule-for-a-user
parent: on-call
generated: true
params:
versions:
- v2
operationids:
- CreateUserNotificationRule
unstable: []
order: 17
- name: List On-Call notification rules for a user
url: '#list-on-call-notification-rules-for-a-user'
identifier: on-call-list-on-call-notification-rules-for-a-user
parent: on-call
generated: true
params:
versions:
- v2
operationids:
- ListUserNotificationRules
unstable: []
order: 18
- name: Get an On-Call notification channel for a user
url: '#get-an-on-call-notification-channel-for-a-user'
identifier: on-call-get-an-on-call-notification-channel-for-a-user
Expand Down
423 changes: 423 additions & 0 deletions content/en/api/v2/on-call/examples.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"data": {
"attributes": {
"category": "high_urgency",
"delay_minutes": 0
},
"relationships": {
"channel": {
"data": {
"id": "7c1ce93f-30a5-596a-0f7b-06bfe153704c",
"type": "notification_channels"
}
}
},
"type": "notification_rules"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"data": {
"attributes": {
"category": "high_urgency",
"delay_minutes": 1
},
"id": "4d00de6b-e1c1-e5fa-b238-57acec728d0d",
"relationships": {
"channel": {
"data": {
"id": "7c1ce93f-30a5-596a-0f7b-06bfe153704c",
"type": "notification_channels"
}
}
},
"type": "notification_rules"
}
}
14 changes: 14 additions & 0 deletions data/api/v2/CodeExamples.json
Original file line number Diff line number Diff line change
Expand Up @@ -1244,6 +1244,13 @@
"description": "Create an On-Call notification channel for a user returns \"Created\" response"
}
],
"CreateUserNotificationRule": [
{
"group": "on-call",
"suffix": "",
"description": "Create an On-Call notification rule for a user returns \"Created\" response"
}
],
"SetOnCallTeamRoutingRules": [
{
"group": "on-call",
Expand All @@ -1265,6 +1272,13 @@
"description": "Update On-Call schedule returns \"OK\" response"
}
],
"UpdateUserNotificationRule": [
{
"group": "on-call",
"suffix": "",
"description": "Update an On-Call notification rule for a user returns \"OK\" response"
}
],
"CreateOpsgenieService": [
{
"group": "opsgenie_integration",
Expand Down
Loading
Loading