PingdomLib
PingdomLib copied to clipboard
Modifying notificationdelay will delete your contactids
FYI, it's an API bug, that was reported to Pingdom at 2015-01-26
$ curl -su $PINGDOM_USER:$PINGDOM_PASS -H "App-Key: $PINGDOM_KEY" https://api.pingdom.com/api/2.0/checks/1236831 | python -mjson.tool | grep -A2 contactids
"contactids": [
10640040
],
$ curl -su $PINGDOM_USER:$PINGDOM_PASS -H "App-Key: $PINGDOM_KEY" -X PUT --data 'use_legacy_notifications=true&sendnotificationwhendown=16' https://api.pingdom.com/api/2.0/checks/1236831 | python -mjson.tool
{
"message": "Modification of check was successful!"
}
$ curl -su $PINGDOM_USER:$PINGDOM_PASS -H "App-Key: $PINGDOM_KEY" https://api.pingdom.com/api/2.0/checks/1236831 | python -mjson.tool | grep -A2 contactids
[...nothing...]
Thanks for bringing this to their attention, if they don't address it in a reasonable time frame do you think we should mitigate that within PingdomLib?