Class: Arkaan::Monitoring::Service

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

Author:

Instance Attribute Summary collapse

Instance Attribute Details

#creatorArkaan::Account

Returns the creator of this service.

Returns:



23
# File 'lib/arkaan/monitoring/service.rb', line 23

belongs_to :creator, class_name: 'Arkaan::Account', optional: true, inverse_of: :services

#keyString

Returns the name of the service, used as a namespace on the Kubernetes side.

Returns:

  • (String)

    the name of the service, used as a namespace on the Kubernetes side.



16
# File 'lib/arkaan/monitoring/service.rb', line 16

field :key, type: String

#pathString

Returns the path the service will be mapped on in the API. This will be used in the Ingress.

Returns:

  • (String)

    the path the service will be mapped on in the API. This will be used in the Ingress.



19
# File 'lib/arkaan/monitoring/service.rb', line 19

field :path, type: String, default: '/'

#routesArray<Arkaan::Monitoring::Route>

Returns the routes associated to this service, accessible from the gateway.

Returns:



26
# File 'lib/arkaan/monitoring/service.rb', line 26

has_many :routes, class_name: 'Arkaan::Monitoring::Route', inverse_of: :service