appboard 1.0.3 → 1.0.4
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.md +1 -0
- data/examples/alert.rb +55 -0
- data/lib/appboard/version.rb +1 -1
- data/lib/appboard.rb +1 -1
- metadata +5 -4
data/README.md
CHANGED
@@ -9,6 +9,7 @@ Further reading:
|
|
9
9
|
* [Home page](http://appboard.me/)
|
10
10
|
* [The essential documentation](http://appboard.me/docs)
|
11
11
|
* [List of available widgets](http://appboard.me/docs/widgets)
|
12
|
+
* [Demo Dashboard](http://appboard.me/demo)
|
12
13
|
* [Follow us on Twitter](http://twitter.com/appboard)
|
13
14
|
|
14
15
|
NOTE: We are currently in private beta. Please let me know (eugene@appboard.me) if you'd like an invite.
|
data/examples/alert.rb
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'appboard'
|
3
|
+
|
4
|
+
#
|
5
|
+
# Updates Alert Widget on Dashboard (see http://appboard.me/docs/alert)
|
6
|
+
# Don't forget to specify your apiKey and widget identifier.
|
7
|
+
#
|
8
|
+
Appboard.push {
|
9
|
+
apiKey 'wOUpOJeOozcgPdZa'
|
10
|
+
|
11
|
+
widget('some name here') {
|
12
|
+
uid "gFMndwmrtZzAWWYB"
|
13
|
+
data do
|
14
|
+
[
|
15
|
+
{
|
16
|
+
:current => 0,
|
17
|
+
:label => 'server 1',
|
18
|
+
:boundaries => [
|
19
|
+
{
|
20
|
+
:shape => "triangledown",
|
21
|
+
:color => "#fd1d25",
|
22
|
+
:range => 0,
|
23
|
+
:title => "Down"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
:shape => "triangleup",
|
27
|
+
:color => "#9ac736",
|
28
|
+
:range => 1,
|
29
|
+
:title => "Up"
|
30
|
+
}
|
31
|
+
]
|
32
|
+
},
|
33
|
+
{
|
34
|
+
:current => 1,
|
35
|
+
:label => 'server 2',
|
36
|
+
:boundaries => [
|
37
|
+
{
|
38
|
+
:shape => "triangledown",
|
39
|
+
:color => "#fd1d25",
|
40
|
+
:range => 0,
|
41
|
+
:title => "Down"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
:shape => "triangleup",
|
45
|
+
:color => "#9ac736",
|
46
|
+
:range => 1,
|
47
|
+
:title => "Up"
|
48
|
+
}
|
49
|
+
]
|
50
|
+
}
|
51
|
+
]
|
52
|
+
end
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
data/lib/appboard/version.rb
CHANGED
data/lib/appboard.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appboard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 4
|
10
|
+
version: 1.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- appboard.me
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-07-13 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -90,6 +90,7 @@ extra_rdoc_files:
|
|
90
90
|
- README.md
|
91
91
|
files:
|
92
92
|
- README.md
|
93
|
+
- examples/alert.rb
|
93
94
|
- examples/barchart.rb
|
94
95
|
- examples/bubblechart.rb
|
95
96
|
- examples/columnchart.rb
|