Class: Virtuaservices::Monitoring::Route

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps, Concerns::Activable, Concerns::Premiumable
Defined in:
lib/virtuaservices/monitoring/route.rb

Overview

A route is an endpoint accessible in a service. Each route has to have an associated endpoint in the deployed instances.

Instance Attribute Summary collapse

Instance Attribute Details

#authenticatedBoolean

Returns if true, the session_id is needed for this route, if false it is not.

Returns:

  • (Boolean)

    if true, the session_id is needed for this route, if false it is not.



19
# File 'lib/virtuaservices/monitoring/route.rb', line 19

field :authenticated, type: Boolean, default: true

#groupsArray<Virtuaservices::Permissions::Group>

Returns the groups having permission to access this route.

Returns:



27
# File 'lib/virtuaservices/monitoring/route.rb', line 27

has_and_belongs_to_many :groups, class_name: 'Virtuaservices::Permissions::Group', inverse_of: :groups

#pathString

Returns the path (URI) of the route in the service?.

Returns:

  • (String)

    the path (URI) of the route in the service?



13
# File 'lib/virtuaservices/monitoring/route.rb', line 13

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

#serviceVirtuaservices::Monitoring::Service

Returns the service in which this route is declared.

Returns:



23
# File 'lib/virtuaservices/monitoring/route.rb', line 23

belongs_to :service, class_name: 'Virtuaservices::Monitoring::Service', inverse_of: :routes

#verbString

Returns the verb (HTTP method) of this route in the service.

Returns:

  • (String)

    the verb (HTTP method) of this route in the service.



16
# File 'lib/virtuaservices/monitoring/route.rb', line 16

field :verb, type: String, default: 'get'