Class: Grafana::Client

Inherits:
BaseClient show all
Defined in:
lib/grafana/client.rb

Constant Summary collapse

VERSION =
Grafana::CLIENT_VERSION

Class Attribute Summary collapse

Class Method Summary collapse

Methods inherited from BaseClient

#delete, #get, #initialize, #post

Constructor Details

This class inherits a constructor from Grafana::BaseClient

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



11
12
13
# File 'lib/grafana/client.rb', line 11

def api_key
  @api_key
end

.grafana_urlObject

Returns the value of attribute grafana_url.



11
12
13
# File 'lib/grafana/client.rb', line 11

def grafana_url
  @grafana_url
end

Class Method Details

.config {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



13
14
15
# File 'lib/grafana/client.rb', line 13

def config
  yield self
end