Class: Arkaan::Monitoring::Instance
- Inherits:
-
Object
- Object
- Arkaan::Monitoring::Instance
- Includes:
- Concerns::Activable, Mongoid::Document, Mongoid::Timestamps
- Defined in:
- lib/arkaan/monitoring/instance.rb
Overview
An instance is one of the services, deployed on one server. A service may have many instances to balance the load between them all.
Instance Attribute Summary collapse
-
#running ⇒ Boolean
The running status of the instance, indicating if it can be used or not.
-
#service ⇒ Arkaan::Monitoring::Service
readonly
The service this instance is linked to.
-
#url ⇒ String
The URL of the instance, where the requests will be issued.
Instance Attribute Details
#running ⇒ Boolean
Returns the running status of the instance, indicating if it can be used or not.
15 |
# File 'lib/arkaan/monitoring/instance.rb', line 15 field :running, type: Boolean, default: false |
#service ⇒ Arkaan::Monitoring::Service (readonly)
Returns the service this instance is linked to.
21 |
# File 'lib/arkaan/monitoring/instance.rb', line 21 :service, class_name: 'Arkaan::Monitoring::Service', inverse_of: :instances |
#url ⇒ String
Returns the URL of the instance, where the requests will be issued.
12 |
# File 'lib/arkaan/monitoring/instance.rb', line 12 field :url, type: String |