{"id":19939,"date":"2015-05-25T13:34:35","date_gmt":"2015-05-25T08:04:35","guid":{"rendered":"https:\/\/2thenew.today\/blog\/?p=19939"},"modified":"2015-06-23T17:15:19","modified_gmt":"2015-06-23T11:45:19","slug":"python-interface-for-pingdom-rest-api","status":"publish","type":"post","link":"https:\/\/2thenew.today\/blog\/python-interface-for-pingdom-rest-api\/","title":{"rendered":"Python Interface for Pingdom REST API"},"content":{"rendered":"<p>Pingdom is a tool which is used for monitoring websites\u2019 availability in real time. Now we can interact with pingdom using its REST API with the help of python scripts.<\/p>\n<p>Every time, a deployment is made on production servers, the pingdom tool throws a downalert<br \/>\nbecause several services like tomcat, apache etc need to be restarted. What if we can able to pause the pingdom monitoring for the time period when the deployment is being made on the servers and then unpause it when the production deployment is successful.<\/p>\n<p>So here is a demonstration of how we can make our python scripts interact with REST API for pingdom.<\/p>\n<p><strong><strong>\u00a0<\/strong><\/strong><b>Step 1 :- Installing pip for python<\/b><\/p>\n<p style=\"text-align: left;padding-left: 30px\">sudo \u00a0apt-get update<\/p>\n<p style=\"text-align: left;padding-left: 30px\">sudo apt-get -y install python-pip<\/p>\n<p style=\"text-align: left\"><b>Step 2 :- Installing Pingdom-CLI<\/b><\/p>\n<p style=\"text-align: left;padding-left: 30px\">To install Pingdom-CLI, first the pingdom-cli\u2019s git repository need to be cloned .<\/p>\n<p style=\"padding-left: 30px\"><b>Git link Druwerd\/pingdom-cli :- <\/b><a href=\"https:\/\/github.com\/Druwerd\/pingdom-cli\">https:\/\/github.com\/Druwerd\/pingdom-cli<\/a><\/p>\n<p><b>Step 3 :- Using pingdom CLI <\/b><\/p>\n<p style=\"padding-left: 30px\">Three parameters of pingdom account are needed to instantiate the use of pingdom-cli.These three parameters are :-<\/p>\n<ul>\n<li style=\"padding-left: 30px\">1) Username<\/li>\n<li style=\"padding-left: 30px\">2) Password<\/li>\n<li style=\"padding-left: 30px\">3) Appkey<\/li>\n<\/ul>\n<p style=\"padding-left: 30px\"><b>Note:- Appkey<\/b> :- Application key is an application-specific key which specifies the \u00a0\u00a0unique identification of your application which is being monitored by pingdom.You can generate the application key for your application by following these steps :-<\/p>\n<p style=\"padding-left: 30px\">1) Go to pingdom dashboard of your account.Click on Sharing.<\/p>\n<p style=\"padding-left: 30px\"><strong><strong><a href=\"\/blog\/wp-ttn-blog\/uploads\/2015\/05\/p1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19942\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/05\/p1.png\" alt=\"p1\" width=\"344\" height=\"326\" \/><\/a><\/strong><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"padding-left: 30px\">2) Click on the \u201cPingdom API\u201d.<\/p>\n<p style=\"padding-left: 30px\"><strong><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19940\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/05\/p2.png\" alt=\"p2\" width=\"346\" height=\"431\" \/><\/strong><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"padding-left: 30px\">3) Click on the Register Application.<\/p>\n<p style=\"padding-left: 30px\"><strong><strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19941\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/05\/p3.png\" alt=\"p3\" width=\"563\" height=\"556\" \/><br \/>\n<\/strong><\/strong><\/p>\n<p style=\"padding-left: 30px\">4) Fill in some application-specific details and then click Register to generate the appkey for your application.<\/p>\n<p><b>Step 4 :- Getting started with pingdom-CLI<\/b><\/p>\n<p style=\"padding-left: 30px\">You can start using pingdom CLI just by starting python shell.Type <b>python<\/b> to start the shell.<\/p>\n<p style=\"padding-left: 60px\">&gt;import pingdom<\/p>\n<p style=\"padding-left: 60px\">&gt;p=pingdom.Pingdom(username=\u2019YourUserName\u2019,password=\u2019YourPassword\u2019,appkey=\u2019YourAppKey\u2019)<\/p>\n<p style=\"padding-left: 30px\"><b># To check all the checks on which monitoring is activated<\/b><\/p>\n<p style=\"padding-left: 60px\">&gt;p.method(&#8216;checks&#8217;)<\/p>\n<p style=\"padding-left: 30px\"><b># To modify checks<\/b><\/p>\n<p style=\"padding-left: 60px\">&gt;p.method(&#8216;checks\/CHECK_ID_NUM\/&#8217;, method=&#8217;PUT&#8217;, parameters={&#8216;paused&#8217;: True})<\/p>\n<p style=\"padding-left: 30px\"><b># Get checks by name instead of number<\/b><\/p>\n<p style=\"padding-left: 60px\">&gt;p.check_by_name(&#8216;my check name&#8217;)<\/p>\n<p style=\"padding-left: 30px\"><b># Pause and unpause a check by name\u00a0<\/b><\/p>\n<p style=\"padding-left: 60px\">&gt;p.pause_check(&#8216;my check name&#8217;)<br \/>\n&gt;p.unpause_check(&#8216;my check name&#8217;)<\/p>\n<p style=\"padding-left: 30px\">You can also perform some other operations like checking average response time of the checks by its check ID number.Average response time for the last 15 minutes can also be calculated by using following commands:-<\/p>\n<p style=\"padding-left: 30px\"><b># Average Response Time<\/b><\/p>\n<p style=\"padding-left: 60px\">p.avg_response(CHEKC_ID_NUM)<\/p>\n<p style=\"padding-left: 30px\"><b># Average Response Time for the last 15 minutes<\/b><\/p>\n<p style=\"padding-left: 60px\">p.avg_response(CHEKC_ID_NUM, minutes_back=15)<\/p>\n<p style=\"padding-left: 30px\"><b># Average Response Time for the last 15 minutes in the US<\/b><\/p>\n<p style=\"padding-left: 60px\">p.avg_response(CHEKC_ID_NUM, minutes_back=15, country=&#8217;US&#8217;)<\/p>\n<p style=\"padding-left: 60px\"><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<p>You can also create your custom python scripts for specific application which can pause the checks during deployment and then unpause it \u00a0after deployment.<\/p>\n<p>Here is a python script which you can use to pause and unpause the checks.<\/p>\n<p>[js]<br \/>\n#!\/usr\/bin\/python<br \/>\nimport sys<br \/>\nsys.path.append(&#8216;&lt;path to the directory where pingdom-cli\u2019s files are present&gt;&#8217;)<br \/>\nimport pingdom<br \/>\np = pingdom.Pingdom(username='&lt;pingdom account username&gt;&#8217;, password='&lt;account password&gt;&#8217;, appkey=&#8217;your application key&#8217;)<br \/>\np.pause_check(&#8216;Check name&#8217;)<br \/>\n[\/js]<\/p>\n<p>Similarly you can also create python script for unpausing the check after deployment by replacing <b>pause_check()<\/b> function with <b>unpause_check().<\/b><\/p>\n<p>If you have multiple checks and you want a centralized script, so that you can only pass a check name as a parameter to pause\/unpause it.Below is the script to achieve this task:-<\/p>\n<p>[js]<br \/>\n#!\/usr\/bin\/python<br \/>\nimport sys<br \/>\nfrom sys import argv<br \/>\nsys.path.append(&#8216;&lt;path to the directory where pingdom-cli\u2019s files are present&gt;&#8217;)<br \/>\nimport pingdom<br \/>\nscript_name,checkname=argv<br \/>\np = pingdom.Pingdom(username='&lt;pingdom account username&gt;&#8217;, password='&lt;account password&gt;&#8217;, appkey=&#8217;your application key&#8217;)<br \/>\np.pause_check(checkname)<br \/>\n[\/js]<\/p>\n<p>You can pass the parameter in the script using command :-<\/p>\n<p><b>python pause_check.py &#8220;&lt;checkname&gt;&#8221;<b><\/b><\/b><\/p>\n<p>Pingdom REST API provides an easy and efficient way to interact with pingdom tool which can be used in various deployment techniques.<\/p>\n<p><strong>\u00a0<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pingdom is a tool which is used for monitoring websites\u2019 availability in real time. Now we can interact with pingdom using its REST API with the help of python scripts. Every time, a deployment is made on production servers, the pingdom tool throws a downalert because several services like tomcat, apache etc need to be [&hellip;]<\/p>\n","protected":false},"author":170,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":19,"footnotes":""},"categories":[1174,1],"tags":[248,1789,1791,1788,1790],"class_list":["post-19939","post","type-post","status-publish","format-standard","hentry","category-aws-2","category-technology","tag-aws","tag-aws-monitoring","tag-command-line-interface-for-pingdom","tag-pingdom-cli","tag-python-scripting"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Pingdom is a tool which is used for monitoring websites\u2019 availability in real time. Now we can interact with pingdom using its REST API with the help of python scripts. Every time, a deployment is made on production servers, the pingdom tool throws a downalert because several services like tomcat, apache etc need to be\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Tarun Saxena\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.today\/blog\/python-interface-for-pingdom-rest-api\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Python Interface for Pingdom REST API | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Pingdom is a tool which is used for monitoring websites\u2019 availability in real time. Now we can interact with pingdom using its REST API with the help of python scripts. Every time, a deployment is made on production servers, the pingdom tool throws a downalert because several services like tomcat, apache etc need to be\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.today\/blog\/python-interface-for-pingdom-rest-api\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Python Interface for Pingdom REST API | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Pingdom is a tool which is used for monitoring websites\u2019 availability in real time. Now we can interact with pingdom using its REST API with the help of python scripts. Every time, a deployment is made on production servers, the pingdom tool throws a downalert because several services like tomcat, apache etc need to be\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/python-interface-for-pingdom-rest-api\\\/#article\",\"name\":\"Python Interface for Pingdom REST API | TO THE NEW Blog\",\"headline\":\"Python Interface for Pingdom REST API\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/tarun-saxena\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2015\\\/05\\\/p1.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/python-interface-for-pingdom-rest-api\\\/#articleImage\"},\"datePublished\":\"2015-05-25T13:34:35+05:30\",\"dateModified\":\"2015-06-23T17:15:19+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/python-interface-for-pingdom-rest-api\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/python-interface-for-pingdom-rest-api\\\/#webpage\"},\"articleSection\":\"AWS, Technology, aws, AWS Monitoring, Command Line interface for Pingdom, Pingdom-CLI, Python Scripting\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/python-interface-for-pingdom-rest-api\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/python-interface-for-pingdom-rest-api\\\/#listItem\",\"name\":\"Python Interface for Pingdom REST API\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/python-interface-for-pingdom-rest-api\\\/#listItem\",\"position\":3,\"name\":\"Python Interface for Pingdom REST API\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/tarun-saxena\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/tarun-saxena\\\/\",\"name\":\"Tarun Saxena\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/python-interface-for-pingdom-rest-api\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/abdca3c8-9650-46c0-b54a-6bd9ae2dc989_2752-Tarun-Saxena-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Tarun Saxena\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/python-interface-for-pingdom-rest-api\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/python-interface-for-pingdom-rest-api\\\/\",\"name\":\"Python Interface for Pingdom REST API | TO THE NEW Blog\",\"description\":\"Pingdom is a tool which is used for monitoring websites\\u2019 availability in real time. Now we can interact with pingdom using its REST API with the help of python scripts. Every time, a deployment is made on production servers, the pingdom tool throws a downalert because several services like tomcat, apache etc need to be\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/python-interface-for-pingdom-rest-api\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/tarun-saxena\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/tarun-saxena\\\/#author\"},\"datePublished\":\"2015-05-25T13:34:35+05:30\",\"dateModified\":\"2015-06-23T17:15:19+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Python Interface for Pingdom REST API | TO THE NEW Blog","description":"Pingdom is a tool which is used for monitoring websites\u2019 availability in real time. Now we can interact with pingdom using its REST API with the help of python scripts. Every time, a deployment is made on production servers, the pingdom tool throws a downalert because several services like tomcat, apache etc need to be","canonical_url":"https:\/\/2thenew.today\/blog\/python-interface-for-pingdom-rest-api\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.today\/blog\/python-interface-for-pingdom-rest-api\/#article","name":"Python Interface for Pingdom REST API | TO THE NEW Blog","headline":"Python Interface for Pingdom REST API","author":{"@id":"https:\/\/2thenew.today\/blog\/author\/tarun-saxena\/#author"},"publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2015\/05\/p1.png","@id":"https:\/\/2thenew.today\/blog\/python-interface-for-pingdom-rest-api\/#articleImage"},"datePublished":"2015-05-25T13:34:35+05:30","dateModified":"2015-06-23T17:15:19+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.today\/blog\/python-interface-for-pingdom-rest-api\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/python-interface-for-pingdom-rest-api\/#webpage"},"articleSection":"AWS, Technology, aws, AWS Monitoring, Command Line interface for Pingdom, Pingdom-CLI, Python Scripting"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.today\/blog\/python-interface-for-pingdom-rest-api\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.today\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/2thenew.today\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/python-interface-for-pingdom-rest-api\/#listItem","name":"Python Interface for Pingdom REST API"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/python-interface-for-pingdom-rest-api\/#listItem","position":3,"name":"Python Interface for Pingdom REST API","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.today\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.today\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.today\/blog\/author\/tarun-saxena\/#author","url":"https:\/\/2thenew.today\/blog\/author\/tarun-saxena\/","name":"Tarun Saxena","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.today\/blog\/python-interface-for-pingdom-rest-api\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/abdca3c8-9650-46c0-b54a-6bd9ae2dc989_2752-Tarun-Saxena-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Tarun Saxena"}},{"@type":"WebPage","@id":"https:\/\/2thenew.today\/blog\/python-interface-for-pingdom-rest-api\/#webpage","url":"https:\/\/2thenew.today\/blog\/python-interface-for-pingdom-rest-api\/","name":"Python Interface for Pingdom REST API | TO THE NEW Blog","description":"Pingdom is a tool which is used for monitoring websites\u2019 availability in real time. Now we can interact with pingdom using its REST API with the help of python scripts. Every time, a deployment is made on production servers, the pingdom tool throws a downalert because several services like tomcat, apache etc need to be","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.today\/blog\/python-interface-for-pingdom-rest-api\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.today\/blog\/author\/tarun-saxena\/#author"},"creator":{"@id":"https:\/\/2thenew.today\/blog\/author\/tarun-saxena\/#author"},"datePublished":"2015-05-25T13:34:35+05:30","dateModified":"2015-06-23T17:15:19+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.today\/blog\/#website","url":"https:\/\/2thenew.today\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Python Interface for Pingdom REST API | TO THE NEW Blog","og:description":"Pingdom is a tool which is used for monitoring websites\u2019 availability in real time. Now we can interact with pingdom using its REST API with the help of python scripts. Every time, a deployment is made on production servers, the pingdom tool throws a downalert because several services like tomcat, apache etc need to be","og:url":"https:\/\/2thenew.today\/blog\/python-interface-for-pingdom-rest-api\/","og:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Python Interface for Pingdom REST API | TO THE NEW Blog","twitter:description":"Pingdom is a tool which is used for monitoring websites\u2019 availability in real time. Now we can interact with pingdom using its REST API with the help of python scripts. Every time, a deployment is made on production servers, the pingdom tool throws a downalert because several services like tomcat, apache etc need to be","twitter:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"19939","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 18:12:37","updated":"2024-02-29 09:29:24","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPython Interface for Pingdom REST API\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.today\/blog"},{"label":"Technology","link":"https:\/\/2thenew.today\/blog\/category\/technology\/"},{"label":"Python Interface for Pingdom REST API","link":"https:\/\/2thenew.today\/blog\/python-interface-for-pingdom-rest-api\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/19939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/users\/170"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/comments?post=19939"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/19939\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/media?parent=19939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/categories?post=19939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/tags?post=19939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}