<?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>
{
"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": {…}
}
It seems that API v1 threshold.xml results are not consistent anymore with the reality.
Here is what I got :
See the id and the critical-value compared to the v2 results :