-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19730 from newrelic/daily-merge-01-16-Evening
Daily merge 01 16 evening
- Loading branch information
Showing
16 changed files
with
134 additions
and
131 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
...docs/apis/nerdgraph/examples/nerdgraph-api-cross-account-alerting-elections.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
title: "NerdGraph tutorial: Elections for cross-account alerting" | ||
tags: | ||
- Alerts | ||
- Alerts and NerdGraph | ||
metaDescription: 'Examples of how to use the NerdGraph API explorer to update account elections for cross-account alerting.' | ||
freshnessValidatedDate: never | ||
--- | ||
|
||
To allow data sharing between accounts within an organization, an account must opt in to the 'cross-account alerting' feature. Follow these instructions on how to use the NerdGraph API Explorer to update account settings by enabling cross-account alerting. | ||
|
||
<Callout variant="important"> | ||
Only users with the "Data-sharing access control" permission can update cross-account elections for data sharing. By default, this permission is granted only to users with the "Organization Manager" role. | ||
</Callout> | ||
|
||
## Steps to update a cross-account alerting election | ||
|
||
<Steps> | ||
|
||
<Step> | ||
Collect the list of account IDs to update. The API accepts up to **20 account IDs**. | ||
</Step> | ||
|
||
<Step> | ||
Indicate whether you want to enable `true` or disable `false` the election. | ||
</Step> | ||
|
||
<Step> | ||
Use the NerdGraph API explorer to update the account elections. | ||
</Step> | ||
|
||
</Steps> | ||
|
||
Here's an example of the mutation: | ||
|
||
```graphql | ||
mutation { | ||
alertsUpdateCrossAccountElections( | ||
accountIds: [YOUR_1ST_ACCOUNT_ID, YOUR_2ND_ACCOUNT_ID, YOUR_3RD_ACCOUNT_ID], | ||
electionStatus: true | ||
) { | ||
electionStatus | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.