Class: Arkaan::Monitoring::Instance
- Inherits:
-
Object
- Object
- Arkaan::Monitoring::Instance
- Includes:
- Concerns::Activable, Concerns::Enumerable, 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.
-
#type ⇒ Symbol
The type of the instance, determining its way of being deployed, restarted, etc.
-
#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.
31 |
# File 'lib/arkaan/monitoring/instance.rb', line 31 :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).
22 |
# File 'lib/arkaan/monitoring/instance.rb', line 22 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.
28 |
# File 'lib/arkaan/monitoring/instance.rb', line 28 :service, class_name: 'Arkaan::Monitoring::Service', inverse_of: :instances |
#type ⇒ Symbol
Returns the type of the instance, determining its way of being deployed, restarted, etc.
19 |
# File 'lib/arkaan/monitoring/instance.rb', line 19 enum_field :type, [:heroku, :local], default: :heroku |
#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 |