newrelic_rpm 2.10.6 → 2.10.8
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of newrelic_rpm might be problematic. Click here for more details.
- data/CHANGELOG +14 -0
- data/lib/new_relic/agent.rb +5 -4
- data/lib/new_relic/agent/agent.rb +81 -101
- data/lib/new_relic/agent/error_collector.rb +1 -2
- data/lib/new_relic/agent/instrumentation/authlogic.rb +2 -2
- data/lib/new_relic/agent/instrumentation/merb/controller.rb +2 -2
- data/lib/new_relic/agent/instrumentation/rails3/action_controller.rb +45 -0
- data/lib/new_relic/agent/instrumentation/rails3/errors.rb +21 -0
- data/lib/new_relic/agent/method_tracer.rb +2 -2
- data/lib/new_relic/agent/samplers/delayed_job_lock_sampler.rb +1 -1
- data/lib/new_relic/agent/stats_engine/samplers.rb +1 -2
- data/lib/new_relic/agent/transaction_sampler.rb +1 -1
- data/lib/new_relic/agent/worker_loop.rb +47 -86
- data/lib/new_relic/{agent/collection_helper.rb → collection_helper.rb} +2 -4
- data/lib/new_relic/control.rb +18 -2
- data/lib/new_relic/control/rails3.rb +75 -0
- data/lib/new_relic/local_environment.rb +11 -3
- data/lib/new_relic/noticed_error.rb +2 -1
- data/lib/new_relic/version.rb +10 -9
- data/newrelic_rpm.gemspec +195 -3
- data/rdoc/classes/NewRelic.html +293 -0
- data/rdoc/classes/NewRelic/Agent.html +810 -0
- data/rdoc/classes/NewRelic/Agent/Agent.html +742 -0
- data/rdoc/classes/NewRelic/Agent/BackgroundLoadingError.html +111 -0
- data/rdoc/classes/NewRelic/Agent/BusyCalculator.html +309 -0
- data/rdoc/classes/NewRelic/Agent/CollectionHelper.html +196 -0
- data/rdoc/classes/NewRelic/Agent/ErrorCollector.html +378 -0
- data/rdoc/classes/NewRelic/Agent/ForceDisconnectException.html +118 -0
- data/rdoc/classes/NewRelic/Agent/ForceRestartException.html +117 -0
- data/rdoc/classes/NewRelic/Agent/IgnoreSilentlyException.html +118 -0
- data/rdoc/classes/NewRelic/Agent/Instrumentation.html +174 -0
- data/rdoc/classes/NewRelic/Agent/Instrumentation/ActiveRecordInstrumentation.html +221 -0
- data/rdoc/classes/NewRelic/Agent/Instrumentation/ControllerInstrumentation.html +349 -0
- data/rdoc/classes/NewRelic/Agent/Instrumentation/ControllerInstrumentation/ClassMethods.html +277 -0
- data/rdoc/classes/NewRelic/Agent/Instrumentation/DelayedJobInstrumentation.html +112 -0
- data/rdoc/classes/NewRelic/Agent/Instrumentation/MetricFrame.html +1007 -0
- data/rdoc/classes/NewRelic/Agent/Instrumentation/Rack.html +321 -0
- data/rdoc/classes/NewRelic/Agent/Instrumentation/Sinatra.html +176 -0
- data/rdoc/classes/NewRelic/Agent/LicenseException.html +117 -0
- data/rdoc/classes/NewRelic/Agent/MethodTracer.html +150 -0
- data/rdoc/classes/NewRelic/Agent/MethodTracer/ClassMethods.html +295 -0
- data/rdoc/classes/NewRelic/Agent/MethodTracer/InstanceMethods.html +284 -0
- data/rdoc/classes/NewRelic/Agent/PostTooBigException.html +120 -0
- data/rdoc/classes/NewRelic/Agent/Sampler.html +314 -0
- data/rdoc/classes/NewRelic/Agent/Sampler/Unsupported.html +117 -0
- data/rdoc/classes/NewRelic/Agent/Samplers.html +126 -0
- data/rdoc/classes/NewRelic/Agent/Samplers/CpuSampler.html +327 -0
- data/rdoc/classes/NewRelic/Agent/Samplers/DelayedJobLockSampler.html +296 -0
- data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler.html +321 -0
- data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler/Base.html +186 -0
- data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler/JavaHeapSampler.html +173 -0
- data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler/ProcStatus.html +216 -0
- data/rdoc/classes/NewRelic/Agent/Samplers/MemorySampler/ShellPS.html +207 -0
- data/rdoc/classes/NewRelic/Agent/Samplers/ObjectSampler.html +222 -0
- data/rdoc/classes/NewRelic/Agent/ServerError.html +117 -0
- data/rdoc/classes/NewRelic/Agent/ShimAgent.html +297 -0
- data/rdoc/classes/NewRelic/Agent/StatsEngine.html +204 -0
- data/rdoc/classes/NewRelic/Agent/StatsEngine/MetricStats.html +441 -0
- data/rdoc/classes/NewRelic/Agent/StatsEngine/Samplers.html +237 -0
- data/rdoc/classes/NewRelic/Agent/StatsEngine/ScopeStackElement.html +178 -0
- data/rdoc/classes/NewRelic/Agent/StatsEngine/Transactions.html +385 -0
- data/rdoc/classes/NewRelic/Agent/TransactionSampleBuilder.html +505 -0
- data/rdoc/classes/NewRelic/Agent/TransactionSampler.html +690 -0
- data/rdoc/classes/NewRelic/Agent/WorkerLoop.html +305 -0
- data/rdoc/classes/NewRelic/Agent/WorkerLoop/LoopTask.html +224 -0
- data/rdoc/classes/NewRelic/ApdexStats.html +196 -0
- data/rdoc/classes/NewRelic/BasicStats.html +113 -0
- data/rdoc/classes/NewRelic/ChainedCall.html +180 -0
- data/rdoc/classes/NewRelic/Commands.html +112 -0
- data/rdoc/classes/NewRelic/Commands/CommandFailure.html +167 -0
- data/rdoc/classes/NewRelic/Commands/Deployments.html +285 -0
- data/rdoc/classes/NewRelic/Control.html +1760 -0
- data/rdoc/classes/NewRelic/Control/External.html +148 -0
- data/rdoc/classes/NewRelic/Control/Merb.html +227 -0
- data/rdoc/classes/NewRelic/Control/Rails.html +542 -0
- data/rdoc/classes/NewRelic/Control/Ruby.html +266 -0
- data/rdoc/classes/NewRelic/Control/Sinatra.html +178 -0
- data/rdoc/classes/NewRelic/DelayedJobInjection.html +118 -0
- data/rdoc/classes/NewRelic/Histogram.html +226 -0
- data/rdoc/classes/NewRelic/Histogram/Bucket.html +319 -0
- data/rdoc/classes/NewRelic/Histogram/Shim.html +144 -0
- data/rdoc/classes/NewRelic/LocalEnvironment.html +572 -0
- data/rdoc/classes/NewRelic/MerbBootLoader.html +146 -0
- data/rdoc/classes/NewRelic/MethodTraceStats.html +250 -0
- data/rdoc/classes/NewRelic/MetricData.html +347 -0
- data/rdoc/classes/NewRelic/MetricParser.html +747 -0
- data/rdoc/classes/NewRelic/MetricParser/ActionMailer.html +170 -0
- data/rdoc/classes/NewRelic/MetricParser/ActiveMerchant.html +267 -0
- data/rdoc/classes/NewRelic/MetricParser/ActiveRecord.html +250 -0
- data/rdoc/classes/NewRelic/MetricParser/Controller.html +363 -0
- data/rdoc/classes/NewRelic/MetricParser/ControllerCPU.html +319 -0
- data/rdoc/classes/NewRelic/MetricParser/Errors.html +170 -0
- data/rdoc/classes/NewRelic/MetricParser/External.html +339 -0
- data/rdoc/classes/NewRelic/MetricParser/MemCache.html +340 -0
- data/rdoc/classes/NewRelic/MetricParser/OtherTransaction.html +205 -0
- data/rdoc/classes/NewRelic/MetricParser/View.html +381 -0
- data/rdoc/classes/NewRelic/MetricParser/WebFrontend.html +182 -0
- data/rdoc/classes/NewRelic/MetricParser/WebService.html +172 -0
- data/rdoc/classes/NewRelic/MetricSpec.html +406 -0
- data/rdoc/classes/NewRelic/Metrics.html +138 -0
- data/rdoc/classes/NewRelic/NoticedError.html +200 -0
- data/rdoc/classes/NewRelic/Rack.html +112 -0
- data/rdoc/classes/NewRelic/Rack/MetricApp.html +193 -0
- data/rdoc/classes/NewRelic/Rack/Status.html +165 -0
- data/rdoc/classes/NewRelic/ScopedMethodTraceStats.html +225 -0
- data/rdoc/classes/NewRelic/Stats.html +917 -0
- data/rdoc/classes/NewRelic/StatsBase.html +346 -0
- data/rdoc/classes/NewRelic/TransactionAnalysis.html +269 -0
- data/rdoc/classes/NewRelic/TransactionAnalysis/SegmentSummary.html +338 -0
- data/rdoc/classes/NewRelic/TransactionSample.html +766 -0
- data/rdoc/classes/NewRelic/TransactionSample/CompositeSegment.html +195 -0
- data/rdoc/classes/NewRelic/TransactionSample/FakeSegment.html +113 -0
- data/rdoc/classes/NewRelic/TransactionSample/IDGenerator.html +178 -0
- data/rdoc/classes/NewRelic/TransactionSample/Segment.html +920 -0
- data/rdoc/classes/NewRelic/TransactionSample/SummarySegment.html +180 -0
- data/rdoc/classes/NewRelic/VersionNumber.html +338 -0
- data/rdoc/classes/NewRelicApi.html +270 -0
- data/rdoc/classes/NewRelicApi/Account.html +178 -0
- data/rdoc/classes/NewRelicApi/Account/AccountUsage.html +111 -0
- data/rdoc/classes/NewRelicApi/Account/AccountView.html +146 -0
- data/rdoc/classes/NewRelicApi/Application.html +139 -0
- data/rdoc/classes/NewRelicApi/Application/Agent.html +119 -0
- data/rdoc/classes/NewRelicApi/Deployment.html +123 -0
- data/rdoc/classes/NewRelicApi/Subscription.html +111 -0
- data/rdoc/classes/NewRelicApi/ThresholdValue.html +174 -0
- data/rdoc/classes/NewRelicApi/User.html +111 -0
- data/rdoc/created.rid +1 -0
- data/rdoc/files/CHANGELOG.html +649 -0
- data/rdoc/files/LICENSE.html +143 -0
- data/rdoc/files/lib/new_relic/agent/agent_rb.html +113 -0
- data/rdoc/files/lib/new_relic/agent/busy_calculator_rb.html +115 -0
- data/rdoc/files/lib/new_relic/agent/chained_call_rb.html +107 -0
- data/rdoc/files/lib/new_relic/agent/collection_helper_rb.html +101 -0
- data/rdoc/files/lib/new_relic/agent/error_collector_rb.html +101 -0
- data/rdoc/files/lib/new_relic/agent/instrumentation/active_merchant_rb.html +107 -0
- data/rdoc/files/lib/new_relic/agent/instrumentation/active_record_instrumentation_rb.html +108 -0
- data/rdoc/files/lib/new_relic/agent/instrumentation/authlogic_rb.html +101 -0
- data/rdoc/files/lib/new_relic/agent/instrumentation/controller_instrumentation_rb.html +108 -0
- data/rdoc/files/lib/new_relic/agent/instrumentation/data_mapper_rb.html +191 -0
- data/rdoc/files/lib/new_relic/agent/instrumentation/delayed_job_instrumentation_rb.html +109 -0
- data/rdoc/files/lib/new_relic/agent/instrumentation/memcache_rb.html +152 -0
- data/rdoc/files/lib/new_relic/agent/instrumentation/merb/controller_rb.html +155 -0
- data/rdoc/files/lib/new_relic/agent/instrumentation/merb/errors_rb.html +107 -0
- data/rdoc/files/lib/new_relic/agent/instrumentation/metric_frame_rb.html +113 -0
- data/rdoc/files/lib/new_relic/agent/instrumentation/net_rb.html +172 -0
- data/rdoc/files/lib/new_relic/agent/instrumentation/passenger_instrumentation_rb.html +101 -0
- data/rdoc/files/lib/new_relic/agent/instrumentation/rack_rb.html +108 -0
- data/rdoc/files/lib/new_relic/agent/instrumentation/rails/action_controller_rb.html +152 -0
- data/rdoc/files/lib/new_relic/agent/instrumentation/rails/action_web_service_rb.html +108 -0
- data/rdoc/files/lib/new_relic/agent/instrumentation/rails/errors_rb.html +167 -0
- data/rdoc/files/lib/new_relic/agent/instrumentation/sinatra_rb.html +108 -0
- data/rdoc/files/lib/new_relic/agent/method_tracer_rb.html +108 -0
- data/rdoc/files/lib/new_relic/agent/sampler_rb.html +116 -0
- data/rdoc/files/lib/new_relic/agent/samplers/cpu_sampler_rb.html +101 -0
- data/rdoc/files/lib/new_relic/agent/samplers/delayed_job_lock_sampler_rb.html +101 -0
- data/rdoc/files/lib/new_relic/agent/samplers/memory_sampler_rb.html +101 -0
- data/rdoc/files/lib/new_relic/agent/samplers/object_sampler_rb.html +101 -0
- data/rdoc/files/lib/new_relic/agent/shim_agent_rb.html +108 -0
- data/rdoc/files/lib/new_relic/agent/stats_engine/metric_stats_rb.html +101 -0
- data/rdoc/files/lib/new_relic/agent/stats_engine/samplers_rb.html +101 -0
- data/rdoc/files/lib/new_relic/agent/stats_engine/transactions_rb.html +101 -0
- data/rdoc/files/lib/new_relic/agent/stats_engine_rb.html +110 -0
- data/rdoc/files/lib/new_relic/agent/transaction_sampler_rb.html +101 -0
- data/rdoc/files/lib/new_relic/agent/worker_loop_rb.html +101 -0
- data/rdoc/files/lib/new_relic/agent_rb.html +204 -0
- data/rdoc/files/lib/new_relic/commands/deployments_rb.html +119 -0
- data/rdoc/files/lib/new_relic/commands/new_relic_commands_rb.html +108 -0
- data/rdoc/files/lib/new_relic/control/external_rb.html +117 -0
- data/rdoc/files/lib/new_relic/control/merb_rb.html +101 -0
- data/rdoc/files/lib/new_relic/control/rails_rb.html +108 -0
- data/rdoc/files/lib/new_relic/control/ruby_rb.html +110 -0
- data/rdoc/files/lib/new_relic/control/sinatra_rb.html +108 -0
- data/rdoc/files/lib/new_relic/control_rb.html +116 -0
- data/rdoc/files/lib/new_relic/delayed_job_injection_rb.html +180 -0
- data/rdoc/files/lib/new_relic/histogram_rb.html +114 -0
- data/rdoc/files/lib/new_relic/local_environment_rb.html +111 -0
- data/rdoc/files/lib/new_relic/merbtasks_rb.html +101 -0
- data/rdoc/files/lib/new_relic/metric_data_rb.html +101 -0
- data/rdoc/files/lib/new_relic/metric_parser/action_mailer_rb.html +101 -0
- data/rdoc/files/lib/new_relic/metric_parser/active_merchant_rb.html +101 -0
- data/rdoc/files/lib/new_relic/metric_parser/active_record_rb.html +101 -0
- data/rdoc/files/lib/new_relic/metric_parser/controller_cpu_rb.html +101 -0
- data/rdoc/files/lib/new_relic/metric_parser/controller_rb.html +101 -0
- data/rdoc/files/lib/new_relic/metric_parser/errors_rb.html +101 -0
- data/rdoc/files/lib/new_relic/metric_parser/external_rb.html +101 -0
- data/rdoc/files/lib/new_relic/metric_parser/mem_cache_rb.html +101 -0
- data/rdoc/files/lib/new_relic/metric_parser/other_transaction_rb.html +108 -0
- data/rdoc/files/lib/new_relic/metric_parser/view_rb.html +101 -0
- data/rdoc/files/lib/new_relic/metric_parser/web_frontend_rb.html +107 -0
- data/rdoc/files/lib/new_relic/metric_parser/web_service_rb.html +101 -0
- data/rdoc/files/lib/new_relic/metric_parser_rb.html +101 -0
- data/rdoc/files/lib/new_relic/metric_spec_rb.html +108 -0
- data/rdoc/files/lib/new_relic/metrics_rb.html +101 -0
- data/rdoc/files/lib/new_relic/noticed_error_rb.html +107 -0
- data/rdoc/files/lib/new_relic/rack/metric_app_rb.html +108 -0
- data/rdoc/files/lib/new_relic/rack_app_rb.html +110 -0
- data/rdoc/files/lib/new_relic/recipes_rb.html +128 -0
- data/rdoc/files/lib/new_relic/stats_rb.html +101 -0
- data/rdoc/files/lib/new_relic/transaction_analysis_rb.html +108 -0
- data/rdoc/files/lib/new_relic/transaction_sample_rb.html +101 -0
- data/rdoc/files/lib/new_relic/version_rb.html +101 -0
- data/rdoc/files/lib/new_relic_api_rb.html +145 -0
- data/rdoc/files/lib/newrelic_rpm_rb.html +147 -0
- data/rdoc/files/lib/tasks/all_rb.html +107 -0
- data/rdoc/fr_class_index.html +134 -0
- data/rdoc/fr_file_index.html +103 -0
- data/rdoc/fr_method_index.html +568 -0
- data/rdoc/index.html +24 -0
- data/rdoc/rdoc-style.css +208 -0
- data/test/new_relic/agent/active_record_instrumentation_test.rb +16 -5
- data/test/new_relic/agent/collection_helper_test.rb +1 -1
- data/test/new_relic/agent/error_collector_test.rb +2 -4
- data/test/new_relic/agent/rpm_agent_test.rb +1 -1
- data/test/new_relic/agent/task_instrumentation_test.rb +1 -1
- data/test/new_relic/agent/worker_loop_test.rb +33 -76
- data/test/new_relic/control_test.rb +9 -2
- data/test/new_relic/stats_test.rb +29 -1
- data/test/new_relic/version_number_test.rb +13 -0
- data/ui/helpers/newrelic_helper.rb +1 -2
- metadata +196 -4
@@ -0,0 +1,747 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: NewRelic::MetricParser</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">NewRelic::MetricParser</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/lib/new_relic/metric_parser_rb.html">
|
59
|
+
lib/new_relic/metric_parser.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
<div id="description">
|
82
|
+
<p>
|
83
|
+
Metric parsing logic mixin. Given a metric name (attribute called
|
84
|
+
"name"), provide a set of accessors that enable inspection of the
|
85
|
+
metric. A metric has 2 or more <a
|
86
|
+
href="MetricParser.html#M000381">segments</a>, each separated by the
|
87
|
+
’/’ character. The metric‘s <a
|
88
|
+
href="MetricParser.html#M000380">category</a> is specified by its first
|
89
|
+
segment. Following are the set of categories currently supported by <a
|
90
|
+
href="../NewRelic.html">NewRelic</a>‘s default metric set:
|
91
|
+
</p>
|
92
|
+
<ul>
|
93
|
+
<li>Controller
|
94
|
+
|
95
|
+
</li>
|
96
|
+
<li>ActiveRecord
|
97
|
+
|
98
|
+
</li>
|
99
|
+
<li>Rails
|
100
|
+
|
101
|
+
</li>
|
102
|
+
<li>WebService
|
103
|
+
|
104
|
+
</li>
|
105
|
+
<li>View
|
106
|
+
|
107
|
+
</li>
|
108
|
+
<li>Database
|
109
|
+
|
110
|
+
</li>
|
111
|
+
<li>Custom
|
112
|
+
|
113
|
+
</li>
|
114
|
+
</ul>
|
115
|
+
<p>
|
116
|
+
Based on the <a href="MetricParser.html#M000380">category</a> of the
|
117
|
+
metric, specific parsing logic is defined in the source files countained in
|
118
|
+
the "metric_parsers" sub directory local to this file.
|
119
|
+
</p>
|
120
|
+
|
121
|
+
</div>
|
122
|
+
|
123
|
+
|
124
|
+
</div>
|
125
|
+
|
126
|
+
<div id="method-list">
|
127
|
+
<h3 class="section-bar">Methods</h3>
|
128
|
+
|
129
|
+
<div class="name-list">
|
130
|
+
<a href="#M000377">apdex_metric_path</a>
|
131
|
+
<a href="#M000379">base_metric_name</a>
|
132
|
+
<a href="#M000389">call_rate_suffix</a>
|
133
|
+
<a href="#M000380">category</a>
|
134
|
+
<a href="#M000375">developer_name</a>
|
135
|
+
<a href="#M000370">for_metric_named</a>
|
136
|
+
<a href="#M000388">last_segment</a>
|
137
|
+
<a href="#M000378">legend_name</a>
|
138
|
+
<a href="#M000372">method_missing</a>
|
139
|
+
<a href="#M000391">new</a>
|
140
|
+
<a href="#M000371">parse</a>
|
141
|
+
<a href="#M000374">pie_chart_label</a>
|
142
|
+
<a href="#M000382">segment_0</a>
|
143
|
+
<a href="#M000383">segment_1</a>
|
144
|
+
<a href="#M000384">segment_2</a>
|
145
|
+
<a href="#M000385">segment_3</a>
|
146
|
+
<a href="#M000386">segment_4</a>
|
147
|
+
<a href="#M000387">segment_5</a>
|
148
|
+
<a href="#M000381">segments</a>
|
149
|
+
<a href="#M000373">short_name</a>
|
150
|
+
<a href="#M000376">tooltip_name</a>
|
151
|
+
<a href="#M000390">url</a>
|
152
|
+
</div>
|
153
|
+
</div>
|
154
|
+
|
155
|
+
</div>
|
156
|
+
|
157
|
+
|
158
|
+
<!-- if includes -->
|
159
|
+
|
160
|
+
<div id="section">
|
161
|
+
|
162
|
+
|
163
|
+
<div id="constants-list">
|
164
|
+
<h3 class="section-bar">Constants</h3>
|
165
|
+
|
166
|
+
<div class="name-list">
|
167
|
+
<table summary="Constants">
|
168
|
+
<tr class="top-aligned-row context-row">
|
169
|
+
<td class="context-item-name">SEPARATOR</td>
|
170
|
+
<td>=</td>
|
171
|
+
<td class="context-item-value">'/' unless defined? SEPARATOR</td>
|
172
|
+
</tr>
|
173
|
+
</table>
|
174
|
+
</div>
|
175
|
+
</div>
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
<div id="attribute-list">
|
180
|
+
<h3 class="section-bar">Attributes</h3>
|
181
|
+
|
182
|
+
<div class="name-list">
|
183
|
+
<table>
|
184
|
+
<tr class="top-aligned-row context-row">
|
185
|
+
<td class="context-item-name">name</td>
|
186
|
+
<td class="context-item-value"> [R] </td>
|
187
|
+
<td class="context-item-desc"></td>
|
188
|
+
</tr>
|
189
|
+
</table>
|
190
|
+
</div>
|
191
|
+
</div>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
<!-- if method_list -->
|
196
|
+
<div id="methods">
|
197
|
+
<h3 class="section-bar">Public Class methods</h3>
|
198
|
+
|
199
|
+
<div id="method-M000370" class="method-detail">
|
200
|
+
<a name="M000370"></a>
|
201
|
+
|
202
|
+
<div class="method-heading">
|
203
|
+
<a href="#M000370" class="method-signature">
|
204
|
+
<span class="method-name">for_metric_named</span><span class="method-args">(s)</span>
|
205
|
+
</a>
|
206
|
+
</div>
|
207
|
+
|
208
|
+
<div class="method-description">
|
209
|
+
<p>
|
210
|
+
return a string that is parsable via the Metric parser APIs
|
211
|
+
</p>
|
212
|
+
<p><a class="source-toggle" href="#"
|
213
|
+
onclick="toggleCode('M000370-source');return false;">[Source]</a></p>
|
214
|
+
<div class="method-source-code" id="M000370-source">
|
215
|
+
<pre>
|
216
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 28</span>
|
217
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">for_metric_named</span>(<span class="ruby-identifier">s</span>)
|
218
|
+
<span class="ruby-identifier">category</span> = (<span class="ruby-identifier">s</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^([^\/]*)/</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">$1</span>
|
219
|
+
<span class="ruby-identifier">parser_class</span> = <span class="ruby-keyword kw">self</span>
|
220
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">category</span>
|
221
|
+
<span class="ruby-identifier">parser_class</span> = <span class="ruby-constant">NewRelic</span><span class="ruby-operator">::</span><span class="ruby-constant">MetricParser</span>.<span class="ruby-identifier">const_get</span>(<span class="ruby-identifier">category</span>) <span class="ruby-keyword kw">if</span> (<span class="ruby-constant">NewRelic</span><span class="ruby-operator">::</span><span class="ruby-constant">MetricParser</span>.<span class="ruby-identifier">const_defined?</span>(<span class="ruby-identifier">category</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>)
|
222
|
+
<span class="ruby-keyword kw">end</span>
|
223
|
+
<span class="ruby-identifier">parser_class</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">s</span>
|
224
|
+
<span class="ruby-keyword kw">end</span>
|
225
|
+
</pre>
|
226
|
+
</div>
|
227
|
+
</div>
|
228
|
+
</div>
|
229
|
+
|
230
|
+
<div id="method-M000391" class="method-detail">
|
231
|
+
<a name="M000391"></a>
|
232
|
+
|
233
|
+
<div class="method-heading">
|
234
|
+
<a href="#M000391" class="method-signature">
|
235
|
+
<span class="method-name">new</span><span class="method-args">(name)</span>
|
236
|
+
</a>
|
237
|
+
</div>
|
238
|
+
|
239
|
+
<div class="method-description">
|
240
|
+
<p>
|
241
|
+
returns a hash of params for url_for(), giving you a drilldown URL to an
|
242
|
+
RPM page for this metric define in subclasses - TB 2009-12-18 def
|
243
|
+
drilldown_url(metric_id); end
|
244
|
+
</p>
|
245
|
+
<p><a class="source-toggle" href="#"
|
246
|
+
onclick="toggleCode('M000391-source');return false;">[Source]</a></p>
|
247
|
+
<div class="method-source-code" id="M000391-source">
|
248
|
+
<pre>
|
249
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 120</span>
|
250
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>)
|
251
|
+
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
|
252
|
+
<span class="ruby-keyword kw">end</span>
|
253
|
+
</pre>
|
254
|
+
</div>
|
255
|
+
</div>
|
256
|
+
</div>
|
257
|
+
|
258
|
+
<div id="method-M000371" class="method-detail">
|
259
|
+
<a name="M000371"></a>
|
260
|
+
|
261
|
+
<div class="method-heading">
|
262
|
+
<a href="#M000371" class="method-signature">
|
263
|
+
<span class="method-name">parse</span><span class="method-args">(s)</span>
|
264
|
+
</a>
|
265
|
+
</div>
|
266
|
+
|
267
|
+
<div class="method-description">
|
268
|
+
<p><a class="source-toggle" href="#"
|
269
|
+
onclick="toggleCode('M000371-source');return false;">[Source]</a></p>
|
270
|
+
<div class="method-source-code" id="M000371-source">
|
271
|
+
<pre>
|
272
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 37</span>
|
273
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">s</span>)
|
274
|
+
<span class="ruby-identifier">for_metric_named</span>(<span class="ruby-identifier">s</span>)
|
275
|
+
<span class="ruby-keyword kw">end</span>
|
276
|
+
</pre>
|
277
|
+
</div>
|
278
|
+
</div>
|
279
|
+
</div>
|
280
|
+
|
281
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
282
|
+
|
283
|
+
<div id="method-M000377" class="method-detail">
|
284
|
+
<a name="M000377"></a>
|
285
|
+
|
286
|
+
<div class="method-heading">
|
287
|
+
<a href="#M000377" class="method-signature">
|
288
|
+
<span class="method-name">apdex_metric_path</span><span class="method-args">()</span>
|
289
|
+
</a>
|
290
|
+
</div>
|
291
|
+
|
292
|
+
<div class="method-description">
|
293
|
+
<p><a class="source-toggle" href="#"
|
294
|
+
onclick="toggleCode('M000377-source');return false;">[Source]</a></p>
|
295
|
+
<div class="method-source-code" id="M000377-source">
|
296
|
+
<pre>
|
297
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 69</span>
|
298
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">apdex_metric_path</span>
|
299
|
+
<span class="ruby-node">"Apdex/#{segments[1..-1].join('/')}"</span>
|
300
|
+
<span class="ruby-keyword kw">end</span>
|
301
|
+
</pre>
|
302
|
+
</div>
|
303
|
+
</div>
|
304
|
+
</div>
|
305
|
+
|
306
|
+
<div id="method-M000379" class="method-detail">
|
307
|
+
<a name="M000379"></a>
|
308
|
+
|
309
|
+
<div class="method-heading">
|
310
|
+
<a href="#M000379" class="method-signature">
|
311
|
+
<span class="method-name">base_metric_name</span><span class="method-args">()</span>
|
312
|
+
</a>
|
313
|
+
</div>
|
314
|
+
|
315
|
+
<div class="method-description">
|
316
|
+
<p>
|
317
|
+
Return the name of another metric if the current metric is really add-on
|
318
|
+
data for another metric.
|
319
|
+
</p>
|
320
|
+
<p><a class="source-toggle" href="#"
|
321
|
+
onclick="toggleCode('M000379-source');return false;">[Source]</a></p>
|
322
|
+
<div class="method-source-code" id="M000379-source">
|
323
|
+
<pre>
|
324
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 80</span>
|
325
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">base_metric_name</span>
|
326
|
+
<span class="ruby-keyword kw">nil</span>
|
327
|
+
<span class="ruby-keyword kw">end</span>
|
328
|
+
</pre>
|
329
|
+
</div>
|
330
|
+
</div>
|
331
|
+
</div>
|
332
|
+
|
333
|
+
<div id="method-M000389" class="method-detail">
|
334
|
+
<a name="M000389"></a>
|
335
|
+
|
336
|
+
<div class="method-heading">
|
337
|
+
<a href="#M000389" class="method-signature">
|
338
|
+
<span class="method-name">call_rate_suffix</span><span class="method-args">()</span>
|
339
|
+
</a>
|
340
|
+
</div>
|
341
|
+
|
342
|
+
<div class="method-description">
|
343
|
+
<p>
|
344
|
+
This is the suffix used for call rate or throughput. By default, it‘s
|
345
|
+
cpm but things like controller actions will override to use something like
|
346
|
+
‘rpm’ for requests per minute
|
347
|
+
</p>
|
348
|
+
<p><a class="source-toggle" href="#"
|
349
|
+
onclick="toggleCode('M000389-source');return false;">[Source]</a></p>
|
350
|
+
<div class="method-source-code" id="M000389-source">
|
351
|
+
<pre>
|
352
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 108</span>
|
353
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call_rate_suffix</span>
|
354
|
+
<span class="ruby-value str">'cpm'</span>
|
355
|
+
<span class="ruby-keyword kw">end</span>
|
356
|
+
</pre>
|
357
|
+
</div>
|
358
|
+
</div>
|
359
|
+
</div>
|
360
|
+
|
361
|
+
<div id="method-M000380" class="method-detail">
|
362
|
+
<a name="M000380"></a>
|
363
|
+
|
364
|
+
<div class="method-heading">
|
365
|
+
<a href="#M000380" class="method-signature">
|
366
|
+
<span class="method-name">category</span><span class="method-args">()</span>
|
367
|
+
</a>
|
368
|
+
</div>
|
369
|
+
|
370
|
+
<div class="method-description">
|
371
|
+
<p><a class="source-toggle" href="#"
|
372
|
+
onclick="toggleCode('M000380-source');return false;">[Source]</a></p>
|
373
|
+
<div class="method-source-code" id="M000380-source">
|
374
|
+
<pre>
|
375
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 84</span>
|
376
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">category</span>
|
377
|
+
<span class="ruby-identifier">segments</span>[<span class="ruby-value">0</span>]
|
378
|
+
<span class="ruby-keyword kw">end</span>
|
379
|
+
</pre>
|
380
|
+
</div>
|
381
|
+
</div>
|
382
|
+
</div>
|
383
|
+
|
384
|
+
<div id="method-M000375" class="method-detail">
|
385
|
+
<a name="M000375"></a>
|
386
|
+
|
387
|
+
<div class="method-heading">
|
388
|
+
<a href="#M000375" class="method-signature">
|
389
|
+
<span class="method-name">developer_name</span><span class="method-args">()</span>
|
390
|
+
</a>
|
391
|
+
</div>
|
392
|
+
|
393
|
+
<div class="method-description">
|
394
|
+
<p><a class="source-toggle" href="#"
|
395
|
+
onclick="toggleCode('M000375-source');return false;">[Source]</a></p>
|
396
|
+
<div class="method-source-code" id="M000375-source">
|
397
|
+
<pre>
|
398
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 61</span>
|
399
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">developer_name</span>
|
400
|
+
<span class="ruby-identifier">short_name</span>
|
401
|
+
<span class="ruby-keyword kw">end</span>
|
402
|
+
</pre>
|
403
|
+
</div>
|
404
|
+
</div>
|
405
|
+
</div>
|
406
|
+
|
407
|
+
<div id="method-M000388" class="method-detail">
|
408
|
+
<a name="M000388"></a>
|
409
|
+
|
410
|
+
<div class="method-heading">
|
411
|
+
<a href="#M000388" class="method-signature">
|
412
|
+
<span class="method-name">last_segment</span><span class="method-args">()</span>
|
413
|
+
</a>
|
414
|
+
</div>
|
415
|
+
|
416
|
+
<div class="method-description">
|
417
|
+
<p><a class="source-toggle" href="#"
|
418
|
+
onclick="toggleCode('M000388-source');return false;">[Source]</a></p>
|
419
|
+
<div class="method-source-code" id="M000388-source">
|
420
|
+
<pre>
|
421
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 103</span>
|
422
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last_segment</span>; <span class="ruby-identifier">segments</span>.<span class="ruby-identifier">last</span>; <span class="ruby-keyword kw">end</span>
|
423
|
+
</pre>
|
424
|
+
</div>
|
425
|
+
</div>
|
426
|
+
</div>
|
427
|
+
|
428
|
+
<div id="method-M000378" class="method-detail">
|
429
|
+
<a name="M000378"></a>
|
430
|
+
|
431
|
+
<div class="method-heading">
|
432
|
+
<a href="#M000378" class="method-signature">
|
433
|
+
<span class="method-name">legend_name</span><span class="method-args">()</span>
|
434
|
+
</a>
|
435
|
+
</div>
|
436
|
+
|
437
|
+
<div class="method-description">
|
438
|
+
<p>
|
439
|
+
A short name for legends in the graphs
|
440
|
+
</p>
|
441
|
+
<p><a class="source-toggle" href="#"
|
442
|
+
onclick="toggleCode('M000378-source');return false;">[Source]</a></p>
|
443
|
+
<div class="method-source-code" id="M000378-source">
|
444
|
+
<pre>
|
445
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 74</span>
|
446
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">legend_name</span>
|
447
|
+
<span class="ruby-identifier">short_name</span>
|
448
|
+
<span class="ruby-keyword kw">end</span>
|
449
|
+
</pre>
|
450
|
+
</div>
|
451
|
+
</div>
|
452
|
+
</div>
|
453
|
+
|
454
|
+
<div id="method-M000372" class="method-detail">
|
455
|
+
<a name="M000372"></a>
|
456
|
+
|
457
|
+
<div class="method-heading">
|
458
|
+
<a href="#M000372" class="method-signature">
|
459
|
+
<span class="method-name">method_missing</span><span class="method-args">(method_name, *args)</span>
|
460
|
+
</a>
|
461
|
+
</div>
|
462
|
+
|
463
|
+
<div class="method-description">
|
464
|
+
<p><a class="source-toggle" href="#"
|
465
|
+
onclick="toggleCode('M000372-source');return false;">[Source]</a></p>
|
466
|
+
<div class="method-source-code" id="M000372-source">
|
467
|
+
<pre>
|
468
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 41</span>
|
469
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">method_name</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
470
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">method_name</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^is_.*\?/</span>
|
471
|
+
<span class="ruby-keyword kw">super</span>
|
472
|
+
<span class="ruby-keyword kw">end</span>
|
473
|
+
</pre>
|
474
|
+
</div>
|
475
|
+
</div>
|
476
|
+
</div>
|
477
|
+
|
478
|
+
<div id="method-M000374" class="method-detail">
|
479
|
+
<a name="M000374"></a>
|
480
|
+
|
481
|
+
<div class="method-heading">
|
482
|
+
<a href="#M000374" class="method-signature">
|
483
|
+
<span class="method-name">pie_chart_label</span><span class="method-args">()</span>
|
484
|
+
</a>
|
485
|
+
</div>
|
486
|
+
|
487
|
+
<div class="method-description">
|
488
|
+
<p><a class="source-toggle" href="#"
|
489
|
+
onclick="toggleCode('M000374-source');return false;">[Source]</a></p>
|
490
|
+
<div class="method-source-code" id="M000374-source">
|
491
|
+
<pre>
|
492
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 57</span>
|
493
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pie_chart_label</span>
|
494
|
+
<span class="ruby-identifier">developer_name</span>
|
495
|
+
<span class="ruby-keyword kw">end</span>
|
496
|
+
</pre>
|
497
|
+
</div>
|
498
|
+
</div>
|
499
|
+
</div>
|
500
|
+
|
501
|
+
<div id="method-M000382" class="method-detail">
|
502
|
+
<a name="M000382"></a>
|
503
|
+
|
504
|
+
<div class="method-heading">
|
505
|
+
<a href="#M000382" class="method-signature">
|
506
|
+
<span class="method-name">segment_0</span><span class="method-args">()</span>
|
507
|
+
</a>
|
508
|
+
</div>
|
509
|
+
|
510
|
+
<div class="method-description">
|
511
|
+
<p>
|
512
|
+
— These accessors are used to allow chart to use a specific segment
|
513
|
+
in the metric name for label construction as a zero-arg accessor ++
|
514
|
+
</p>
|
515
|
+
<p><a class="source-toggle" href="#"
|
516
|
+
onclick="toggleCode('M000382-source');return false;">[Source]</a></p>
|
517
|
+
<div class="method-source-code" id="M000382-source">
|
518
|
+
<pre>
|
519
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 97</span>
|
520
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">segment_0</span>; <span class="ruby-identifier">segments</span>[<span class="ruby-value">0</span>]; <span class="ruby-keyword kw">end</span>
|
521
|
+
</pre>
|
522
|
+
</div>
|
523
|
+
</div>
|
524
|
+
</div>
|
525
|
+
|
526
|
+
<div id="method-M000383" class="method-detail">
|
527
|
+
<a name="M000383"></a>
|
528
|
+
|
529
|
+
<div class="method-heading">
|
530
|
+
<a href="#M000383" class="method-signature">
|
531
|
+
<span class="method-name">segment_1</span><span class="method-args">()</span>
|
532
|
+
</a>
|
533
|
+
</div>
|
534
|
+
|
535
|
+
<div class="method-description">
|
536
|
+
<p><a class="source-toggle" href="#"
|
537
|
+
onclick="toggleCode('M000383-source');return false;">[Source]</a></p>
|
538
|
+
<div class="method-source-code" id="M000383-source">
|
539
|
+
<pre>
|
540
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 98</span>
|
541
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">segment_1</span>; <span class="ruby-identifier">segments</span>[<span class="ruby-value">1</span>]; <span class="ruby-keyword kw">end</span>
|
542
|
+
</pre>
|
543
|
+
</div>
|
544
|
+
</div>
|
545
|
+
</div>
|
546
|
+
|
547
|
+
<div id="method-M000384" class="method-detail">
|
548
|
+
<a name="M000384"></a>
|
549
|
+
|
550
|
+
<div class="method-heading">
|
551
|
+
<a href="#M000384" class="method-signature">
|
552
|
+
<span class="method-name">segment_2</span><span class="method-args">()</span>
|
553
|
+
</a>
|
554
|
+
</div>
|
555
|
+
|
556
|
+
<div class="method-description">
|
557
|
+
<p><a class="source-toggle" href="#"
|
558
|
+
onclick="toggleCode('M000384-source');return false;">[Source]</a></p>
|
559
|
+
<div class="method-source-code" id="M000384-source">
|
560
|
+
<pre>
|
561
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 99</span>
|
562
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">segment_2</span>; <span class="ruby-identifier">segments</span>[<span class="ruby-value">2</span>]; <span class="ruby-keyword kw">end</span>
|
563
|
+
</pre>
|
564
|
+
</div>
|
565
|
+
</div>
|
566
|
+
</div>
|
567
|
+
|
568
|
+
<div id="method-M000385" class="method-detail">
|
569
|
+
<a name="M000385"></a>
|
570
|
+
|
571
|
+
<div class="method-heading">
|
572
|
+
<a href="#M000385" class="method-signature">
|
573
|
+
<span class="method-name">segment_3</span><span class="method-args">()</span>
|
574
|
+
</a>
|
575
|
+
</div>
|
576
|
+
|
577
|
+
<div class="method-description">
|
578
|
+
<p><a class="source-toggle" href="#"
|
579
|
+
onclick="toggleCode('M000385-source');return false;">[Source]</a></p>
|
580
|
+
<div class="method-source-code" id="M000385-source">
|
581
|
+
<pre>
|
582
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 100</span>
|
583
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">segment_3</span>; <span class="ruby-identifier">segments</span>[<span class="ruby-value">3</span>]; <span class="ruby-keyword kw">end</span>
|
584
|
+
</pre>
|
585
|
+
</div>
|
586
|
+
</div>
|
587
|
+
</div>
|
588
|
+
|
589
|
+
<div id="method-M000386" class="method-detail">
|
590
|
+
<a name="M000386"></a>
|
591
|
+
|
592
|
+
<div class="method-heading">
|
593
|
+
<a href="#M000386" class="method-signature">
|
594
|
+
<span class="method-name">segment_4</span><span class="method-args">()</span>
|
595
|
+
</a>
|
596
|
+
</div>
|
597
|
+
|
598
|
+
<div class="method-description">
|
599
|
+
<p><a class="source-toggle" href="#"
|
600
|
+
onclick="toggleCode('M000386-source');return false;">[Source]</a></p>
|
601
|
+
<div class="method-source-code" id="M000386-source">
|
602
|
+
<pre>
|
603
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 101</span>
|
604
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">segment_4</span>; <span class="ruby-identifier">segments</span>[<span class="ruby-value">4</span>]; <span class="ruby-keyword kw">end</span>
|
605
|
+
</pre>
|
606
|
+
</div>
|
607
|
+
</div>
|
608
|
+
</div>
|
609
|
+
|
610
|
+
<div id="method-M000387" class="method-detail">
|
611
|
+
<a name="M000387"></a>
|
612
|
+
|
613
|
+
<div class="method-heading">
|
614
|
+
<a href="#M000387" class="method-signature">
|
615
|
+
<span class="method-name">segment_5</span><span class="method-args">()</span>
|
616
|
+
</a>
|
617
|
+
</div>
|
618
|
+
|
619
|
+
<div class="method-description">
|
620
|
+
<p><a class="source-toggle" href="#"
|
621
|
+
onclick="toggleCode('M000387-source');return false;">[Source]</a></p>
|
622
|
+
<div class="method-source-code" id="M000387-source">
|
623
|
+
<pre>
|
624
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 102</span>
|
625
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">segment_5</span>; <span class="ruby-identifier">segments</span>[<span class="ruby-value">5</span>]; <span class="ruby-keyword kw">end</span>
|
626
|
+
</pre>
|
627
|
+
</div>
|
628
|
+
</div>
|
629
|
+
</div>
|
630
|
+
|
631
|
+
<div id="method-M000381" class="method-detail">
|
632
|
+
<a name="M000381"></a>
|
633
|
+
|
634
|
+
<div class="method-heading">
|
635
|
+
<a href="#M000381" class="method-signature">
|
636
|
+
<span class="method-name">segments</span><span class="method-args">()</span>
|
637
|
+
</a>
|
638
|
+
</div>
|
639
|
+
|
640
|
+
<div class="method-description">
|
641
|
+
<p><a class="source-toggle" href="#"
|
642
|
+
onclick="toggleCode('M000381-source');return false;">[Source]</a></p>
|
643
|
+
<div class="method-source-code" id="M000381-source">
|
644
|
+
<pre>
|
645
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 88</span>
|
646
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">segments</span>
|
647
|
+
<span class="ruby-keyword kw">return</span> [] <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">name</span>
|
648
|
+
<span class="ruby-ivar">@segments</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">split</span>(<span class="ruby-constant">SEPARATOR</span>).<span class="ruby-identifier">freeze</span>
|
649
|
+
<span class="ruby-keyword kw">end</span>
|
650
|
+
</pre>
|
651
|
+
</div>
|
652
|
+
</div>
|
653
|
+
</div>
|
654
|
+
|
655
|
+
<div id="method-M000373" class="method-detail">
|
656
|
+
<a name="M000373"></a>
|
657
|
+
|
658
|
+
<div class="method-heading">
|
659
|
+
<a href="#M000373" class="method-signature">
|
660
|
+
<span class="method-name">short_name</span><span class="method-args">()</span>
|
661
|
+
</a>
|
662
|
+
</div>
|
663
|
+
|
664
|
+
<div class="method-description">
|
665
|
+
<p>
|
666
|
+
The short name for the metric is defined as all of the <a
|
667
|
+
href="MetricParser.html#M000381">segments</a> of the metric name except for
|
668
|
+
its first (its domain).
|
669
|
+
</p>
|
670
|
+
<p><a class="source-toggle" href="#"
|
671
|
+
onclick="toggleCode('M000373-source');return false;">[Source]</a></p>
|
672
|
+
<div class="method-source-code" id="M000373-source">
|
673
|
+
<pre>
|
674
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 47</span>
|
675
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">short_name</span>
|
676
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">segments</span>.<span class="ruby-identifier">empty?</span>
|
677
|
+
<span class="ruby-value str">''</span>
|
678
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">segments</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
|
679
|
+
<span class="ruby-identifier">segments</span>[<span class="ruby-value">0</span>]
|
680
|
+
<span class="ruby-keyword kw">else</span>
|
681
|
+
<span class="ruby-identifier">segments</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>].<span class="ruby-identifier">join</span>(<span class="ruby-constant">SEPARATOR</span>)
|
682
|
+
<span class="ruby-keyword kw">end</span>
|
683
|
+
<span class="ruby-keyword kw">end</span>
|
684
|
+
</pre>
|
685
|
+
</div>
|
686
|
+
</div>
|
687
|
+
</div>
|
688
|
+
|
689
|
+
<div id="method-M000376" class="method-detail">
|
690
|
+
<a name="M000376"></a>
|
691
|
+
|
692
|
+
<div class="method-heading">
|
693
|
+
<a href="#M000376" class="method-signature">
|
694
|
+
<span class="method-name">tooltip_name</span><span class="method-args">()</span>
|
695
|
+
</a>
|
696
|
+
</div>
|
697
|
+
|
698
|
+
<div class="method-description">
|
699
|
+
<p><a class="source-toggle" href="#"
|
700
|
+
onclick="toggleCode('M000376-source');return false;">[Source]</a></p>
|
701
|
+
<div class="method-source-code" id="M000376-source">
|
702
|
+
<pre>
|
703
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 65</span>
|
704
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tooltip_name</span>
|
705
|
+
<span class="ruby-identifier">short_name</span>
|
706
|
+
<span class="ruby-keyword kw">end</span>
|
707
|
+
</pre>
|
708
|
+
</div>
|
709
|
+
</div>
|
710
|
+
</div>
|
711
|
+
|
712
|
+
<div id="method-M000390" class="method-detail">
|
713
|
+
<a name="M000390"></a>
|
714
|
+
|
715
|
+
<div class="method-heading">
|
716
|
+
<a href="#M000390" class="method-signature">
|
717
|
+
<span class="method-name">url</span><span class="method-args">()</span>
|
718
|
+
</a>
|
719
|
+
</div>
|
720
|
+
|
721
|
+
<div class="method-description">
|
722
|
+
<p><a class="source-toggle" href="#"
|
723
|
+
onclick="toggleCode('M000390-source');return false;">[Source]</a></p>
|
724
|
+
<div class="method-source-code" id="M000390-source">
|
725
|
+
<pre>
|
726
|
+
<span class="ruby-comment cmt"># File lib/new_relic/metric_parser.rb, line 112</span>
|
727
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">url</span>
|
728
|
+
<span class="ruby-value str">''</span>
|
729
|
+
<span class="ruby-keyword kw">end</span>
|
730
|
+
</pre>
|
731
|
+
</div>
|
732
|
+
</div>
|
733
|
+
</div>
|
734
|
+
|
735
|
+
|
736
|
+
</div>
|
737
|
+
|
738
|
+
|
739
|
+
</div>
|
740
|
+
|
741
|
+
|
742
|
+
<div id="validator-badges">
|
743
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
744
|
+
</div>
|
745
|
+
|
746
|
+
</body>
|
747
|
+
</html>
|