Class: Concord::Thrift::BoltMetricsService::Client

Inherits:
Object
  • Object
show all
Includes:
Thrift::Client
Defined in:
lib/gen-rb/bolt_metrics_service.rb

Instance Method Summary collapse

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_gaugeObject



25
26
27
28
29
# File 'lib/gen-rb/bolt_metrics_service.rb', line 25

def recv_gauge()
  result = receive_message(Gauge_result)
  raise result.e unless result.e.nil?
  return
end

#recv_histogramObject



55
56
57
58
59
# File 'lib/gen-rb/bolt_metrics_service.rb', line 55

def recv_histogram()
  result = receive_message(Histogram_result)
  raise result.e unless result.e.nil?
  return
end

#recv_sumObject



70
71
72
73
74
# File 'lib/gen-rb/bolt_metrics_service.rb', line 70

def recv_sum()
  result = receive_message(Sum_result)
  raise result.e unless result.e.nil?
  return
end

#recv_timerObject



40
41
42
43
44
# File 'lib/gen-rb/bolt_metrics_service.rb', line 40

def recv_timer()
  result = receive_message(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)
  send_message('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)
  send_message('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)
  send_message('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)
  send_message('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