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
@@ -0,0 +1,268 @@
|
|
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
|
+
Module: Simple::Metrics::Graphite
|
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 (G)</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">Graphite</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>Module: Simple::Metrics::Graphite
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<dt class="r1 last">Defined in:</dt>
|
82
|
+
<dd class="r1 last">lib/simple/metrics/graphite.rb</dd>
|
83
|
+
|
84
|
+
</dl>
|
85
|
+
<div class="clear"></div>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<h2>
|
96
|
+
Instance Method Summary
|
97
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
98
|
+
</h2>
|
99
|
+
|
100
|
+
<ul class="summary">
|
101
|
+
|
102
|
+
<li class="public ">
|
103
|
+
<span class="summary_signature">
|
104
|
+
|
105
|
+
<a href="#enable_graphite_reporter-instance_method" title="#enable_graphite_reporter (instance method)">- (Object) <strong>enable_graphite_reporter</strong>(server_name, server_port, prefix, interval_in_seconds = 1) </a>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
</span>
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
<span class="summary_desc"><div class='inline'><p>
|
120
|
+
Enable reporting directly to graphite.
|
121
|
+
</p>
|
122
|
+
</div></span>
|
123
|
+
|
124
|
+
</li>
|
125
|
+
|
126
|
+
|
127
|
+
</ul>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
<div id="instance_method_details" class="method_details_list">
|
133
|
+
<h2>Instance Method Details</h2>
|
134
|
+
|
135
|
+
|
136
|
+
<div class="method_details first">
|
137
|
+
<h3 class="signature first" id="enable_graphite_reporter-instance_method">
|
138
|
+
|
139
|
+
- (<tt>Object</tt>) <strong>enable_graphite_reporter</strong>(server_name, server_port, prefix, interval_in_seconds = 1)
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
</h3><div class="docstring">
|
146
|
+
<div class="discussion">
|
147
|
+
<p>
|
148
|
+
Enable reporting directly to graphite
|
149
|
+
</p>
|
150
|
+
|
151
|
+
|
152
|
+
</div>
|
153
|
+
</div>
|
154
|
+
<div class="tags">
|
155
|
+
<p class="tag_title">Parameters:</p>
|
156
|
+
<ul class="param">
|
157
|
+
|
158
|
+
<li>
|
159
|
+
|
160
|
+
<span class='name'>server_name</span>
|
161
|
+
|
162
|
+
|
163
|
+
<span class='type'>(<tt>String</tt>)</span>
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
—
|
168
|
+
<div class='inline'><p>
|
169
|
+
The hostname of the graphite server.
|
170
|
+
</p>
|
171
|
+
</div>
|
172
|
+
|
173
|
+
</li>
|
174
|
+
|
175
|
+
<li>
|
176
|
+
|
177
|
+
<span class='name'>server_port</span>
|
178
|
+
|
179
|
+
|
180
|
+
<span class='type'>(<tt>Int</tt>)</span>
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
—
|
185
|
+
<div class='inline'><p>
|
186
|
+
The port that graphite is running on.
|
187
|
+
</p>
|
188
|
+
</div>
|
189
|
+
|
190
|
+
</li>
|
191
|
+
|
192
|
+
<li>
|
193
|
+
|
194
|
+
<span class='name'>prefix</span>
|
195
|
+
|
196
|
+
|
197
|
+
<span class='type'>(<tt>String</tt>)</span>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
—
|
202
|
+
<div class='inline'><p>
|
203
|
+
The prefix to store the data under, eg: `services.development`. The class
|
204
|
+
name, or name of the application will be appended:
|
205
|
+
`services.development.teatime`
|
206
|
+
</p>
|
207
|
+
</div>
|
208
|
+
|
209
|
+
</li>
|
210
|
+
|
211
|
+
<li>
|
212
|
+
|
213
|
+
<span class='name'>interval_in_seconds</span>
|
214
|
+
|
215
|
+
|
216
|
+
<span class='type'>(<tt>Int</tt>)</span>
|
217
|
+
|
218
|
+
|
219
|
+
<em class="default">(defaults to: <tt>1</tt>)</em>
|
220
|
+
|
221
|
+
|
222
|
+
—
|
223
|
+
<div class='inline'><p>
|
224
|
+
Time interval for sending to graphite in seconds. (Defaults to 1 sec)
|
225
|
+
</p>
|
226
|
+
</div>
|
227
|
+
|
228
|
+
</li>
|
229
|
+
|
230
|
+
</ul>
|
231
|
+
|
232
|
+
|
233
|
+
</div><table class="source_code">
|
234
|
+
<tr>
|
235
|
+
<td>
|
236
|
+
<pre class="lines">
|
237
|
+
|
238
|
+
|
239
|
+
17
|
240
|
+
18
|
241
|
+
19
|
242
|
+
20</pre>
|
243
|
+
</td>
|
244
|
+
<td>
|
245
|
+
<pre class="code"><span class="info file"># File 'lib/simple/metrics/graphite.rb', line 17</span>
|
246
|
+
|
247
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_enable_graphite_reporter identifier id'>enable_graphite_reporter</span><span class='lparen token'>(</span><span class='rubyid_server_name identifier id'>server_name</span><span class='comma token'>,</span> <span class='rubyid_server_port identifier id'>server_port</span><span class='comma token'>,</span> <span class='rubyid_prefix identifier id'>prefix</span><span class='comma token'>,</span> <span class='rubyid_interval_in_seconds identifier id'>interval_in_seconds</span> <span class='assign token'>=</span> <span class='integer val'>1</span><span class='rparen token'>)</span>
|
248
|
+
<span class='rubyid_GraphiteReporter constant id'>GraphiteReporter</span><span class='dot token'>.</span><span class='rubyid_enable identifier id'>enable</span><span class='lparen token'>(</span><span class='rubyid_interval_in_seconds identifier id'>interval_in_seconds</span><span class='comma token'>,</span> <span class='rubyid_TimeUnit constant id'>TimeUnit</span><span class='colon2 op'>::</span><span class='rubyid_SECONDS constant id'>SECONDS</span><span class='comma token'>,</span>
|
249
|
+
<span class='rubyid_server_name identifier id'>server_name</span><span class='comma token'>,</span> <span class='rubyid_server_port identifier id'>server_port</span><span class='comma token'>,</span> <span class='rubyid_prefix identifier id'>prefix</span><span class='rparen token'>)</span>
|
250
|
+
<span class='rubyid_end end kw'>end</span>
|
251
|
+
</pre>
|
252
|
+
</td>
|
253
|
+
</tr>
|
254
|
+
</table>
|
255
|
+
</div>
|
256
|
+
|
257
|
+
</div>
|
258
|
+
|
259
|
+
</div>
|
260
|
+
|
261
|
+
<div id="footer">
|
262
|
+
Generated on Mon Nov 05 22:03:44 2012 by
|
263
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
264
|
+
0.8.3 (ruby-1.9.2).
|
265
|
+
</div>
|
266
|
+
|
267
|
+
</body>
|
268
|
+
</html>
|
@@ -0,0 +1,144 @@
|
|
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::HEALTHY
|
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 (H)</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">HEALTHY</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::HEALTHY
|
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"><span class='object_link'><a href="Health.html" title="Simple::Metrics::Health (class)">Health</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next"><span class='object_link'><a href="Health.html" title="Simple::Metrics::Health (class)">Health</a></span></li>
|
82
|
+
|
83
|
+
<li class="next">Simple::Metrics::HEALTHY</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/health.rb</dd>
|
100
|
+
|
101
|
+
</dl>
|
102
|
+
<div class="clear"></div>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<h2>Instance Attribute Summary</h2>
|
111
|
+
|
112
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Health.html" title="Simple::Metrics::Health (class)">Health</a></span></h3>
|
113
|
+
<p class="inherited"><span class='object_link'><a href="Health.html#message-instance_method" title="Simple::Metrics::Health#message (method)">#message</a></span></p>
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<h2>Method Summary</h2>
|
124
|
+
|
125
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Health.html" title="Simple::Metrics::Health (class)">Health</a></span></h3>
|
126
|
+
<p class="inherited"><span class='object_link'><a href="Health.html#initialize-instance_method" title="Simple::Metrics::Health#initialize (method)">#initialize</a></span></p>
|
127
|
+
<div id="constructor_details" class="method_details_list">
|
128
|
+
<h2>Constructor Details</h2>
|
129
|
+
|
130
|
+
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="Health.html#initialize-instance_method" title="Simple::Metrics::Health#initialize (method)">Simple::Metrics::Health</a></span></p>
|
131
|
+
|
132
|
+
</div>
|
133
|
+
|
134
|
+
|
135
|
+
</div>
|
136
|
+
|
137
|
+
<div id="footer">
|
138
|
+
Generated on Mon Nov 05 22:03:44 2012 by
|
139
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
140
|
+
0.8.3 (ruby-1.9.2).
|
141
|
+
</div>
|
142
|
+
|
143
|
+
</body>
|
144
|
+
</html>
|
@@ -0,0 +1,292 @@
|
|
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::Health
|
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 (H)</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">Health</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::Health
|
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">Simple::Metrics::Health</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<dt class="r2 last">Defined in:</dt>
|
97
|
+
<dd class="r2 last">lib/simple/metrics/health.rb</dd>
|
98
|
+
|
99
|
+
</dl>
|
100
|
+
<div class="clear"></div>
|
101
|
+
|
102
|
+
<div id="subclasses">
|
103
|
+
<h2>Direct Known Subclasses</h2>
|
104
|
+
<p class="children"><span class='object_link'><a href="HEALTHY.html" title="Simple::Metrics::HEALTHY (class)">HEALTHY</a></span>, <span class='object_link'><a href="UNHEALTHY.html" title="Simple::Metrics::UNHEALTHY (class)">UNHEALTHY</a></span>, <span class='object_link'><a href="WARNING.html" title="Simple::Metrics::WARNING (class)">WARNING</a></span></p>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
111
|
+
<ul class="summary">
|
112
|
+
|
113
|
+
<li class="public ">
|
114
|
+
<span class="summary_signature">
|
115
|
+
|
116
|
+
<a href="#message-instance_method" title="#message (instance method)">- (Object) <strong>message</strong> </a>
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
</span>
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<span class="summary_desc"><div class='inline'><p>
|
134
|
+
Returns the value of attribute message.
|
135
|
+
</p>
|
136
|
+
</div></span>
|
137
|
+
|
138
|
+
</li>
|
139
|
+
|
140
|
+
|
141
|
+
</ul>
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
<h2>
|
148
|
+
Instance Method Summary
|
149
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
150
|
+
</h2>
|
151
|
+
|
152
|
+
<ul class="summary">
|
153
|
+
|
154
|
+
<li class="public ">
|
155
|
+
<span class="summary_signature">
|
156
|
+
|
157
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Health) <strong>initialize</strong>(message = nil) </a>
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
</span>
|
162
|
+
|
163
|
+
|
164
|
+
<span class="note title constructor">constructor</span>
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
<span class="summary_desc"><div class='inline'><p>
|
174
|
+
A new instance of Health.
|
175
|
+
</p>
|
176
|
+
</div></span>
|
177
|
+
|
178
|
+
</li>
|
179
|
+
|
180
|
+
|
181
|
+
</ul>
|
182
|
+
|
183
|
+
|
184
|
+
<div id="constructor_details" class="method_details_list">
|
185
|
+
<h2>Constructor Details</h2>
|
186
|
+
|
187
|
+
<div class="method_details first">
|
188
|
+
<h3 class="signature first" id="initialize-instance_method">
|
189
|
+
|
190
|
+
- (<tt><span class='object_link'><a href="" title="Simple::Metrics::Health (class)">Health</a></span></tt>) <strong>initialize</strong>(message = nil)
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
</h3><div class="docstring">
|
197
|
+
<div class="discussion">
|
198
|
+
<p>
|
199
|
+
A new instance of Health
|
200
|
+
</p>
|
201
|
+
|
202
|
+
|
203
|
+
</div>
|
204
|
+
</div>
|
205
|
+
<div class="tags">
|
206
|
+
|
207
|
+
|
208
|
+
</div><table class="source_code">
|
209
|
+
<tr>
|
210
|
+
<td>
|
211
|
+
<pre class="lines">
|
212
|
+
|
213
|
+
|
214
|
+
6
|
215
|
+
7
|
216
|
+
8</pre>
|
217
|
+
</td>
|
218
|
+
<td>
|
219
|
+
<pre class="code"><span class="info file"># File 'lib/simple/metrics/health.rb', line 6</span>
|
220
|
+
|
221
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_message identifier id'>message</span><span class='assign token'>=</span><span class='rubyid_nil nil kw'>nil</span><span class='rparen token'>)</span>
|
222
|
+
<span class='rubyid_@message ivar id'>@message</span> <span class='assign token'>=</span> <span class='rubyid_message identifier id'>message</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 id="instance_attr_details" class="attr_details">
|
233
|
+
<h2>Instance Attribute Details</h2>
|
234
|
+
|
235
|
+
|
236
|
+
<span id="message=-instance_method"></span>
|
237
|
+
<div class="method_details first">
|
238
|
+
<h3 class="signature first" id="message-instance_method">
|
239
|
+
|
240
|
+
- (<tt>Object</tt>) <strong>message</strong>
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
</h3><div class="docstring">
|
247
|
+
<div class="discussion">
|
248
|
+
<p>
|
249
|
+
Returns the value of attribute message
|
250
|
+
</p>
|
251
|
+
|
252
|
+
|
253
|
+
</div>
|
254
|
+
</div>
|
255
|
+
<div class="tags">
|
256
|
+
|
257
|
+
|
258
|
+
</div><table class="source_code">
|
259
|
+
<tr>
|
260
|
+
<td>
|
261
|
+
<pre class="lines">
|
262
|
+
|
263
|
+
|
264
|
+
4
|
265
|
+
5
|
266
|
+
6</pre>
|
267
|
+
</td>
|
268
|
+
<td>
|
269
|
+
<pre class="code"><span class="info file"># File 'lib/simple/metrics/health.rb', line 4</span>
|
270
|
+
|
271
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_message identifier id'>message</span>
|
272
|
+
<span class='rubyid_@message ivar id'>@message</span>
|
273
|
+
<span class='rubyid_end end kw'>end</span>
|
274
|
+
</pre>
|
275
|
+
</td>
|
276
|
+
</tr>
|
277
|
+
</table>
|
278
|
+
</div>
|
279
|
+
|
280
|
+
</div>
|
281
|
+
|
282
|
+
|
283
|
+
</div>
|
284
|
+
|
285
|
+
<div id="footer">
|
286
|
+
Generated on Mon Nov 05 22:03:44 2012 by
|
287
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
288
|
+
0.8.3 (ruby-1.9.2).
|
289
|
+
</div>
|
290
|
+
|
291
|
+
</body>
|
292
|
+
</html>
|