Skip to content
This repository was archived by the owner on Dec 17, 2019. It is now read-only.

Rudy/master updated #2

Open
wants to merge 37 commits into
base: datadog
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
76fed3a
Adding the ability to filter check results by start time.
alq666 Aug 31, 2011
5faf6c1
Added get_summary_average
jasonsears Mar 3, 2012
7605f2b
ignore .idea files
johncosta Mar 16, 2012
fbb5f24
add initial sphinx docs
johncosta Mar 16, 2012
945c79a
move documentation to docs dir, sphinx documentation
johncosta Mar 16, 2012
f7edda7
ignore _build dir
johncosta Mar 16, 2012
a9b2a55
consolidate license to license file
johncosta Mar 16, 2012
f3a6f03
consolidate license to license file
johncosta Mar 16, 2012
ed0d1cb
consolidate license to LICENSE file
johncosta Mar 16, 2012
37fd7f2
pep8
johncosta Mar 16, 2012
5a209d4
pep8
johncosta Mar 16, 2012
6b4fb74
pep8
johncosta Mar 16, 2012
2a73278
pep8
johncosta Mar 16, 2012
2998f86
remove unused imports
johncosta Mar 16, 2012
68e9860
pep8
johncosta Mar 16, 2012
f39aafc
modified project to use requests
johncosta Mar 16, 2012
97aa2cc
add requests as dependency in docs
johncosta Mar 16, 2012
cec1bc8
more doc cleanup
johncosta Mar 16, 2012
b0e4fe7
add excludes filter
johncosta Mar 16, 2012
8261778
is list not dict
johncosta Mar 16, 2012
0fbe799
Nonetype is not iterable
johncosta Mar 16, 2012
7e073c4
Note about request back to author
johncosta Mar 16, 2012
faabcae
add comparison method
johncosta Mar 16, 2012
974df5e
check excludes now is a list of check names
johncosta Mar 16, 2012
672b535
set default value for check_excludes
johncosta Mar 16, 2012
cea02f9
pep8
johncosta Mar 16, 2012
bbf72a6
change name and version up for release to pypi
johncosta Mar 21, 2012
d297076
remove comments that where breaking setup
johncosta Mar 22, 2012
4d8a490
Merge branch 'master' of https://github.com/johncosta/pingdom-python
mbabineau Feb 8, 2013
53e22f2
Project info and doc-related tweaks
mbabineau Feb 8, 2013
c6b631e
Fixed Python 3 support
joelverhagen Dec 17, 2013
f196393
Updated README.rst for dropped simplejson
joelverhagen Dec 17, 2013
da8d59c
Bump for pull request
mbabineau Dec 18, 2013
33dcbea
Merge branch 'master' into datadog
Aug 29, 2014
6b3f255
Conn| Use requests session to have a cached connection
Aug 29, 2014
ab86a28
Connection| USe session at the connection object level
Aug 29, 2014
4ed7387
Up version to 0.2.1-2
Aug 29, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ bin
develop-eggs
.installed.cfg
.pyc
.idea
_build

# Installer logs
pip-log.txt
Expand Down
9 changes: 9 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Contributors
------------------------------------------------------------------------------
Mike Babineau (https://github.com/mbabineau)
David King (https://github.com/ketralnis)
John Walsh (https://github.com/walsh159)
Musannif Zahir (https://github.com/mzahir)
Peter Schaadt (https://github.com/peterfschaadt)
John Costa (https://github.com/johncosta) (@johncosta)
Joel Verhagen (https://github.com/joelverhagen)
14 changes: 14 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Author: Mike Babineau <[email protected]>
Copyright 2011 Electronic Arts Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
33 changes: 33 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
==============
pingdom-python
==============
3rd-party Python library for Pingdom_.'s new REST API.
Note that this API is still in beta, so may change at any time. For more
information about the API, see Pingdom's blog post_.

Currently, the library supports:

* Checks (create, delete, get, list)

============
Requirements
============

- Pingdom account
- requests (0.10.8 or newer)

=============
Documentation
=============

More project documentation can be found in the docs directory. Documentation
can be built using sphinx.

pip install sphinx

cd docs

make html

.. _Pingdom: http://pingdom.com
.. _post: http://royal.pingdom.com/2011/03/22/new-pingdom-api-enters-public-beta/
153 changes: 153 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
# Makefile for Sphinx documentation
#

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build

# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .

.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext

help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " dirhtml to make HTML files named index.html in directories"
@echo " singlehtml to make a single large HTML file"
@echo " pickle to make pickle files"
@echo " json to make JSON files"
@echo " htmlhelp to make HTML files and a HTML help project"
@echo " qthelp to make HTML files and a qthelp project"
@echo " devhelp to make HTML files and a Devhelp project"
@echo " epub to make an epub"
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
@echo " latexpdf to make LaTeX files and run them through pdflatex"
@echo " text to make text files"
@echo " man to make manual pages"
@echo " texinfo to make Texinfo files"
@echo " info to make Texinfo files and run them through makeinfo"
@echo " gettext to make PO message catalogs"
@echo " changes to make an overview of all changed/added/deprecated items"
@echo " linkcheck to check all external links for integrity"
@echo " doctest to run all doctests embedded in the documentation (if enabled)"

clean:
-rm -rf $(BUILDDIR)/*

html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."

dirhtml:
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."

singlehtml:
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
@echo
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."

pickle:
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
@echo
@echo "Build finished; now you can process the pickle files."

json:
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
@echo
@echo "Build finished; now you can process the JSON files."

htmlhelp:
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
@echo
@echo "Build finished; now you can run HTML Help Workshop with the" \
".hhp project file in $(BUILDDIR)/htmlhelp."

qthelp:
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
@echo
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/pingdom-python.qhcp"
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/pingdom-python.qhc"

devhelp:
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
@echo
@echo "Build finished."
@echo "To view the help file:"
@echo "# mkdir -p $$HOME/.local/share/devhelp/pingdom-python"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/pingdom-python"
@echo "# devhelp"

epub:
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
@echo
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."

latex:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
@echo "Run \`make' in that directory to run these through (pdf)latex" \
"(use \`make latexpdf' here to do that automatically)."

latexpdf:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through pdflatex..."
$(MAKE) -C $(BUILDDIR)/latex all-pdf
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."

text:
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
@echo
@echo "Build finished. The text files are in $(BUILDDIR)/text."

man:
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
@echo
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."

texinfo:
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
@echo "Run \`make' in that directory to run these through makeinfo" \
"(use \`make info' here to do that automatically)."

info:
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo "Running Texinfo files through makeinfo..."
make -C $(BUILDDIR)/texinfo info
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."

gettext:
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
@echo
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."

changes:
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
@echo
@echo "The overview file is in $(BUILDDIR)/changes."

linkcheck:
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
@echo
@echo "Link check complete; look for any errors in the above output " \
"or in $(BUILDDIR)/linkcheck/output.txt."

doctest:
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."
Loading