Skip to content

Commit 1167c96

Browse files
authored
Merge branch 'develop' into amohammed/high-precision-uniquecount-whats-new
2 parents 6453754 + a271bc8 commit 1167c96

File tree

202 files changed

+9043
-998
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+9043
-998
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Read on to learn more about who we are and how you can contribute to the New Rel
1010

1111
From the start, we've welcomed contributions from anyone at New Relic, not just writers. Now, we're open sourcing our docs to invite input from anyone at all. We credit our technical accuracy and comprehensive documentation to this openness.
1212

13-
In a sense, it's documentation as conversation. By making our docs open source, we hope to expand this conversation.
13+
In a sense, it's documentation as conversation. By making our docs open source, we hope to expand this conversations.
1414

1515
We're here working every day to improve our docs and we'd love to hear from you. Come join the conversation.
1616

src/content/docs/apis/nerdgraph/examples/nerdgraph-scorecards-custom-tutorial.mdx

Lines changed: 40 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -77,24 +77,23 @@ New Relic provides various NerdGraph mutations to create custom role for Scoreca
7777
#### Sample request
7878

7979
```graphql
80-
{
80+
{
8181
customerAdministration {
82-
permissions(filter: {scope: {eq: "organization"}}) {
83-
items {
84-
feature
85-
category
86-
id
87-
product
88-
}
82+
permissions(filter: { scope: { eq: "organization" } }) {
83+
items {
84+
feature
85+
category
86+
id
87+
product
8988
}
9089
}
9190
}
92-
91+
}
9392
```
9493

9594
#### Sample response
9695

97-
```graphql
96+
```json
9897
{
9998
"data": {
10099
"customerAdministration": {
@@ -153,30 +152,27 @@ New Relic provides various NerdGraph mutations to create custom role for Scoreca
153152
}
154153
}
155154
}
156-
157-
```
155+
```
158156

159157
Copy and paste the information related to Scorecards in a text file matching the following criteria:
160158
* `category: MANAGE`
161-
* `"feature"``: "Scorecards"` or `Scorecards Rules`
159+
* `"feature"``: "Scorecards"` or `"Scorecards Rules"`
162160

163161
For example, in the previous response, the following matches the criteria:
164162

165-
```graphql
166-
163+
```json
167164
{
168-
"category": "MANAGE",
169-
"feature": "Scorecards Rules",
170-
"id": "xxxxx",
171-
"product": "New Relic One"
172-
},
165+
"category": "MANAGE",
166+
"feature": "Scorecards Rules",
167+
"id": "xxxxx",
168+
"product": "New Relic One"
169+
},
173170
{
174-
"category": "MANAGE",
175-
"feature": "Scorecards",
176-
"id": "xxxxx",
177-
"product": "New Relic One"
178-
}
179-
171+
"category": "MANAGE",
172+
"feature": "Scorecards",
173+
"id": "xxxxx",
174+
"product": "New Relic One"
175+
}
180176
```
181177

182178
</Collapser>
@@ -190,19 +186,18 @@ Fetch your organization ID to use in various mutations further.
190186
#### Sample request
191187

192188
```graphql
193-
{
189+
{
194190
actor {
195191
organization {
196192
id
197-
}
198193
}
199194
}
200-
201-
```
195+
}
196+
```
202197

203198
#### Sample response
204199

205-
```graphql
200+
```json
206201
{
207202
"data": {
208203
"actor": {
@@ -212,7 +207,6 @@ Fetch your organization ID to use in various mutations further.
212207
}
213208
}
214209
}
215-
216210
```
217211

218212
Copy the organization ID and keep it aside to create a role.
@@ -256,8 +250,8 @@ Run the `customRoleCreate` mutation to create your own custom role.
256250
<td>The name of the role.</td>
257251
</tr>
258252
<tr>
259-
<td>`PermissionId`</td>
260-
<td>Int</td>
253+
<td>`permissionIds`</td>
254+
<td>[Int]</td>
261255
<td>Yes</td>
262256
<td>List the ID's for the feature retrieved using `customerAdministration` mutations for Scorecards and Scorecards rules.</td>
263257
</tr>
@@ -273,31 +267,28 @@ Run the `customRoleCreate` mutation to create your own custom role.
273267
#### Sample request
274268

275269
```graphql
276-
277270
mutation {
278271
customRoleCreate(
279-
container: {id: "xxx****xxx-xx**00**-xxx-x*x*-xx**XXX**XX", type: "organization"}
272+
container: { id: "xxx****xxx-xx**00**-xxx-x*x*-xx**XXX**XX", type: "organization" }
280273
name: "Scorecards manager"
281274
permissionIds: [xxxxx, xxxxx]
282275
scope: "organization"
283276
) {
284277
id
285278
}
286279
}
287-
288280
```
289-
#### Sample response
290281

291-
```graphql
282+
#### Sample response
292283

284+
```json
293285
{
294286
"data": {
295287
"customRoleCreate": {
296288
"id": 9999999
297289
}
298290
}
299291
}
300-
301292
```
302293

303294
<table>
@@ -354,10 +345,9 @@ You can use `customerAdministration` mutation to retrieve the list of group ID's
354345
#### Sample request
355346

356347
```graphql
357-
358348
{
359349
customerAdministration {
360-
groups(filter: {organizationId: {eq: "xxx****xxx-xx**00**-xxx-x*x*-xx**XXX**XX"}}) {
350+
groups(filter: { organizationId: { eq: "xxx****xxx-xx**00**-xxx-x*x*-xx**XXX**XX" } }) {
361351
nextCursor
362352
items {
363353
id
@@ -372,7 +362,6 @@ You can use `customerAdministration` mutation to retrieve the list of group ID's
372362
}
373363
}
374364
}
375-
376365
```
377366

378367
From the displayed list of group IDs, copy the desired group ID to associate the custom Scorecard role you created earlier.
@@ -398,7 +387,7 @@ You can use `authorizationManagementGrantAccess` mutation to add the role to a u
398387
<td>`roleId`</td>
399388
<td>String</td>
400389
<td>Yes</td>
401-
<td>The custom role ID created in the [Custom role]() section.</td>
390+
<td>The custom role ID created in the Custom role section.</td>
402391
</tr>
403392
<tr>
404393
<td>`groupId`</td>
@@ -414,7 +403,10 @@ You can use `authorizationManagementGrantAccess` mutation to add the role to a u
414403
```graphql
415404
mutation {
416405
authorizationManagementGrantAccess(
417-
grantAccessOptions: {organizationAccessGrants: {roleId: "99999999"}, groupId: "xxx****xxx-xx**00**-xxx-x*x*-xx**XXX**XX"}
406+
grantAccessOptions: {
407+
organizationAccessGrants: { roleId: "99999999" }
408+
groupId: "xxx****xxx-xx**00**-xxx-x*x*-xx**XXX**XX"
409+
}
418410
) {
419411
roles {
420412
id
@@ -426,12 +418,11 @@ mutation {
426418
}
427419
}
428420
}
429-
430421
```
431422

432423
#### Sample response
433424

434-
```graphql
425+
```json
435426
{
436427
"data": {
437428
"authorizationManagementGrantAccess": {
@@ -448,9 +439,9 @@ mutation {
448439
}
449440
}
450441
}
451-
452442
```
453-
</Collapser>
443+
444+
</Collapser>
454445
</CollapserGroup>
455446

456447

0 commit comments

Comments
 (0)