Class: Arkaan::Monitoring::Instance

Inherits:
Object
  • Object
show all
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.

Author:

Instance Attribute Summary collapse

Instance Attribute Details

#runningBoolean

Returns the running status of the instance, indicating if it can be used or not.

Returns:

  • (Boolean)

    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

#serviceArkaan::Monitoring::Service (readonly)

Returns the service this instance is linked to.

Returns:



21
# File 'lib/arkaan/monitoring/instance.rb', line 21

embedded_in :service, class_name: 'Arkaan::Monitoring::Service', inverse_of: :instances

#urlString

Returns the URL of the instance, where the requests will be issued.

Returns:

  • (String)

    the URL of the instance, where the requests will be issued.



12
# File 'lib/arkaan/monitoring/instance.rb', line 12

field :url, type: String