simple-metrics 0.0.10-java
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.rbenv-version +1 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/LICENSE +13 -0
- data/README.md +126 -0
- data/Rakefile +7 -0
- data/doc/NurseRatched.html +246 -0
- data/doc/Rdio.html +245 -0
- data/doc/Samovar.html +241 -0
- data/doc/Simple/Metrics/Check.html +312 -0
- data/doc/Simple/Metrics/Graphite.html +268 -0
- data/doc/Simple/Metrics/HEALTHY.html +144 -0
- data/doc/Simple/Metrics/Health.html +292 -0
- data/doc/Simple/Metrics/Healthchecks.html +425 -0
- data/doc/Simple/Metrics/Meter.html +284 -0
- data/doc/Simple/Metrics/RackMetrics.html +371 -0
- data/doc/Simple/Metrics/Timer.html +235 -0
- data/doc/Simple/Metrics/UNHEALTHY.html +144 -0
- data/doc/Simple/Metrics/WARNING.html +144 -0
- data/doc/Simple/Metrics.html +523 -0
- data/doc/Simple.html +117 -0
- data/doc/_index.html +277 -0
- data/doc/class_list.html +53 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +328 -0
- data/doc/file.README.html +210 -0
- data/doc/file_list.html +55 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +210 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +196 -0
- data/doc/top-level-namespace.html +114 -0
- data/lib/java/jackson-core-asl-1.9.5.jar +0 -0
- data/lib/java/jackson-mapper-asl-1.9.5.jar +0 -0
- data/lib/java/metrics-core-2.1.1.jar +0 -0
- data/lib/java/metrics-graphite-2.1.1.jar +0 -0
- data/lib/java/metrics-servlet-2.1.1.jar +0 -0
- data/lib/java/slf4j-api-1.6.4.jar +0 -0
- data/lib/simple/metrics/graphite.rb +23 -0
- data/lib/simple/metrics/health.rb +15 -0
- data/lib/simple/metrics/healthcheck.rb +65 -0
- data/lib/simple/metrics/meter.rb +22 -0
- data/lib/simple/metrics/rack_metrics.rb +32 -0
- data/lib/simple/metrics/timer.rb +22 -0
- data/lib/simple/metrics.rb +51 -0
- data/lib/simple/version.rb +5 -0
- data/lib/simple.rb +6 -0
- data/simple-metrics.gemspec +21 -0
- data/spec/metrics/graphite_spec.rb +9 -0
- data/spec/metrics/healthcheck_spec.rb +55 -0
- data/spec/metrics/meter_spec.rb +20 -0
- data/spec/metrics/timer_spec.rb +29 -0
- data/spec/spec_helper.rb +13 -0
- metadata +174 -0
data/doc/Samovar.html
ADDED
@@ -0,0 +1,241 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: Samovar
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.3
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index (S)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">Samovar</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: Samovar
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">Samovar</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
<dt class="r2">Includes:</dt>
|
94
|
+
<dd class="r2"><span class='object_link'><a href="Simple/Metrics.html" title="Simple::Metrics (module)">Simple::Metrics</a></span></dd>
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<dt class="r1 last">Defined in:</dt>
|
101
|
+
<dd class="r1 last">README.md</dd>
|
102
|
+
|
103
|
+
</dl>
|
104
|
+
<div class="clear"></div>
|
105
|
+
|
106
|
+
<h2>Overview</h2><div class="docstring">
|
107
|
+
<div class="discussion">
|
108
|
+
<p>
|
109
|
+
Timers
|
110
|
+
</p>
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
114
|
+
</div>
|
115
|
+
<div class="tags">
|
116
|
+
|
117
|
+
|
118
|
+
</div>
|
119
|
+
<h2>Constant Summary</h2>
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
<h2>Constant Summary</h2>
|
125
|
+
|
126
|
+
<h3 class="inherited">Constants included
|
127
|
+
from <span class='object_link'><a href="Simple/Metrics.html" title="Simple::Metrics (module)">Simple::Metrics</a></span></h3>
|
128
|
+
<p class="inherited"><span class='object_link'><a href="Simple/Metrics.html#DEFAULT_DURATION_UNIT-constant" title="Simple::Metrics::DEFAULT_DURATION_UNIT (constant)">Simple::Metrics::DEFAULT_DURATION_UNIT</a></span>, <span class='object_link'><a href="Simple/Metrics.html#DEFAULT_RATE_UNIT-constant" title="Simple::Metrics::DEFAULT_RATE_UNIT (constant)">Simple::Metrics::DEFAULT_RATE_UNIT</a></span>, <span class='object_link'><a href="Simple/Metrics.html#DEFAULT_TIMING_UNIT-constant" title="Simple::Metrics::DEFAULT_TIMING_UNIT (constant)">Simple::Metrics::DEFAULT_TIMING_UNIT</a></span>, <span class='object_link'><a href="Simple/Metrics.html#VERSION-constant" title="Simple::Metrics::VERSION (constant)">Simple::Metrics::VERSION</a></span></p>
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
<h2>
|
136
|
+
Instance Method Summary
|
137
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
138
|
+
</h2>
|
139
|
+
|
140
|
+
<ul class="summary">
|
141
|
+
|
142
|
+
<li class="public ">
|
143
|
+
<span class="summary_signature">
|
144
|
+
|
145
|
+
<a href="#buh-instance_method" title="#buh (instance method)">- (Object) <strong>buh</strong> </a>
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
</span>
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
160
|
+
|
161
|
+
</li>
|
162
|
+
|
163
|
+
|
164
|
+
</ul>
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="Simple/Metrics.html" title="Simple::Metrics (module)">Simple::Metrics</a></span></h3>
|
177
|
+
<p class="inherited"><span class='object_link'><a href="Simple/Metrics.html#metrics_registry-instance_method" title="Simple::Metrics#metrics_registry (method)">#metrics_registry</a></span>, <span class='object_link'><a href="Simple/Metrics.html#new_metric_name-instance_method" title="Simple::Metrics#new_metric_name (method)">#new_metric_name</a></span>, <span class='object_link'><a href="Simple/Metrics.html#sanitize_classname-instance_method" title="Simple::Metrics#sanitize_classname (method)">#sanitize_classname</a></span></p>
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="Simple/Metrics/Timer.html" title="Simple::Metrics::Timer (module)">Simple::Metrics::Timer</a></span></h3>
|
188
|
+
<p class="inherited"><span class='object_link'><a href="Simple/Metrics/Timer.html#timer-instance_method" title="Simple::Metrics::Timer#timer (method)">#timer</a></span></p>
|
189
|
+
|
190
|
+
|
191
|
+
<div id="instance_method_details" class="method_details_list">
|
192
|
+
<h2>Instance Method Details</h2>
|
193
|
+
|
194
|
+
|
195
|
+
<div class="method_details first">
|
196
|
+
<h3 class="signature first" id="buh-instance_method">
|
197
|
+
|
198
|
+
- (<tt>Object</tt>) <strong>buh</strong>
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
</h3><table class="source_code">
|
205
|
+
<tr>
|
206
|
+
<td>
|
207
|
+
<pre class="lines">
|
208
|
+
|
209
|
+
|
210
|
+
52
|
211
|
+
53
|
212
|
+
54
|
213
|
+
55
|
214
|
+
56</pre>
|
215
|
+
</td>
|
216
|
+
<td>
|
217
|
+
<pre class="code"><span class="info file"># File 'README.md', line 52</span>
|
218
|
+
|
219
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_buh identifier id'>buh</span>
|
220
|
+
<span class='rubyid_timer identifier id'>timer</span><span class='lparen token'>(</span><span class='string val'>"tea time"</span><span class='rparen token'>)</span> <span class='rubyid_do do kw'>do</span>
|
221
|
+
<span class='string val'>"Brewing..."</span>
|
222
|
+
<span class='rubyid_end end kw'>end</span>
|
223
|
+
<span class='rubyid_end end kw'>end</span>
|
224
|
+
</pre>
|
225
|
+
</td>
|
226
|
+
</tr>
|
227
|
+
</table>
|
228
|
+
</div>
|
229
|
+
|
230
|
+
</div>
|
231
|
+
|
232
|
+
</div>
|
233
|
+
|
234
|
+
<div id="footer">
|
235
|
+
Generated on Mon Nov 05 22:03:45 2012 by
|
236
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
237
|
+
0.8.3 (ruby-1.9.2).
|
238
|
+
</div>
|
239
|
+
|
240
|
+
</body>
|
241
|
+
</html>
|
@@ -0,0 +1,312 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: Simple::Metrics::Check
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.3
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../../';
|
20
|
+
framesUrl = "../../frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../../_index.html">Index (C)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../../Simple.html" title="Simple (module)">Simple</a></span></span> » <span class='title'><span class='object_link'><a href="../Metrics.html" title="Simple::Metrics (module)">Metrics</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Check</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: Simple::Metrics::Check
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Java::ComYammerMetricsCore::HealthCheck</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">Java::ComYammerMetricsCore::HealthCheck</li>
|
82
|
+
|
83
|
+
<li class="next">Simple::Metrics::Check</li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
87
|
+
|
88
|
+
</dd>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<dt class="r2 last">Defined in:</dt>
|
99
|
+
<dd class="r2 last">lib/simple/metrics/healthcheck.rb</dd>
|
100
|
+
|
101
|
+
</dl>
|
102
|
+
<div class="clear"></div>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
<h2>
|
113
|
+
Instance Method Summary
|
114
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
115
|
+
</h2>
|
116
|
+
|
117
|
+
<ul class="summary">
|
118
|
+
|
119
|
+
<li class="public ">
|
120
|
+
<span class="summary_signature">
|
121
|
+
|
122
|
+
<a href="#check-instance_method" title="#check (instance method)">- (Object) <strong>check</strong> </a>
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
</span>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
<span class="summary_desc"><div class='inline'><p>
|
137
|
+
Call the block and capture the return value.
|
138
|
+
</p>
|
139
|
+
</div></span>
|
140
|
+
|
141
|
+
</li>
|
142
|
+
|
143
|
+
|
144
|
+
<li class="public ">
|
145
|
+
<span class="summary_signature">
|
146
|
+
|
147
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Check) <strong>initialize</strong>(name, &blk) </a>
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
</span>
|
152
|
+
|
153
|
+
|
154
|
+
<span class="note title constructor">constructor</span>
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
<span class="summary_desc"><div class='inline'><p>
|
164
|
+
A new instance of Check.
|
165
|
+
</p>
|
166
|
+
</div></span>
|
167
|
+
|
168
|
+
</li>
|
169
|
+
|
170
|
+
|
171
|
+
</ul>
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
<div id="constructor_details" class="method_details_list">
|
176
|
+
<h2>Constructor Details</h2>
|
177
|
+
|
178
|
+
<div class="method_details first">
|
179
|
+
<h3 class="signature first" id="initialize-instance_method">
|
180
|
+
|
181
|
+
- (<tt><span class='object_link'><a href="" title="Simple::Metrics::Check (class)">Check</a></span></tt>) <strong>initialize</strong>(name, &blk)
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
</h3><div class="docstring">
|
188
|
+
<div class="discussion">
|
189
|
+
<p>
|
190
|
+
A new instance of Check
|
191
|
+
</p>
|
192
|
+
|
193
|
+
|
194
|
+
</div>
|
195
|
+
</div>
|
196
|
+
<div class="tags">
|
197
|
+
|
198
|
+
|
199
|
+
</div><table class="source_code">
|
200
|
+
<tr>
|
201
|
+
<td>
|
202
|
+
<pre class="lines">
|
203
|
+
|
204
|
+
|
205
|
+
38
|
206
|
+
39
|
207
|
+
40
|
208
|
+
41</pre>
|
209
|
+
</td>
|
210
|
+
<td>
|
211
|
+
<pre class="code"><span class="info file"># File 'lib/simple/metrics/healthcheck.rb', line 38</span>
|
212
|
+
|
213
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span><span class='comma token'>,</span> <span class='bitand op'>&</span><span class='rubyid_blk identifier id'>blk</span><span class='rparen token'>)</span>
|
214
|
+
<span class='rubyid_super super kw'>super</span><span class='lparen token'>(</span><span class='rubyid_name identifier id'>name</span><span class='rparen token'>)</span>
|
215
|
+
<span class='rubyid_@blk ivar id'>@blk</span> <span class='assign token'>=</span> <span class='rubyid_blk identifier id'>blk</span>
|
216
|
+
<span class='rubyid_end end kw'>end</span>
|
217
|
+
</pre>
|
218
|
+
</td>
|
219
|
+
</tr>
|
220
|
+
</table>
|
221
|
+
</div>
|
222
|
+
|
223
|
+
</div>
|
224
|
+
|
225
|
+
|
226
|
+
<div id="instance_method_details" class="method_details_list">
|
227
|
+
<h2>Instance Method Details</h2>
|
228
|
+
|
229
|
+
|
230
|
+
<div class="method_details first">
|
231
|
+
<h3 class="signature first" id="check-instance_method">
|
232
|
+
|
233
|
+
- (<tt>Object</tt>) <strong>check</strong>
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
</h3><div class="docstring">
|
240
|
+
<div class="discussion">
|
241
|
+
<p>
|
242
|
+
Call the block and capture the return value. If the result is
|
243
|
+
`Simple::Metrics::HEALTHY`, mark the healthcheck as healthy. If the result
|
244
|
+
is a `Simple::Metrics::WARNING`, mark the healthcheck in the warning state.
|
245
|
+
If the result is a `Simple::Metrics::UNHEALTHY`, or throws an error, mark
|
246
|
+
the healthcheck as unhealthy.
|
247
|
+
</p>
|
248
|
+
|
249
|
+
|
250
|
+
</div>
|
251
|
+
</div>
|
252
|
+
<div class="tags">
|
253
|
+
|
254
|
+
|
255
|
+
</div><table class="source_code">
|
256
|
+
<tr>
|
257
|
+
<td>
|
258
|
+
<pre class="lines">
|
259
|
+
|
260
|
+
|
261
|
+
48
|
262
|
+
49
|
263
|
+
50
|
264
|
+
51
|
265
|
+
52
|
266
|
+
53
|
267
|
+
54
|
268
|
+
55
|
269
|
+
56
|
270
|
+
57
|
271
|
+
58
|
272
|
+
59
|
273
|
+
60
|
274
|
+
61
|
275
|
+
62</pre>
|
276
|
+
</td>
|
277
|
+
<td>
|
278
|
+
<pre class="code"><span class="info file"># File 'lib/simple/metrics/healthcheck.rb', line 48</span>
|
279
|
+
|
280
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_check identifier id'>check</span>
|
281
|
+
<span class='rubyid_begin begin kw'>begin</span>
|
282
|
+
<span class='rubyid_r identifier id'>r</span> <span class='assign token'>=</span> <span class='rubyid_@blk ivar id'>@blk</span><span class='dot token'>.</span><span class='rubyid_call identifier id'>call</span>
|
283
|
+
<span class='rubyid_case case kw'>case</span> <span class='lparen token'>(</span><span class='rubyid_r identifier id'>r</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='rubyid_Class constant id'>Class</span><span class='rparen token'>)</span> <span class='question op'>?</span> <span class='rubyid_r identifier id'>r</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span> <span class='colon op'>:</span> <span class='rubyid_r identifier id'>r</span><span class='rparen token'>)</span>
|
284
|
+
<span class='rubyid_when when kw'>when</span> <span class='rubyid_Simple constant id'>Simple</span><span class='colon2 op'>::</span><span class='rubyid_Metrics constant id'>Metrics</span><span class='colon2 op'>::</span><span class='rubyid_HEALTHY constant id'>HEALTHY</span>
|
285
|
+
<span class='rubyid_Java constant id'>Java</span><span class='colon2 op'>::</span><span class='rubyid_ComYammerMetricsCore constant id'>ComYammerMetricsCore</span><span class='colon2 op'>::</span><span class='rubyid_HealthCheck constant id'>HealthCheck</span><span class='colon2 op'>::</span><span class='rubyid_Result constant id'>Result</span><span class='dot token'>.</span><span class='rubyid_healthy identifier id'>healthy</span>
|
286
|
+
<span class='rubyid_when when kw'>when</span> <span class='rubyid_Simple constant id'>Simple</span><span class='colon2 op'>::</span><span class='rubyid_Metrics constant id'>Metrics</span><span class='colon2 op'>::</span><span class='rubyid_WARNING constant id'>WARNING</span>
|
287
|
+
<span class='rubyid_Java constant id'>Java</span><span class='colon2 op'>::</span><span class='rubyid_ComYammerMetricsCore constant id'>ComYammerMetricsCore</span><span class='colon2 op'>::</span><span class='rubyid_HealthCheck constant id'>HealthCheck</span><span class='colon2 op'>::</span><span class='rubyid_Result constant id'>Result</span><span class='dot token'>.</span><span class='rubyid_warning identifier id'>warning</span>
|
288
|
+
<span class='rubyid_when when kw'>when</span> <span class='rubyid_Simple constant id'>Simple</span><span class='colon2 op'>::</span><span class='rubyid_Metrics constant id'>Metrics</span><span class='colon2 op'>::</span><span class='rubyid_UNHEALTHY constant id'>UNHEALTHY</span>
|
289
|
+
<span class='rubyid_Java constant id'>Java</span><span class='colon2 op'>::</span><span class='rubyid_ComYammerMetricsCore constant id'>ComYammerMetricsCore</span><span class='colon2 op'>::</span><span class='rubyid_HealthCheck constant id'>HealthCheck</span><span class='colon2 op'>::</span><span class='rubyid_Result constant id'>Result</span><span class='dot token'>.</span><span class='rubyid_unhealthy identifier id'>unhealthy</span><span class='lparen token'>(</span><span class='rubyid_r identifier id'>r</span><span class='dot token'>.</span><span class='rubyid_message identifier id'>message</span><span class='rparen token'>)</span>
|
290
|
+
<span class='rubyid_end end kw'>end</span>
|
291
|
+
<span class='rubyid_rescue rescue kw'>rescue</span> <span class='rubyid_StandardError constant id'>StandardError</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='rubyid_e identifier id'>e</span>
|
292
|
+
<span class='rubyid_Java constant id'>Java</span><span class='colon2 op'>::</span><span class='rubyid_ComYammerMetricsCore constant id'>ComYammerMetricsCore</span><span class='colon2 op'>::</span><span class='rubyid_HealthCheck constant id'>HealthCheck</span><span class='colon2 op'>::</span><span class='rubyid_Result constant id'>Result</span><span class='dot token'>.</span><span class='rubyid_unhealthy identifier id'>unhealthy</span><span class='lparen token'>(</span><span class='rubyid_e identifier id'>e</span><span class='dot token'>.</span><span class='rubyid_message identifier id'>message</span><span class='rparen token'>)</span>
|
293
|
+
<span class='rubyid_end end kw'>end</span>
|
294
|
+
<span class='rubyid_end end kw'>end</span>
|
295
|
+
</pre>
|
296
|
+
</td>
|
297
|
+
</tr>
|
298
|
+
</table>
|
299
|
+
</div>
|
300
|
+
|
301
|
+
</div>
|
302
|
+
|
303
|
+
</div>
|
304
|
+
|
305
|
+
<div id="footer">
|
306
|
+
Generated on Mon Nov 05 22:03:45 2012 by
|
307
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
308
|
+
0.8.3 (ruby-1.9.2).
|
309
|
+
</div>
|
310
|
+
|
311
|
+
</body>
|
312
|
+
</html>
|