Module: CaliperApi

Defined in:
lib/caliper_api/http.rb

Defined Under Namespace

Classes: Poster

Class Method Summary collapse

Class Method Details

.create_error(error_json) ⇒ Object



55
56
57
# File 'lib/caliper_api/http.rb', line 55

def self.create_error(error_json)
  Poster.send("/api/errors", error_json)
end

.create_trace(tracer_json) ⇒ Object



51
52
53
# File 'lib/caliper_api/http.rb', line 51

def self.create_trace(tracer_json)
  Poster.send("/api/traces", tracer_json)
end

.test_postObject



47
48
49
# File 'lib/caliper_api/http.rb', line 47

def self.test_post
  Poster.send("/api/test", "")
end

.update_routes(routes_json) ⇒ Object



59
60
61
# File 'lib/caliper_api/http.rb', line 59

def self.update_routes(routes_json)
  Poster.send("/api/routes", routes_json)
end