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/.gitignore
ADDED
data/.rbenv-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
jruby-1.6.7.2
|
data/.rspec
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
Copyright (c) 2012 Simple Finance Technology Corp.
|
2
|
+
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
you may not use this file except in compliance with the License.
|
5
|
+
You may obtain a copy of the License at
|
6
|
+
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
See the License for the specific language governing permissions and
|
13
|
+
limitations under the License.
|
data/README.md
ADDED
@@ -0,0 +1,126 @@
|
|
1
|
+
# Simple::Metrics
|
2
|
+
|
3
|
+
A simple JRuby wrapper around Coda's <a href="http://http://metrics.codahale.com/">Metrics package</a>
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'simple-metrics'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install simple-metrics
|
18
|
+
|
19
|
+
## Healthchecks
|
20
|
+
|
21
|
+
Register a new healthcheck
|
22
|
+
|
23
|
+
class NurseRatched
|
24
|
+
extend Simple::Metrics::Healthchecks
|
25
|
+
|
26
|
+
attr_accessor :temp
|
27
|
+
|
28
|
+
new_healthcheck("temperature") do
|
29
|
+
if @temp = 98
|
30
|
+
Simple::Metrics::HEALTHY
|
31
|
+
elsif @temp > 101
|
32
|
+
Simple::Metrics::UNHEALTHY.new("Fever!")
|
33
|
+
else
|
34
|
+
Simple::Metrics::WARNING
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
Run all healthchecks:
|
40
|
+
|
41
|
+
NurseRatched.run_all_healthchecks
|
42
|
+
|
43
|
+
In a Sinatra/Padrino app, register healthchecks as an extension like so:
|
44
|
+
|
45
|
+
register Simple::Metrics::Healthchecks
|
46
|
+
|
47
|
+
## Timers
|
48
|
+
|
49
|
+
class Samovar
|
50
|
+
include Simple::Metrics
|
51
|
+
|
52
|
+
def buh
|
53
|
+
timer("tea time") do
|
54
|
+
"Brewing..."
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
## Meters
|
60
|
+
|
61
|
+
class Rdio
|
62
|
+
extend Simple::Metrics::Meter
|
63
|
+
|
64
|
+
define_meter :bump
|
65
|
+
|
66
|
+
def bump_dat
|
67
|
+
bump_meter.mark
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
## Send metrics directly to graphite
|
72
|
+
|
73
|
+
In a Sinatra app:
|
74
|
+
|
75
|
+
register Simple::Metrics::Graphite
|
76
|
+
|
77
|
+
enable_graphite_reporter("graphite.example.com", 2003, "services.#{RACK_ENV}")
|
78
|
+
|
79
|
+
## Exposing metrics from within your app
|
80
|
+
|
81
|
+
In order to view the metrics from your application, you'll need to add the servlet endpoints.
|
82
|
+
For this example, I'm using <a href="https://github.com/jruby/warbler">Warbler</a> to package
|
83
|
+
the application as a .war
|
84
|
+
|
85
|
+
In config/web.xml, add the following servlet mappings:
|
86
|
+
|
87
|
+
<servlet>
|
88
|
+
<servlet-name>metrics.MetricsServlet</servlet-name>
|
89
|
+
<servlet-class>com.yammer.metrics.reporting.MetricsServlet</servlet-class>
|
90
|
+
</servlet>
|
91
|
+
<servlet-mapping>
|
92
|
+
<servlet-name>metrics.MetricsServlet</servlet-name>
|
93
|
+
<url-pattern>/metrics</url-pattern>
|
94
|
+
</servlet-mapping>
|
95
|
+
|
96
|
+
<servlet>
|
97
|
+
<servlet-name>metrics.HealthCheckServlet</servlet-name>
|
98
|
+
<servlet-class>com.yammer.metrics.reporting.HealthCheckServlet</servlet-class>
|
99
|
+
</servlet>
|
100
|
+
<servlet-mapping>
|
101
|
+
<servlet-name>metrics.HealthCheckServlet</servlet-name>
|
102
|
+
<url-pattern>/healthcheck</url-pattern>
|
103
|
+
</servlet-mapping>
|
104
|
+
|
105
|
+
<servlet>
|
106
|
+
<servlet-name>metrics.ThreadDumpServlet</servlet-name>
|
107
|
+
<servlet-class>com.yammer.metrics.reporting.ThreadDumpServlet</servlet-class>
|
108
|
+
<url-pattern>/threads</url-pattern>
|
109
|
+
</servlet>
|
110
|
+
|
111
|
+
<servlet>
|
112
|
+
<servlet-name>metrics.PingServlet</servlet-name>
|
113
|
+
<servlet-class>com.yammer.metrics.reporting.PingServlet</servlet-class>
|
114
|
+
</servlet>
|
115
|
+
<servlet-mapping>
|
116
|
+
<servlet-name>metrics.PingServlet</servlet-name>
|
117
|
+
<url-pattern>/ping</url-pattern>
|
118
|
+
</servlet-mapping>
|
119
|
+
|
120
|
+
Now you can visit your application and get a thread dump:
|
121
|
+
|
122
|
+
> curl localhost:9292/threads
|
123
|
+
main id=1 state=WAITING
|
124
|
+
- waiting on <0x073772c5> (a java.lang.Object)
|
125
|
+
- locked <0x073772c5> (a java.lang.Object)
|
126
|
+
at java.lang.Object.wait(Native Method)
|
data/Rakefile
ADDED
@@ -0,0 +1,246 @@
|
|
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: NurseRatched
|
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 (N)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">NurseRatched</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: NurseRatched
|
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">NurseRatched</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
<dt class="r2">Extended by:</dt>
|
92
|
+
<dd class="r2"><span class='object_link'><a href="Simple/Metrics/Healthchecks.html" title="Simple::Metrics::Healthchecks (module)">Simple::Metrics::Healthchecks</a></span></dd>
|
93
|
+
|
94
|
+
|
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
|
+
|
107
|
+
|
108
|
+
|
109
|
+
<h2>Constant Summary</h2>
|
110
|
+
|
111
|
+
<h3 class="inherited">Constants included
|
112
|
+
from <span class='object_link'><a href="Simple/Metrics.html" title="Simple::Metrics (module)">Simple::Metrics</a></span></h3>
|
113
|
+
<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>
|
114
|
+
|
115
|
+
|
116
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
117
|
+
<ul class="summary">
|
118
|
+
|
119
|
+
<li class="public ">
|
120
|
+
<span class="summary_signature">
|
121
|
+
|
122
|
+
<a href="#temp-instance_method" title="#temp (instance method)">- (Object) <strong>temp</strong> </a>
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
</span>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
<span class="summary_desc"><div class='inline'><p>
|
140
|
+
Returns the value of attribute temp.
|
141
|
+
</p>
|
142
|
+
</div></span>
|
143
|
+
|
144
|
+
</li>
|
145
|
+
|
146
|
+
|
147
|
+
</ul>
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
<h2>Method Summary</h2>
|
160
|
+
|
161
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="Simple/Metrics/Healthchecks.html" title="Simple::Metrics::Healthchecks (module)">Simple::Metrics::Healthchecks</a></span></h3>
|
162
|
+
<p class="inherited"><span class='object_link'><a href="Simple/Metrics/Healthchecks.html#new_healthcheck-instance_method" title="Simple::Metrics::Healthchecks#new_healthcheck (method)">new_healthcheck</a></span>, <span class='object_link'><a href="Simple/Metrics/Healthchecks.html#run_all_healthchecks-instance_method" title="Simple::Metrics::Healthchecks#run_all_healthchecks (method)">run_all_healthchecks</a></span>, <span class='object_link'><a href="Simple/Metrics/Healthchecks.html#run_healthcheck_loop-instance_method" title="Simple::Metrics::Healthchecks#run_healthcheck_loop (method)">run_healthcheck_loop</a></span></p>
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="Simple/Metrics.html" title="Simple::Metrics (module)">Simple::Metrics</a></span></h3>
|
173
|
+
<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>
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
<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>
|
184
|
+
<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>
|
185
|
+
|
186
|
+
<div id="instance_attr_details" class="attr_details">
|
187
|
+
<h2>Instance Attribute Details</h2>
|
188
|
+
|
189
|
+
|
190
|
+
<span id="temp=-instance_method"></span>
|
191
|
+
<div class="method_details first">
|
192
|
+
<h3 class="signature first" id="temp-instance_method">
|
193
|
+
|
194
|
+
- (<tt>Object</tt>) <strong>temp</strong>
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
</h3><div class="docstring">
|
201
|
+
<div class="discussion">
|
202
|
+
<p>
|
203
|
+
Returns the value of attribute temp
|
204
|
+
</p>
|
205
|
+
|
206
|
+
|
207
|
+
</div>
|
208
|
+
</div>
|
209
|
+
<div class="tags">
|
210
|
+
|
211
|
+
|
212
|
+
</div><table class="source_code">
|
213
|
+
<tr>
|
214
|
+
<td>
|
215
|
+
<pre class="lines">
|
216
|
+
|
217
|
+
|
218
|
+
26
|
219
|
+
27
|
220
|
+
28</pre>
|
221
|
+
</td>
|
222
|
+
<td>
|
223
|
+
<pre class="code"><span class="info file"># File 'README.md', line 26</span>
|
224
|
+
|
225
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_temp identifier id'>temp</span>
|
226
|
+
<span class='rubyid_@temp ivar id'>@temp</span>
|
227
|
+
<span class='rubyid_end end kw'>end</span>
|
228
|
+
</pre>
|
229
|
+
</td>
|
230
|
+
</tr>
|
231
|
+
</table>
|
232
|
+
</div>
|
233
|
+
|
234
|
+
</div>
|
235
|
+
|
236
|
+
|
237
|
+
</div>
|
238
|
+
|
239
|
+
<div id="footer">
|
240
|
+
Generated on Mon Nov 05 22:03:45 2012 by
|
241
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
242
|
+
0.8.3 (ruby-1.9.2).
|
243
|
+
</div>
|
244
|
+
|
245
|
+
</body>
|
246
|
+
</html>
|
data/doc/Rdio.html
ADDED
@@ -0,0 +1,245 @@
|
|
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: Rdio
|
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 (R)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">Rdio</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: Rdio
|
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">Rdio</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
<dt class="r2">Extended by:</dt>
|
92
|
+
<dd class="r2"><span class='object_link'><a href="Simple/Metrics/Meter.html" title="Simple::Metrics::Meter (module)">Simple::Metrics::Meter</a></span></dd>
|
93
|
+
|
94
|
+
|
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
|
+
Meters
|
110
|
+
</p>
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
114
|
+
</div>
|
115
|
+
<div class="tags">
|
116
|
+
|
117
|
+
|
118
|
+
</div>
|
119
|
+
|
120
|
+
|
121
|
+
<h2>Constant Summary</h2>
|
122
|
+
|
123
|
+
<h3 class="inherited">Constants included
|
124
|
+
from <span class='object_link'><a href="Simple/Metrics.html" title="Simple::Metrics (module)">Simple::Metrics</a></span></h3>
|
125
|
+
<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>
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
<h2>
|
133
|
+
Instance Method Summary
|
134
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
135
|
+
</h2>
|
136
|
+
|
137
|
+
<ul class="summary">
|
138
|
+
|
139
|
+
<li class="public ">
|
140
|
+
<span class="summary_signature">
|
141
|
+
|
142
|
+
<a href="#bump_dat-instance_method" title="#bump_dat (instance method)">- (Object) <strong>bump_dat</strong> </a>
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
</span>
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
157
|
+
|
158
|
+
</li>
|
159
|
+
|
160
|
+
|
161
|
+
</ul>
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="Simple/Metrics/Meter.html" title="Simple::Metrics::Meter (module)">Simple::Metrics::Meter</a></span></h3>
|
174
|
+
<p class="inherited"><span class='object_link'><a href="Simple/Metrics/Meter.html#define_meter-instance_method" title="Simple::Metrics::Meter#define_meter (method)">define_meter</a></span></p>
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="Simple/Metrics.html" title="Simple::Metrics (module)">Simple::Metrics</a></span></h3>
|
185
|
+
<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>
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
<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>
|
196
|
+
<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>
|
197
|
+
|
198
|
+
|
199
|
+
<div id="instance_method_details" class="method_details_list">
|
200
|
+
<h2>Instance Method Details</h2>
|
201
|
+
|
202
|
+
|
203
|
+
<div class="method_details first">
|
204
|
+
<h3 class="signature first" id="bump_dat-instance_method">
|
205
|
+
|
206
|
+
- (<tt>Object</tt>) <strong>bump_dat</strong>
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
</h3><table class="source_code">
|
213
|
+
<tr>
|
214
|
+
<td>
|
215
|
+
<pre class="lines">
|
216
|
+
|
217
|
+
|
218
|
+
66
|
219
|
+
67
|
220
|
+
68</pre>
|
221
|
+
</td>
|
222
|
+
<td>
|
223
|
+
<pre class="code"><span class="info file"># File 'README.md', line 66</span>
|
224
|
+
|
225
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_bump_dat identifier id'>bump_dat</span>
|
226
|
+
<span class='rubyid_bump_meter identifier id'>bump_meter</span><span class='dot token'>.</span><span class='rubyid_mark identifier id'>mark</span>
|
227
|
+
<span class='rubyid_end end kw'>end</span>
|
228
|
+
</pre>
|
229
|
+
</td>
|
230
|
+
</tr>
|
231
|
+
</table>
|
232
|
+
</div>
|
233
|
+
|
234
|
+
</div>
|
235
|
+
|
236
|
+
</div>
|
237
|
+
|
238
|
+
<div id="footer">
|
239
|
+
Generated on Mon Nov 05 22:03:45 2012 by
|
240
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
241
|
+
0.8.3 (ruby-1.9.2).
|
242
|
+
</div>
|
243
|
+
|
244
|
+
</body>
|
245
|
+
</html>
|