kb-simple-metrics 0.0.12-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +20 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/LICENSE +13 -0
- data/README.md +144 -0
- data/Rakefile +7 -0
- data/doc/NurseRatched.html +246 -0
- data/doc/Rdio.html +233 -0
- data/doc/Samovar.html +241 -0
- data/doc/Simple/Metrics/Check.html +308 -0
- data/doc/Simple/Metrics/Graphite.html +262 -0
- data/doc/Simple/Metrics/HEALTHY.html +144 -0
- data/doc/Simple/Metrics/Health.html +288 -0
- data/doc/Simple/Metrics/Healthchecks.html +413 -0
- data/doc/Simple/Metrics/Meter.html +295 -0
- data/doc/Simple/Metrics/RackMetrics.html +366 -0
- data/doc/Simple/Metrics/Timer.html +232 -0
- data/doc/Simple/Metrics/UNHEALTHY.html +144 -0
- data/doc/Simple/Metrics/WARNING.html +144 -0
- data/doc/Simple/Metrics.html +510 -0
- data/doc/Simple.html +117 -0
- data/doc/_index.html +259 -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 +224 -0
- data/doc/file_list.html +55 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +224 -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 +180 -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 +23 -0
- data/lib/simple/metrics/rack_metrics.rb +32 -0
- data/lib/simple/metrics/timer.rb +24 -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 +182 -0
data/.gitignore
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
lib/bundler/man
|
11
|
+
pkg
|
12
|
+
rdoc
|
13
|
+
spec/reports
|
14
|
+
test/tmp
|
15
|
+
test/version_tmp
|
16
|
+
tmp
|
17
|
+
bin/
|
18
|
+
.rbenv-version
|
19
|
+
.rbenv-gemsets
|
20
|
+
.ruby-version
|
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,144 @@
|
|
1
|
+
# Simple::Metrics
|
2
|
+
|
3
|
+
A simple JRuby wrapper around Coda's excellent <a href="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
|
+
Monitor the health of your application in a granular way.
|
22
|
+
|
23
|
+
In a Sinatra/Padrino app, register healthchecks as an extension like so:
|
24
|
+
|
25
|
+
register Simple::Metrics::Healthchecks
|
26
|
+
|
27
|
+
To register a new healthcheck:
|
28
|
+
|
29
|
+
class NurseRatched
|
30
|
+
extend Simple::Metrics::Healthchecks
|
31
|
+
|
32
|
+
attr_accessor :temp
|
33
|
+
|
34
|
+
new_healthcheck("temperature") do
|
35
|
+
if @temp = 98
|
36
|
+
Simple::Metrics::HEALTHY
|
37
|
+
elsif @temp > 101
|
38
|
+
Simple::Metrics::UNHEALTHY.new("Fever!")
|
39
|
+
else
|
40
|
+
Simple::Metrics::WARNING
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
Run all healthchecks:
|
46
|
+
|
47
|
+
NurseRatched.run_all_healthchecks
|
48
|
+
|
49
|
+
Your healthchecks will be run in a separate thread every 5 seconds. This is a great way to monitor the health of your db connections, thread pools and connections to queues.
|
50
|
+
|
51
|
+
If you are running the servlet in a warbler .war file (see example below), you can monitor the overall health of your application with nagios or other monitoring tools.
|
52
|
+
|
53
|
+
## Timers
|
54
|
+
|
55
|
+
From: <a href="http://metrics.codahale.com/getting-started/#timers">Timers</a>:
|
56
|
+
|
57
|
+
A timer measures both the rate that a particular piece of code is called and the distribution of its duration.
|
58
|
+
|
59
|
+
class Samovar
|
60
|
+
include Simple::Metrics
|
61
|
+
|
62
|
+
def buh
|
63
|
+
timer("tea time") do
|
64
|
+
"Brewing..."
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
## Meters
|
70
|
+
|
71
|
+
From: <a href="http://metrics.codahale.com/getting-started/#meters">Meters</a>:
|
72
|
+
|
73
|
+
"A meter measures the rate of events over time (e.g., “requests per second”). In addition to the mean rate, meters also track 1-, 5-, and 15-minute moving averages."
|
74
|
+
|
75
|
+
class Rdio
|
76
|
+
extend Simple::Metrics::Meter
|
77
|
+
|
78
|
+
define_meter :bump_meter
|
79
|
+
|
80
|
+
def bump_dat
|
81
|
+
bump_meter.mark
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
## Send metrics directly to graphite
|
86
|
+
|
87
|
+
In a Sinatra app:
|
88
|
+
|
89
|
+
register Simple::Metrics::Graphite
|
90
|
+
|
91
|
+
enable_graphite_reporter("graphite.example.com", 2003, "services.#{RACK_ENV}")
|
92
|
+
|
93
|
+
## Exposing metrics from within your app
|
94
|
+
|
95
|
+
In order to view/collect the health and metrics of your application from the web, you'll need to add the servlet endpoints.
|
96
|
+
For this example, I'm using <a href="https://github.com/jruby/warbler">Warbler</a> to package
|
97
|
+
the application as a .war
|
98
|
+
|
99
|
+
In config/web.xml, add the following servlet mappings:
|
100
|
+
|
101
|
+
<servlet>
|
102
|
+
<servlet-name>metrics.MetricsServlet</servlet-name>
|
103
|
+
<servlet-class>com.yammer.metrics.reporting.MetricsServlet</servlet-class>
|
104
|
+
</servlet>
|
105
|
+
<servlet-mapping>
|
106
|
+
<servlet-name>metrics.MetricsServlet</servlet-name>
|
107
|
+
<url-pattern>/metrics</url-pattern>
|
108
|
+
</servlet-mapping>
|
109
|
+
|
110
|
+
<servlet>
|
111
|
+
<servlet-name>metrics.HealthCheckServlet</servlet-name>
|
112
|
+
<servlet-class>com.yammer.metrics.reporting.HealthCheckServlet</servlet-class>
|
113
|
+
</servlet>
|
114
|
+
<servlet-mapping>
|
115
|
+
<servlet-name>metrics.HealthCheckServlet</servlet-name>
|
116
|
+
<url-pattern>/healthcheck</url-pattern>
|
117
|
+
</servlet-mapping>
|
118
|
+
|
119
|
+
<servlet>
|
120
|
+
<servlet-name>metrics.ThreadDumpServlet</servlet-name>
|
121
|
+
<servlet-class>com.yammer.metrics.reporting.ThreadDumpServlet</servlet-class>
|
122
|
+
<url-pattern>/threads</url-pattern>
|
123
|
+
</servlet>
|
124
|
+
|
125
|
+
<servlet>
|
126
|
+
<servlet-name>metrics.PingServlet</servlet-name>
|
127
|
+
<servlet-class>com.yammer.metrics.reporting.PingServlet</servlet-class>
|
128
|
+
</servlet>
|
129
|
+
<servlet-mapping>
|
130
|
+
<servlet-name>metrics.PingServlet</servlet-name>
|
131
|
+
<url-pattern>/ping</url-pattern>
|
132
|
+
</servlet-mapping>
|
133
|
+
|
134
|
+
Now you can visit your application and get a thread dump, health check or collect metrics using collectd:
|
135
|
+
|
136
|
+
> curl localhost:9292/threads
|
137
|
+
main id=1 state=WAITING
|
138
|
+
- waiting on <0x073772c5> (a java.lang.Object)
|
139
|
+
- locked <0x073772c5> (a java.lang.Object)
|
140
|
+
at java.lang.Object.wait(Native Method)
|
141
|
+
|
142
|
+
## API documentation
|
143
|
+
|
144
|
+
<a href="http://simplefinance.github.io/simple-metrics/">API Docs</a>
|
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,233 @@
|
|
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
|
+
|
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
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
<h2>
|
121
|
+
Instance Method Summary
|
122
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
123
|
+
</h2>
|
124
|
+
|
125
|
+
<ul class="summary">
|
126
|
+
|
127
|
+
<li class="public ">
|
128
|
+
<span class="summary_signature">
|
129
|
+
|
130
|
+
<a href="#bump_dat-instance_method" title="#bump_dat (instance method)">- (Object) <strong>bump_dat</strong> </a>
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
</span>
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
145
|
+
|
146
|
+
</li>
|
147
|
+
|
148
|
+
|
149
|
+
</ul>
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
<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>
|
162
|
+
<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>
|
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
|
+
|
187
|
+
<div id="instance_method_details" class="method_details_list">
|
188
|
+
<h2>Instance Method Details</h2>
|
189
|
+
|
190
|
+
|
191
|
+
<div class="method_details first">
|
192
|
+
<h3 class="signature first" id="bump_dat-instance_method">
|
193
|
+
|
194
|
+
- (<tt>Object</tt>) <strong>bump_dat</strong>
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
</h3><table class="source_code">
|
201
|
+
<tr>
|
202
|
+
<td>
|
203
|
+
<pre class="lines">
|
204
|
+
|
205
|
+
|
206
|
+
80
|
207
|
+
81
|
208
|
+
82</pre>
|
209
|
+
</td>
|
210
|
+
<td>
|
211
|
+
<pre class="code"><span class="info file"># File 'README.md', line 80</span>
|
212
|
+
|
213
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_bump_dat identifier id'>bump_dat</span>
|
214
|
+
<span class='rubyid_bump_meter identifier id'>bump_meter</span><span class='dot token'>.</span><span class='rubyid_mark identifier id'>mark</span>
|
215
|
+
<span class='rubyid_end end kw'>end</span>
|
216
|
+
</pre>
|
217
|
+
</td>
|
218
|
+
</tr>
|
219
|
+
</table>
|
220
|
+
</div>
|
221
|
+
|
222
|
+
</div>
|
223
|
+
|
224
|
+
</div>
|
225
|
+
|
226
|
+
<div id="footer">
|
227
|
+
Generated on Mon May 13 23:22:16 2013 by
|
228
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
229
|
+
0.8.3 (ruby-1.9.3).
|
230
|
+
</div>
|
231
|
+
|
232
|
+
</body>
|
233
|
+
</html>
|