You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I create a muting rule with newrelic-cli, the rule is properly created but output JSON is empty.
Muting rule Id should be returned as it is with curl command.
Go Version
Go not installed, use of newrelic-cli
$ newrelic --version
newrelic version 0.78.17
Current behavior
When I run this command (generated from NerdGraph API Explorer), returned JSON is empty
NEW_RELIC_REGION=eu NEW_RELIC_API_KEY=XXXXX newrelic nerdgraph query 'mutation {
alertsMutingRuleCreate(
accountId: 00000
rule: {name: "dev-paris deployment 2", description: "Muting rule created with newrelic-cli", enabled: true, condition: {conditions: {attribute: "conditionId", operator: IN, values: ["XXXX", "YYYY"]}, operator: AND}}
) {
id
}
}'
{}
Expected behavior
Get the same output than curl command:
NEW_RELIC_REGION=eu NEW_RELIC_API_KEY=XXXXX newrelic nerdgraph query 'mutation {
alertsMutingRuleCreate(
accountId: 000000
rule: {name: "dev-paris deployment 2", description: "Muting rule created with newrelic-cli", enabled: true, condition: {conditions: {attribute: "conditionId", operator: IN, values: ["XXXX", "YYYY"]}, operator: AND}}
) {
id
}
}'
{"data":{"alertsMutingRuleCreate":{"id":"XXXXX"}}}
Steps To Reproduce
Steps to reproduce the behavior:
Create alertsMutingRuleCreate query in nergraph API explorer
Copy as newrelic-cli
Run command
The text was updated successfully, but these errors were encountered:
Description
When I create a muting rule with newrelic-cli, the rule is properly created but output JSON is empty.
Muting rule Id should be returned as it is with curl command.
Go Version
Go not installed, use of newrelic-cli
Current behavior
When I run this command (generated from NerdGraph API Explorer), returned JSON is empty
Expected behavior
Get the same output than curl command:
Steps To Reproduce
Steps to reproduce the behavior:
alertsMutingRuleCreate
query in nergraph API explorerThe text was updated successfully, but these errors were encountered: