Class: Cloudscale::Constants::InfluxDb

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudscale/monitor/model/constants/influxdb_store.rb

Constant Summary collapse

@@INFLUXDB_STORE =
"#{File.dirname(__FILE__)}/../../../store/agent/influxdb.store"

Class Method Summary collapse

Class Method Details

.loadObject



14
15
16
17
18
19
20
# File 'lib/cloudscale/monitor/model/constants/influxdb_store.rb', line 14

def self.load
  begin
    YAML.load(File.read(@@INFLUXDB_STORE))
  rescue
    return nil
  end
end