Class: Virtuaservices::Monitoring::Websocket

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

Overview

The websocket is a particular kind of service, just like the gateway. It always has the same signature. A websocket document is a particular instance of websocket, located on a server and answering to a URL.

Author:

Instance Attribute Summary collapse

Instance Attribute Details

#creatorVirtuaservices::Account

Returns the account that created this web socket instance in the database.

Returns:



18
# File 'lib/virtuaservices/monitoring/websocket.rb', line 18

belongs_to :creator, class_name: 'Virtuaservices::Account', inverse_of: :web_sockets, optional: true

#urlString

Returns the URL of the websocket to be contacted on.

Returns:

  • (String)

    the URL of the websocket to be contacted on.



14
# File 'lib/virtuaservices/monitoring/websocket.rb', line 14

field :url, type: String