{ "info": { "author": "Mario Mann", "author_email": "dedi-extern@novatec-gmbh.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: ISC License (ISCL)", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: System :: Monitoring" ], "description": "=================\nPingdomLib v2.0.3\n=================\nWritten by: Kenneth Wilke \n\nThis is a python library to provide full access to the pingdom API, along with\na few additional features to make using the API easier and pythonic.\n\nUsage examples\n=================\n\nConnecting to pingdom\n---------------------\n\n.. code-block:: python\n\n import pingdomlib\n api = pingdomlib.Pingdom(username, password, apikey)\n\nShow all checks that are not in 'UP' status\n-------------------------------------------\n\n.. code-block:: python\n\n # See pingdomlib.pingdom documentation to see available calls and settings\n pingdomchecks = api.getChecks()\n for check in pingdomchecks:\n # See pingdomlib.check documentation for information on PingdomCheck class\n if check.status != 'up':\n print check\n\nCreating a new check\n--------------------\n\n.. code-block:: python\n\n newcheck = api.newCheck(\"New check name\", \"www.hostnametocheck.com\")\n\nUpdating a check\n----------------\n\n.. code-block:: python\n\n # Updates to check objects are pushed immediately to pingdom\n newcheck.paused = True\n\nDisabling change pushing for checks\n-----------------------------------\n\n.. code-block:: python\n\n api.pushChanges = False\n\nGet last 10 pingdom alerts sent\n-------------------------------\n\n.. code-block:: python\n\n import datetime\n for alert in api.alerts(limit=10):\n time = datetime.datetime.fromtimestamp(alert['time'])\n timestamp = time.strftime('%Y-%m-%d %H:%M:%S')\n\n print \"[%s] %s is %s\" % (time, alert['name'], alert['status'])\n\nGet outages for a specific check\n--------------------------------\n\n.. code-block:: python\n\n import datetime\n check = api.getCheck(227878)\n for outage in check.outages():\n # timestamp conversion\n time_start = datetime.datetime.fromtimestamp(outage['timefrom'])\n timestamp_start = time_start.strftime('%Y-%m-%d %H:%M:%S')\n time_end = datetime.datetime.fromtimestamp(outage['timeto'])\n timestamp_end = time_end.strftime('%Y-%m-%d %H:%M:%S')\n\n print \"%s: %s from %s to %s [%dm]\" % (check.name, outage['status'],\n timestamp_start, timestamp_end,\n (outage['timeto'] -\n outage['timefrom']) / 60)\n\nContributors\n============\n* Wil Clouser\n* Ash Berlin\n* Wu Jiang\n* Gertjan Oude Lohuis\n* Benjamin Boudreau\n* Britt Gresham\n* Allard Hoeve\n* Willem de Groot\n* Aaron Fay\n* Rick van de Loo\n* Oleksandr Kushchenko\n* Steven Bailey\n\nSpecial thanks\n==============\nAnders Ekman, Pingdom, for offering warm and helpful support with the API\n\nTODO list\n=========\nPlanned improvements\n--------------------\n* Optional Gzip Compression\n* Improve check update process with pushChanges disabled\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/NovaTec-APM/PingdomLib", "keywords": "", "license": "ISC license", "maintainer": "", "maintainer_email": "", "name": "PingdomLib3", "package_url": "https://pypi.org/project/PingdomLib3/", "platform": "", "project_url": "https://pypi.org/project/PingdomLib3/", "project_urls": { "Homepage": "https://github.com/NovaTec-APM/PingdomLib" }, "release_url": "https://pypi.org/project/PingdomLib3/3.0.0/", "requires_dist": [ "requests (>=2.2.1)" ], "requires_python": "", "summary": "A documented python library to consume the full pingdom API", "version": "3.0.0" }, "last_serial": 4906807, "releases": { "3.0.0": [ { "comment_text": "", "digests": { "md5": "cf535e552aadbf05ba8cbf2843e2d02c", "sha256": "296be532edf24de29c2ca7ea909c34aa99dd7895753eade832a852ba7fe2c553" }, "downloads": -1, "filename": "PingdomLib3-3.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cf535e552aadbf05ba8cbf2843e2d02c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 20617, "upload_time": "2019-03-06T19:20:57", "url": "https://files.pythonhosted.org/packages/e2/8b/da2119a274e5ba5cb9fbdff47fd966c72e5eca9636ab6e1d427f222bf38e/PingdomLib3-3.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b4c1867c3cc7ccc59041a92d12e6f2b6", "sha256": "ad11979d6fcdc2b8312310d4e9e520d2ac3ce8a2a835c6941f58c28fc702bf25" }, "downloads": -1, "filename": "PingdomLib3-3.0.0.tar.gz", "has_sig": false, "md5_digest": "b4c1867c3cc7ccc59041a92d12e6f2b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20005, "upload_time": "2019-03-06T19:21:00", "url": "https://files.pythonhosted.org/packages/61/de/c1444a09160fae3ed4a7fa4dbeb413ee306a70cd939b5b3b67750c6fb668/PingdomLib3-3.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cf535e552aadbf05ba8cbf2843e2d02c", "sha256": "296be532edf24de29c2ca7ea909c34aa99dd7895753eade832a852ba7fe2c553" }, "downloads": -1, "filename": "PingdomLib3-3.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cf535e552aadbf05ba8cbf2843e2d02c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 20617, "upload_time": "2019-03-06T19:20:57", "url": "https://files.pythonhosted.org/packages/e2/8b/da2119a274e5ba5cb9fbdff47fd966c72e5eca9636ab6e1d427f222bf38e/PingdomLib3-3.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b4c1867c3cc7ccc59041a92d12e6f2b6", "sha256": "ad11979d6fcdc2b8312310d4e9e520d2ac3ce8a2a835c6941f58c28fc702bf25" }, "downloads": -1, "filename": "PingdomLib3-3.0.0.tar.gz", "has_sig": false, "md5_digest": "b4c1867c3cc7ccc59041a92d12e6f2b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20005, "upload_time": "2019-03-06T19:21:00", "url": "https://files.pythonhosted.org/packages/61/de/c1444a09160fae3ed4a7fa4dbeb413ee306a70cd939b5b3b67750c6fb668/PingdomLib3-3.0.0.tar.gz" } ] }