Class: COMOClient::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/como_client/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



9
10
11
12
13
14
15
# File 'lib/como_client/configuration.rb', line 9

def initialize
  @enabled = false
  @push_interval = 20
  @pushgateway_url = "https://example.com"
  @job_name = "prometheus-metrics"
  @instance_name = "prometheus-metrics#0"
end

Instance Attribute Details

#enabledObject

Returns the value of attribute enabled.



3
4
5
# File 'lib/como_client/configuration.rb', line 3

def enabled
  @enabled
end

#instance_nameObject

Returns the value of attribute instance_name.



7
8
9
# File 'lib/como_client/configuration.rb', line 7

def instance_name
  @instance_name
end

#job_nameObject

Returns the value of attribute job_name.



6
7
8
# File 'lib/como_client/configuration.rb', line 6

def job_name
  @job_name
end

#push_intervalObject

Returns the value of attribute push_interval.



4
5
6
# File 'lib/como_client/configuration.rb', line 4

def push_interval
  @push_interval
end

#pushgateway_urlObject

Returns the value of attribute pushgateway_url.



5
6
7
# File 'lib/como_client/configuration.rb', line 5

def pushgateway_url
  @pushgateway_url
end