PingdomLib icon indicating copy to clipboard operation
PingdomLib copied to clipboard

Modifying notificationdelay will delete your contactids

Open gwillem opened this issue 10 years ago • 1 comments

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...]

gwillem avatar Jan 26 '15 11:01 gwillem

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?

KennethWilke avatar Jan 29 '15 22:01 KennethWilke