Skip to content

Commit 4292cb2

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Documentation for team notifications API (#33556)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent ab1fb02 commit 4292cb2

File tree

7 files changed

+827
-6
lines changed

7 files changed

+827
-6
lines changed

config/_default/menus/api.en.yaml

Lines changed: 63 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11439,6 +11439,66 @@ menu:
1143911439
- GetTeamPermissionSettings
1144011440
unstable: []
1144111441
order: 17
11442+
- name: Update team notification rule
11443+
url: '#update-team-notification-rule'
11444+
identifier: teams-update-team-notification-rule
11445+
parent: teams
11446+
generated: true
11447+
params:
11448+
versions:
11449+
- v2
11450+
operationids:
11451+
- UpdateTeamNotificationRule
11452+
unstable: []
11453+
order: 30
11454+
- name: Get team notification rule
11455+
url: '#get-team-notification-rule'
11456+
identifier: teams-get-team-notification-rule
11457+
parent: teams
11458+
generated: true
11459+
params:
11460+
versions:
11461+
- v2
11462+
operationids:
11463+
- GetTeamNotificationRule
11464+
unstable: []
11465+
order: 29
11466+
- name: Delete team notification rule
11467+
url: '#delete-team-notification-rule'
11468+
identifier: teams-delete-team-notification-rule
11469+
parent: teams
11470+
generated: true
11471+
params:
11472+
versions:
11473+
- v2
11474+
operationids:
11475+
- DeleteTeamNotificationRule
11476+
unstable: []
11477+
order: 31
11478+
- name: Create team notification rule
11479+
url: '#create-team-notification-rule'
11480+
identifier: teams-create-team-notification-rule
11481+
parent: teams
11482+
generated: true
11483+
params:
11484+
versions:
11485+
- v2
11486+
operationids:
11487+
- CreateTeamNotificationRule
11488+
unstable: []
11489+
order: 28
11490+
- name: Get team notification rules
11491+
url: '#get-team-notification-rules'
11492+
identifier: teams-get-team-notification-rules
11493+
parent: teams
11494+
generated: true
11495+
params:
11496+
versions:
11497+
- v2
11498+
operationids:
11499+
- GetTeamNotificationRules
11500+
unstable: []
11501+
order: 27
1144211502
- name: Update a user's membership attributes on a team
1144311503
url: '#update-a-users-membership-attributes-on-a-team'
1144411504
identifier: teams-update-a-users-membership-attributes-on-a-team
@@ -11657,7 +11717,7 @@ menu:
1165711717
operationids:
1165811718
- CreateTeamConnections
1165911719
unstable: []
11660-
order: 2
11720+
order: 25
1166111721
- name: List team connections
1166211722
url: '#list-team-connections'
1166311723
identifier: teams-list-team-connections
@@ -11669,7 +11729,7 @@ menu:
1166911729
operationids:
1167011730
- ListTeamConnections
1167111731
unstable: []
11672-
order: 1
11732+
order: 24
1167311733
- name: Delete team connections
1167411734
url: '#delete-team-connections'
1167511735
identifier: teams-delete-team-connections
@@ -11681,7 +11741,7 @@ menu:
1168111741
operationids:
1168211742
- DeleteTeamConnections
1168311743
unstable: []
11684-
order: 3
11744+
order: 26
1168511745
- name: Get a team hierarchy link
1168611746
url: '#get-a-team-hierarchy-link'
1168711747
identifier: teams-get-a-team-hierarchy-link

content/en/api/v2/teams/examples.json

Lines changed: 333 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"data": {
3+
"type": "team_notification_rules",
4+
"attributes": {
5+
"email": {
6+
"enabled": true
7+
},
8+
"slack": {
9+
"workspace": "Datadog",
10+
"channel": "aaa-omg-ops"
11+
}
12+
}
13+
}
14+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"data": {
3+
"type": "team_notification_rules",
4+
"id": "b8626d7e-cedd-11eb-abf5-da7ad0900001",
5+
"attributes": {
6+
"pagerduty": {
7+
"service_name": "Datadog-prod"
8+
},
9+
"slack": {
10+
"workspace": "Datadog",
11+
"channel": "aaa-governance-ops"
12+
}
13+
}
14+
}
15+
}

data/api/v2/CodeExamples.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,6 +1922,13 @@
19221922
"description": "Create a team with V2 fields returns \"CREATED\" response"
19231923
}
19241924
],
1925+
"CreateTeamNotificationRule": [
1926+
{
1927+
"group": "teams",
1928+
"suffix": "",
1929+
"description": "Create team notification rule returns \"OK\" response"
1930+
}
1931+
],
19251932
"SyncTeams": [
19261933
{
19271934
"group": "teams",
@@ -1950,6 +1957,13 @@
19501957
"description": "Update permission setting for team returns \"OK\" response"
19511958
}
19521959
],
1960+
"UpdateTeamNotificationRule": [
1961+
{
1962+
"group": "teams",
1963+
"suffix": "",
1964+
"description": "Update team notification rule returns \"OK\" response"
1965+
}
1966+
],
19531967
"CreateUser": [
19541968
{
19551969
"group": "users",

0 commit comments

Comments
 (0)