Module: CortexClient
- Defined in:
- lib/cortex_client.rb,
lib/cortex_client/version.rb,
lib/cortex_client/exception.rb,
lib/cortex_client/http/agent.rb,
lib/cortex_client/http/request.rb,
lib/cortex_client/configuration.rb,
lib/cortex_client/http/response.rb,
lib/cortex_client/metric/metric.rb
Defined Under Namespace
Modules: Exception, Http
Classes: Configuration, Metric
Constant Summary
collapse
- VERSION =
'0.1.0'.freeze
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
33
34
35
|
# File 'lib/cortex_client/configuration.rb', line 33
def self.configuration
@configuration ||= Configuration.new
end
|
37
38
39
40
|
# File 'lib/cortex_client/configuration.rb', line 37
def self.configure
yield(configuration)
raise Exception::Configuration unless configuration.valid?
end
|