Skip to content

Threshold v1 API seems to be broken #4

@Oxalide-Team-CAD

Description

@Oxalide-Team-CAD

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": {…}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions