Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Threshold v1 API seems to be broken #4

Open
Oxalide-Team-CAD opened this issue Mar 17, 2016 · 0 comments
Open

Threshold v1 API seems to be broken #4

Oxalide-Team-CAD opened this issue Mar 17, 2016 · 0 comments

Comments

@Oxalide-Team-CAD
Copy link

It seems that API v1 threshold.xml results are not consistent anymore with the reality.
Here is what I got :

<?xml version="1.0" encoding="UTF-8"?>
(…)
    <threshold>
        <id type="integer">9894672</id>
        <type>ErrorRate</type>
        <caution-value>1</caution-value>
        <critical-value>5</critical-value>
        <url>https://rpm.newrelic.com/api/v1/accounts/myACCOUNT/applications/myAPP/thresholds/9894672</url>
    </threshold>
</thresholds>

See the id and the critical-value compared to the v2 results :

{
  "alert_policies": [
    {…},
    {
      "id": 350919,
      "type": "application",
      "name": "Bourse Prod",
      "enabled": true,
      "conditions": [
        {…},
        {
          "id": 2946066,
          "type": "error_rate",
          "severity": "critical",
          "threshold": 10,
          "trigger_minutes": 3,
          "enabled": true
        }
      ],
      "links": {…}
    },
    {…},
  ],
  "links": {…}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant