pingr-rails 0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +33 -0
- metadata +63 -0
data/README.rdoc
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
pingr-rails is a rails plugin for accessing the Pingdom API using "Pingr":http://github.com/chris/pingr
|
2
|
+
|
3
|
+
h2. Requirements
|
4
|
+
|
5
|
+
Install the soap4r (and thor gems if you want to use the command line version).
|
6
|
+
|
7
|
+
h2. Usage
|
8
|
+
|
9
|
+
You will need to create a "pingdom.yml" file the __config__ directory. It should look like:
|
10
|
+
|
11
|
+
<pre><code>
|
12
|
+
:username: someemail@example.com
|
13
|
+
:password: YourPingdomPassword
|
14
|
+
:api_key: 13c9a18ee27cafebabe4a72dead3beef
|
15
|
+
</code></pre>
|
16
|
+
|
17
|
+
Obviously replace your email/login, password, and Pingdom API keys appropriately.
|
18
|
+
|
19
|
+
You can then call methods on the __PingrRails__ class
|
20
|
+
|
21
|
+
e.g. <pre><code> PingrRails.current_states </code></pre>
|
22
|
+
|
23
|
+
available methods:
|
24
|
+
<pre><code>
|
25
|
+
* downtime_summary(check, from, to)
|
26
|
+
* responsetime_summary(check, from, to, resolution = Report_ResolutionEnum::DAILY, locs = nil)
|
27
|
+
* outages(check, from, to, page=nil)
|
28
|
+
* raw_data(check, from, to, page=nil)
|
29
|
+
* checks
|
30
|
+
* locations
|
31
|
+
* current_states
|
32
|
+
* last_outages
|
33
|
+
</code></pre>
|
metadata
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pingr-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
version: "0.1"
|
9
|
+
platform: ruby
|
10
|
+
authors:
|
11
|
+
- github.com/bquilitz
|
12
|
+
- github.com/chris
|
13
|
+
- github.com/consti
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-07-28 00:00:00 +02:00
|
19
|
+
default_executable:
|
20
|
+
dependencies: []
|
21
|
+
|
22
|
+
description: pingr-rails is a rails plugin for accessing the Pingdom API using Pingr
|
23
|
+
email: consti@tupalo.com
|
24
|
+
executables: []
|
25
|
+
|
26
|
+
extensions: []
|
27
|
+
|
28
|
+
extra_rdoc_files:
|
29
|
+
- README.rdoc
|
30
|
+
files:
|
31
|
+
- README.rdoc
|
32
|
+
has_rdoc: true
|
33
|
+
homepage: http://github.com/consti/pingr-rails
|
34
|
+
licenses: []
|
35
|
+
|
36
|
+
post_install_message:
|
37
|
+
rdoc_options:
|
38
|
+
- --charset=UTF-8
|
39
|
+
require_paths:
|
40
|
+
- lib
|
41
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
version: "0"
|
48
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
segments:
|
53
|
+
- 0
|
54
|
+
version: "0"
|
55
|
+
requirements: []
|
56
|
+
|
57
|
+
rubyforge_project:
|
58
|
+
rubygems_version: 1.3.6
|
59
|
+
signing_key:
|
60
|
+
specification_version: 2
|
61
|
+
summary: pingr-rails is a rails plugin for accessing the Pingdom API using Pingr
|
62
|
+
test_files: []
|
63
|
+
|