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,523 @@
|
|
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
|
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 (M)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../Simple.html" title="Simple (module)">Simple</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Metrics</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
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
<dt class="r1">Includes:</dt>
|
79
|
+
<dd class="r1"><span class='object_link'><a href="Metrics/Timer.html" title="Simple::Metrics::Timer (module)">Timer</a></span></dd>
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
<dt class="r2">Included in:</dt>
|
85
|
+
<dd class="r2"><span class='object_link'><a href="../Samovar.html" title="Samovar (class)">Samovar</a></span>, <span class='object_link'><a href="Metrics/Healthchecks.html" title="Simple::Metrics::Healthchecks (module)">Healthchecks</a></span>, <span class='object_link'><a href="Metrics/Meter.html" title="Simple::Metrics::Meter (module)">Meter</a></span></dd>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
<dt class="r1 last">Defined in:</dt>
|
90
|
+
<dd class="r1 last">lib/simple/metrics.rb<span class="defines">,<br />
|
91
|
+
lib/simple/version.rb,<br /> lib/simple/metrics/meter.rb,<br /> lib/simple/metrics/timer.rb,<br /> lib/simple/metrics/health.rb,<br /> lib/simple/metrics/graphite.rb,<br /> lib/simple/metrics/healthcheck.rb,<br /> lib/simple/metrics/rack_metrics.rb</span>
|
92
|
+
</dd>
|
93
|
+
|
94
|
+
</dl>
|
95
|
+
<div class="clear"></div>
|
96
|
+
|
97
|
+
<h2>Defined Under Namespace</h2>
|
98
|
+
<p class="children">
|
99
|
+
|
100
|
+
|
101
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Metrics/Graphite.html" title="Simple::Metrics::Graphite (module)">Graphite</a></span>, <span class='object_link'><a href="Metrics/Healthchecks.html" title="Simple::Metrics::Healthchecks (module)">Healthchecks</a></span>, <span class='object_link'><a href="Metrics/Meter.html" title="Simple::Metrics::Meter (module)">Meter</a></span>, <span class='object_link'><a href="Metrics/Timer.html" title="Simple::Metrics::Timer (module)">Timer</a></span>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Metrics/Check.html" title="Simple::Metrics::Check (class)">Check</a></span>, <span class='object_link'><a href="Metrics/HEALTHY.html" title="Simple::Metrics::HEALTHY (class)">HEALTHY</a></span>, <span class='object_link'><a href="Metrics/Health.html" title="Simple::Metrics::Health (class)">Health</a></span>, <span class='object_link'><a href="Metrics/RackMetrics.html" title="Simple::Metrics::RackMetrics (class)">RackMetrics</a></span>, <span class='object_link'><a href="Metrics/UNHEALTHY.html" title="Simple::Metrics::UNHEALTHY (class)">UNHEALTHY</a></span>, <span class='object_link'><a href="Metrics/WARNING.html" title="Simple::Metrics::WARNING (class)">WARNING</a></span>
|
106
|
+
|
107
|
+
|
108
|
+
</p>
|
109
|
+
|
110
|
+
<h2>Constant Summary</h2>
|
111
|
+
|
112
|
+
<dl class="constants">
|
113
|
+
|
114
|
+
<dt id="DEFAULT_DURATION_UNIT-constant" class="">DEFAULT_DURATION_UNIT =
|
115
|
+
|
116
|
+
</dt>
|
117
|
+
<dd><pre class="code"><span class='rubyid_TimeUnit constant id'>TimeUnit</span><span class='colon2 op'>::</span><span class='rubyid_MILLISECONDS constant id'>MILLISECONDS</span>
|
118
|
+
</pre></dd>
|
119
|
+
|
120
|
+
<dt id="DEFAULT_RATE_UNIT-constant" class="">DEFAULT_RATE_UNIT =
|
121
|
+
|
122
|
+
</dt>
|
123
|
+
<dd><pre class="code"><span class='rubyid_TimeUnit constant id'>TimeUnit</span><span class='colon2 op'>::</span><span class='rubyid_SECONDS constant id'>SECONDS</span>
|
124
|
+
</pre></dd>
|
125
|
+
|
126
|
+
<dt id="DEFAULT_TIMING_UNIT-constant" class="">DEFAULT_TIMING_UNIT =
|
127
|
+
|
128
|
+
</dt>
|
129
|
+
<dd><pre class="code"><span class='rubyid_TimeUnit constant id'>TimeUnit</span><span class='colon2 op'>::</span><span class='rubyid_NANOSECONDS constant id'>NANOSECONDS</span>
|
130
|
+
</pre></dd>
|
131
|
+
|
132
|
+
<dt id="VERSION-constant" class="">VERSION =
|
133
|
+
|
134
|
+
</dt>
|
135
|
+
<dd><pre class="code"><span class='string val'>"0.0.10"</span>
|
136
|
+
</pre></dd>
|
137
|
+
|
138
|
+
</dl>
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
<h2>
|
149
|
+
Instance Method Summary
|
150
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
151
|
+
</h2>
|
152
|
+
|
153
|
+
<ul class="summary">
|
154
|
+
|
155
|
+
<li class="public ">
|
156
|
+
<span class="summary_signature">
|
157
|
+
|
158
|
+
<a href="#metrics_registry-instance_method" title="#metrics_registry (instance method)">- (Java::ComYammerMetrics::Metrics) <strong>metrics_registry</strong> </a>
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
</span>
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
<span class="summary_desc"><div class='inline'><p>
|
173
|
+
The default metrics registry.
|
174
|
+
</p>
|
175
|
+
</div></span>
|
176
|
+
|
177
|
+
</li>
|
178
|
+
|
179
|
+
|
180
|
+
<li class="public ">
|
181
|
+
<span class="summary_signature">
|
182
|
+
|
183
|
+
<a href="#new_metric_name-instance_method" title="#new_metric_name (instance method)">- (MetricName) <strong>new_metric_name</strong>(klass_name, name, type) </a>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
</span>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
<span class="summary_desc"><div class='inline'><p>
|
198
|
+
Create a new metric name.
|
199
|
+
</p>
|
200
|
+
</div></span>
|
201
|
+
|
202
|
+
</li>
|
203
|
+
|
204
|
+
|
205
|
+
<li class="public ">
|
206
|
+
<span class="summary_signature">
|
207
|
+
|
208
|
+
<a href="#sanitize_classname-instance_method" title="#sanitize_classname (instance method)">- (String) <strong>sanitize_classname</strong>(klass_name) </a>
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
</span>
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
<span class="summary_desc"><div class='inline'><p>
|
223
|
+
Sanitize classnames for graphite.
|
224
|
+
</p>
|
225
|
+
</div></span>
|
226
|
+
|
227
|
+
</li>
|
228
|
+
|
229
|
+
|
230
|
+
</ul>
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="Metrics/Timer.html" title="Simple::Metrics::Timer (module)">Timer</a></span></h3>
|
243
|
+
<p class="inherited"><span class='object_link'><a href="Metrics/Timer.html#timer-instance_method" title="Simple::Metrics::Timer#timer (method)">#timer</a></span></p>
|
244
|
+
|
245
|
+
|
246
|
+
<div id="instance_method_details" class="method_details_list">
|
247
|
+
<h2>Instance Method Details</h2>
|
248
|
+
|
249
|
+
|
250
|
+
<div class="method_details first">
|
251
|
+
<h3 class="signature first" id="metrics_registry-instance_method">
|
252
|
+
|
253
|
+
- (<tt>Java::ComYammerMetrics::Metrics</tt>) <strong>metrics_registry</strong>
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
</h3><div class="docstring">
|
260
|
+
<div class="discussion">
|
261
|
+
<p>
|
262
|
+
The default metrics registry
|
263
|
+
</p>
|
264
|
+
|
265
|
+
|
266
|
+
</div>
|
267
|
+
</div>
|
268
|
+
<div class="tags">
|
269
|
+
|
270
|
+
<p class="tag_title">Returns:</p>
|
271
|
+
<ul class="return">
|
272
|
+
|
273
|
+
<li>
|
274
|
+
|
275
|
+
|
276
|
+
<span class='type'>(<tt>Java::ComYammerMetrics::Metrics</tt>)</span>
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
—
|
281
|
+
<div class='inline'><p>
|
282
|
+
the default metrics registry
|
283
|
+
</p>
|
284
|
+
</div>
|
285
|
+
|
286
|
+
</li>
|
287
|
+
|
288
|
+
</ul>
|
289
|
+
|
290
|
+
</div><table class="source_code">
|
291
|
+
<tr>
|
292
|
+
<td>
|
293
|
+
<pre class="lines">
|
294
|
+
|
295
|
+
|
296
|
+
37
|
297
|
+
38
|
298
|
+
39</pre>
|
299
|
+
</td>
|
300
|
+
<td>
|
301
|
+
<pre class="code"><span class="info file"># File 'lib/simple/metrics.rb', line 37</span>
|
302
|
+
|
303
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_metrics_registry identifier id'>metrics_registry</span>
|
304
|
+
<span class='rubyid_Java constant id'>Java</span><span class='colon2 op'>::</span><span class='rubyid_ComYammerMetrics constant id'>ComYammerMetrics</span><span class='colon2 op'>::</span><span class='rubyid_Metrics constant id'>Metrics</span><span class='dot token'>.</span><span class='rubyid_defaultRegistry identifier id'>defaultRegistry</span>
|
305
|
+
<span class='rubyid_end end kw'>end</span>
|
306
|
+
</pre>
|
307
|
+
</td>
|
308
|
+
</tr>
|
309
|
+
</table>
|
310
|
+
</div>
|
311
|
+
|
312
|
+
<div class="method_details ">
|
313
|
+
<h3 class="signature " id="new_metric_name-instance_method">
|
314
|
+
|
315
|
+
- (<tt>MetricName</tt>) <strong>new_metric_name</strong>(klass_name, name, type)
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
</h3><div class="docstring">
|
322
|
+
<div class="discussion">
|
323
|
+
<p>
|
324
|
+
Create a new metric name
|
325
|
+
</p>
|
326
|
+
|
327
|
+
|
328
|
+
</div>
|
329
|
+
</div>
|
330
|
+
<div class="tags">
|
331
|
+
<p class="tag_title">Parameters:</p>
|
332
|
+
<ul class="param">
|
333
|
+
|
334
|
+
<li>
|
335
|
+
|
336
|
+
<span class='name'>klass_name</span>
|
337
|
+
|
338
|
+
|
339
|
+
<span class='type'>(<tt>String</tt>)</span>
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
—
|
344
|
+
<div class='inline'><p>
|
345
|
+
The name of the class, usually the application name
|
346
|
+
</p>
|
347
|
+
</div>
|
348
|
+
|
349
|
+
</li>
|
350
|
+
|
351
|
+
<li>
|
352
|
+
|
353
|
+
<span class='name'>name</span>
|
354
|
+
|
355
|
+
|
356
|
+
<span class='type'>(<tt>String</tt>)</span>
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
—
|
361
|
+
<div class='inline'><p>
|
362
|
+
The name of the metric
|
363
|
+
</p>
|
364
|
+
</div>
|
365
|
+
|
366
|
+
</li>
|
367
|
+
|
368
|
+
<li>
|
369
|
+
|
370
|
+
<span class='name'>type</span>
|
371
|
+
|
372
|
+
|
373
|
+
<span class='type'>(<tt>String</tt>)</span>
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
—
|
378
|
+
<div class='inline'><p>
|
379
|
+
The type of metric
|
380
|
+
</p>
|
381
|
+
</div>
|
382
|
+
|
383
|
+
</li>
|
384
|
+
|
385
|
+
</ul>
|
386
|
+
|
387
|
+
<p class="tag_title">Returns:</p>
|
388
|
+
<ul class="return">
|
389
|
+
|
390
|
+
<li>
|
391
|
+
|
392
|
+
|
393
|
+
<span class='type'>(<tt>MetricName</tt>)</span>
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
—
|
398
|
+
<div class='inline'><p>
|
399
|
+
the newly created metric name
|
400
|
+
</p>
|
401
|
+
</div>
|
402
|
+
|
403
|
+
</li>
|
404
|
+
|
405
|
+
</ul>
|
406
|
+
|
407
|
+
</div><table class="source_code">
|
408
|
+
<tr>
|
409
|
+
<td>
|
410
|
+
<pre class="lines">
|
411
|
+
|
412
|
+
|
413
|
+
47
|
414
|
+
48
|
415
|
+
49</pre>
|
416
|
+
</td>
|
417
|
+
<td>
|
418
|
+
<pre class="code"><span class="info file"># File 'lib/simple/metrics.rb', line 47</span>
|
419
|
+
|
420
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_new_metric_name identifier id'>new_metric_name</span><span class='lparen token'>(</span><span class='rubyid_klass_name identifier id'>klass_name</span><span class='comma token'>,</span> <span class='rubyid_name identifier id'>name</span><span class='comma token'>,</span> <span class='rubyid_type identifier id'>type</span><span class='rparen token'>)</span>
|
421
|
+
<span class='rubyid_MetricName constant id'>MetricName</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span><span class='lparen token'>(</span><span class='rubyid_klass_name identifier id'>klass_name</span><span class='dot token'>.</span><span class='rubyid_downcase identifier id'>downcase</span><span class='comma token'>,</span> <span class='rubyid_type identifier id'>type</span><span class='comma token'>,</span> <span class='rubyid_name identifier id'>name</span><span class='dot token'>.</span><span class='rubyid_to_s identifier id'>to_s</span><span class='rparen token'>)</span>
|
422
|
+
<span class='rubyid_end end kw'>end</span>
|
423
|
+
</pre>
|
424
|
+
</td>
|
425
|
+
</tr>
|
426
|
+
</table>
|
427
|
+
</div>
|
428
|
+
|
429
|
+
<div class="method_details ">
|
430
|
+
<h3 class="signature " id="sanitize_classname-instance_method">
|
431
|
+
|
432
|
+
- (<tt>String</tt>) <strong>sanitize_classname</strong>(klass_name)
|
433
|
+
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
|
438
|
+
</h3><div class="docstring">
|
439
|
+
<div class="discussion">
|
440
|
+
<p>
|
441
|
+
Sanitize classnames for graphite
|
442
|
+
</p>
|
443
|
+
|
444
|
+
|
445
|
+
</div>
|
446
|
+
</div>
|
447
|
+
<div class="tags">
|
448
|
+
<p class="tag_title">Parameters:</p>
|
449
|
+
<ul class="param">
|
450
|
+
|
451
|
+
<li>
|
452
|
+
|
453
|
+
<span class='name'>klass_name</span>
|
454
|
+
|
455
|
+
|
456
|
+
<span class='type'>(<tt>Object</tt>)</span>
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
—
|
461
|
+
<div class='inline'><p>
|
462
|
+
The request object
|
463
|
+
</p>
|
464
|
+
</div>
|
465
|
+
|
466
|
+
</li>
|
467
|
+
|
468
|
+
</ul>
|
469
|
+
|
470
|
+
<p class="tag_title">Returns:</p>
|
471
|
+
<ul class="return">
|
472
|
+
|
473
|
+
<li>
|
474
|
+
|
475
|
+
|
476
|
+
<span class='type'>(<tt>String</tt>)</span>
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
—
|
481
|
+
<div class='inline'><p>
|
482
|
+
The class name without colons
|
483
|
+
</p>
|
484
|
+
</div>
|
485
|
+
|
486
|
+
</li>
|
487
|
+
|
488
|
+
</ul>
|
489
|
+
|
490
|
+
</div><table class="source_code">
|
491
|
+
<tr>
|
492
|
+
<td>
|
493
|
+
<pre class="lines">
|
494
|
+
|
495
|
+
|
496
|
+
30
|
497
|
+
31
|
498
|
+
32</pre>
|
499
|
+
</td>
|
500
|
+
<td>
|
501
|
+
<pre class="code"><span class="info file"># File 'lib/simple/metrics.rb', line 30</span>
|
502
|
+
|
503
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_sanitize_classname identifier id'>sanitize_classname</span><span class='lparen token'>(</span><span class='rubyid_klass_name identifier id'>klass_name</span><span class='rparen token'>)</span>
|
504
|
+
<span class='rubyid_klass_name identifier id'>klass_name</span><span class='dot token'>.</span><span class='rubyid_gsub identifier id'>gsub</span><span class='lparen token'>(</span><span class='string val'>":"</span><span class='comma token'>,</span><span class='string val'>""</span><span class='rparen token'>)</span>
|
505
|
+
<span class='rubyid_end end kw'>end</span>
|
506
|
+
</pre>
|
507
|
+
</td>
|
508
|
+
</tr>
|
509
|
+
</table>
|
510
|
+
</div>
|
511
|
+
|
512
|
+
</div>
|
513
|
+
|
514
|
+
</div>
|
515
|
+
|
516
|
+
<div id="footer">
|
517
|
+
Generated on Mon Nov 05 22:03:43 2012 by
|
518
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
519
|
+
0.8.3 (ruby-1.9.2).
|
520
|
+
</div>
|
521
|
+
|
522
|
+
</body>
|
523
|
+
</html>
|
data/doc/Simple.html
ADDED
@@ -0,0 +1,117 @@
|
|
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
|
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">Simple</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
|
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.rb<span class="defines">,<br />
|
83
|
+
lib/simple/metrics.rb,<br /> lib/simple/version.rb,<br /> lib/simple/metrics/meter.rb,<br /> lib/simple/metrics/timer.rb,<br /> lib/simple/metrics/health.rb,<br /> lib/simple/metrics/graphite.rb,<br /> lib/simple/metrics/healthcheck.rb,<br /> lib/simple/metrics/rack_metrics.rb</span>
|
84
|
+
</dd>
|
85
|
+
|
86
|
+
</dl>
|
87
|
+
<div class="clear"></div>
|
88
|
+
|
89
|
+
<h2>Defined Under Namespace</h2>
|
90
|
+
<p class="children">
|
91
|
+
|
92
|
+
|
93
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Simple/Metrics.html" title="Simple::Metrics (module)">Metrics</a></span>
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
</p>
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
</div>
|
109
|
+
|
110
|
+
<div id="footer">
|
111
|
+
Generated on Mon Nov 05 22:03:43 2012 by
|
112
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
113
|
+
0.8.3 (ruby-1.9.2).
|
114
|
+
</div>
|
115
|
+
|
116
|
+
</body>
|
117
|
+
</html>
|