Class: Concord::Thrift::BoltMetricsService::Client
- Inherits:
-
Object
- Object
- Concord::Thrift::BoltMetricsService::Client
- Includes:
- Thrift::Client
- Defined in:
- lib/gen-rb/bolt_metrics_service.rb
Instance Method Summary collapse
- #gauge(name, val) ⇒ Object
- #histogram(name, measure) ⇒ Object
- #recv_gauge ⇒ Object
- #recv_histogram ⇒ Object
- #recv_sum ⇒ Object
- #recv_timer ⇒ Object
- #send_gauge(name, val) ⇒ Object
- #send_histogram(name, measure) ⇒ Object
- #send_sum(name, counter) ⇒ Object
- #send_timer(name, duration) ⇒ Object
- #sum(name, counter) ⇒ Object
- #timer(name, duration) ⇒ Object
Instance Method Details
#gauge(name, val) ⇒ Object
16 17 18 19 |
# File 'lib/gen-rb/bolt_metrics_service.rb', line 16 def gauge(name, val) send_gauge(name, val) recv_gauge() end |
#histogram(name, measure) ⇒ Object
46 47 48 49 |
# File 'lib/gen-rb/bolt_metrics_service.rb', line 46 def histogram(name, measure) send_histogram(name, measure) recv_histogram() end |
#recv_gauge ⇒ Object
25 26 27 28 29 |
# File 'lib/gen-rb/bolt_metrics_service.rb', line 25 def recv_gauge() result = (Gauge_result) raise result.e unless result.e.nil? return end |
#recv_histogram ⇒ Object
55 56 57 58 59 |
# File 'lib/gen-rb/bolt_metrics_service.rb', line 55 def recv_histogram() result = (Histogram_result) raise result.e unless result.e.nil? return end |
#recv_sum ⇒ Object
70 71 72 73 74 |
# File 'lib/gen-rb/bolt_metrics_service.rb', line 70 def recv_sum() result = (Sum_result) raise result.e unless result.e.nil? return end |
#recv_timer ⇒ Object
40 41 42 43 44 |
# File 'lib/gen-rb/bolt_metrics_service.rb', line 40 def recv_timer() result = (Timer_result) raise result.e unless result.e.nil? return end |
#send_gauge(name, val) ⇒ Object
21 22 23 |
# File 'lib/gen-rb/bolt_metrics_service.rb', line 21 def send_gauge(name, val) ('gauge', Gauge_args, :name => name, :val => val) end |
#send_histogram(name, measure) ⇒ Object
51 52 53 |
# File 'lib/gen-rb/bolt_metrics_service.rb', line 51 def send_histogram(name, measure) ('histogram', Histogram_args, :name => name, :measure => measure) end |
#send_sum(name, counter) ⇒ Object
66 67 68 |
# File 'lib/gen-rb/bolt_metrics_service.rb', line 66 def send_sum(name, counter) ('sum', Sum_args, :name => name, :counter => counter) end |
#send_timer(name, duration) ⇒ Object
36 37 38 |
# File 'lib/gen-rb/bolt_metrics_service.rb', line 36 def send_timer(name, duration) ('timer', Timer_args, :name => name, :duration => duration) end |
#sum(name, counter) ⇒ Object
61 62 63 64 |
# File 'lib/gen-rb/bolt_metrics_service.rb', line 61 def sum(name, counter) send_sum(name, counter) recv_sum() end |
#timer(name, duration) ⇒ Object
31 32 33 34 |
# File 'lib/gen-rb/bolt_metrics_service.rb', line 31 def timer(name, duration) send_timer(name, duration) recv_timer() end |