Class: Arkaan::Monitoring::Service
- Inherits:
-
Object
- Object
- Arkaan::Monitoring::Service
- Includes:
- Concerns::Activable, Concerns::Diagnosticable, Concerns::Premiumable, Mongoid::Document, Mongoid::Timestamps
- Defined in:
- lib/arkaan/monitoring/service.rb
Overview
A service is the representation of one of the applications composing the API.
Instance Attribute Summary collapse
-
#creator ⇒ Arkaan::Account
The creator of this service.
-
#instances ⇒ Array<Arkaan::Monitoring::Instance>
The instances of this service currently deployed.
-
#key ⇒ String
The name, or title of the service, optionally given to identify it more easily.
-
#path ⇒ String
The path the service will be mapped on in the API.
-
#routes ⇒ Array<Arkaan::Monitoring::Route>
The routes associated to this service, accessible from the gateway.
Instance Attribute Details
#creator ⇒ Arkaan::Account
Returns the creator of this service.
21 |
# File 'lib/arkaan/monitoring/service.rb', line 21 belongs_to :creator, class_name: 'Arkaan::Account', optional: true, inverse_of: :services |
#instances ⇒ Array<Arkaan::Monitoring::Instance>
Returns the instances of this service currently deployed.
24 |
# File 'lib/arkaan/monitoring/service.rb', line 24 :instances, class_name: 'Arkaan::Monitoring::Instance', inverse_of: :service |
#key ⇒ String
Returns the name, or title of the service, optionally given to identify it more easily.
14 |
# File 'lib/arkaan/monitoring/service.rb', line 14 field :key, type: String |
#path ⇒ String
Returns the path the service will be mapped on in the API.
17 |
# File 'lib/arkaan/monitoring/service.rb', line 17 field :path, type: String, default: '/' |
#routes ⇒ Array<Arkaan::Monitoring::Route>
Returns the routes associated to this service, accessible from the gateway.
27 |
# File 'lib/arkaan/monitoring/service.rb', line 27 has_many :routes, class_name: 'Arkaan::Monitoring::Route', inverse_of: :service |