Open andrew-lozoya opened 5 years ago
What kind of role do you have in New Relic? It seems you don't have the right role to access alerts.
Or perhaps your API key is invalid. New Relic returns Invalid API key.
and status code 401.
@mlvazqu2 I'm encountering a similar problem. The issue is related to infrastructure conditions only.
condition.Response: 404 Not Found. Error: <nil>.
All other condition types are showed correctly
Usage: nr get [command]
Available Commands: alertsconditions Display alert conditions by alert policy id.
$
./nr get alertsconditions
$length of [flags] should be 1 instead of 0
or
$
./nr get alertsconditions 449096
$infrastructure_condition.Response: 401 Unauthorized. Error: invalid character 'I' looking for beginning of value.
Does not work instructions say there should not be a required argument but -help says "by alert policy id". neither is working...