Class: Arkaan::Monitoring::Instance
- Inherits:
-
Object
- Object
- Arkaan::Monitoring::Instance
- Includes:
- Concerns::Activable, Concerns::Typable, 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
-
#actions ⇒ Arkaan::Monitoring::Action
The actions that has been performed on the service.
-
#data ⇒ Hash
The additional datas for this instance (for example for an Heroku instance it’s all the data provided by the API).
-
#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
#actions ⇒ Arkaan::Monitoring::Action
Returns the actions that has been performed on the service.
28 |
# File 'lib/arkaan/monitoring/instance.rb', line 28 :actions, class_name: 'Arkaan::Monitoring::Action', inverse_of: :instance |
#data ⇒ Hash
Returns the additional datas for this instance (for example for an Heroku instance it’s all the data provided by the API).
19 |
# File 'lib/arkaan/monitoring/instance.rb', line 19 field :data, type: Hash, default: {} |
#running ⇒ Boolean
Returns the running status of the instance, indicating if it can be used or not.
16 |
# File 'lib/arkaan/monitoring/instance.rb', line 16 field :running, type: Boolean, default: false |
#service ⇒ Arkaan::Monitoring::Service (readonly)
Returns the service this instance is linked to.
25 |
# File 'lib/arkaan/monitoring/instance.rb', line 25 :service, class_name: 'Arkaan::Monitoring::Service', inverse_of: :instances |
#url ⇒ String
Returns the URL of the instance, where the requests will be issued.
13 |
# File 'lib/arkaan/monitoring/instance.rb', line 13 field :url, type: String |