Class: COMOClient::Configuration
- Inherits:
-
Object
- Object
- COMOClient::Configuration
- Defined in:
- lib/como_client/configuration.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#instance_name ⇒ Object
Returns the value of attribute instance_name.
-
#job_name ⇒ Object
Returns the value of attribute job_name.
-
#push_interval ⇒ Object
Returns the value of attribute push_interval.
-
#pushgateway_url ⇒ Object
Returns the value of attribute pushgateway_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#enabled ⇒ Object
Returns the value of attribute enabled.
3 4 5 |
# File 'lib/como_client/configuration.rb', line 3 def enabled @enabled end |
#instance_name ⇒ Object
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_name ⇒ Object
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_interval ⇒ Object
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_url ⇒ Object
Returns the value of attribute pushgateway_url.
5 6 7 |
# File 'lib/como_client/configuration.rb', line 5 def pushgateway_url @pushgateway_url end |