class EdgeAI::Monitor
 
  - EdgeAI::Monitor
 - EdgeAI::Base
 - ActionController::Base
 - Reference
 - Object
 
Defined in:
controllers/monitor.crConstant Summary
- 
        DETECT_MUTEX = 
Mutex.new - 
        DETECT_SOCKETS = 
Hash(String, Array(HTTP::WebSocket)).new do |hash, key| hash[key] = [] of HTTP::WebSocket end - 
        PARSER_LIST = 
["application/json"] - 
        RESPONDER_LIST = 
["application/json", "application/yaml"] - 
        STREAM_MUTEX = 
Mutex.new - 
        STREAM_PLAYBACK = 
Hash(String, ConfidenceMonitor).new - 
        STREAM_SOCKETS = 
Hash(String, Array(HTTP::WebSocket)).new do |hash, key| hash[key] = [] of HTTP::WebSocket end 
Class Method Summary
- 
        .base_route
        
          
Helper for obtaining base route
 - 
        .stream(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)
        
          
Helper methods for performing redirect_to calls
 - .stream_to_sockets(monitor : ConfidenceMonitor)
 
Instance Method Summary
- 
        #base_route(*args, **options)
        
          
Helper for obtaining base route
 - 
        #base_route(*args, **options, &)
        
          
Helper for obtaining base route
 - #config : Configuration::Pipeline
 - #config? : Configuration::Pipeline | Nil
 - 
        #detect(socket)
        
          
pushes detections found in the video stream in realtime to connected sockets
 - 
        #detect_default(socket)
        
          
pushes detections found in the first video stream in realtime to connected sockets
 - #find_configuration_config(id : String)
 - #id : String
 - #id? : String | Nil
 - 
        #stream(socket)
        
          
pushes the video stream down the websocket
 
Instance methods inherited from class EdgeAI::Base
  
  
    
      bad_media_type(error) : AC::Error::ContentResponse
    bad_media_type, 
    
  
    
      invalid_param(error) : AC::Error::ParameterResponse
    invalid_param, 
    
  
    
      not_found(error) : NamedTuple(error: String | Nil)
    not_found, 
    
  
    
      set_request_id
    set_request_id
    
  
    
    
    
  
    
    
    
    
  
    
    
    
    
  
    
    
    
    
  
    
    
    
    
  
    
    
    
    
  
Class Method Detail
        
        def self.stream(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)
        #
      
      
        Helper methods for performing redirect_to calls
Instance Method Detail
        
        def detect_default(socket)
        #
      
      
        pushes detections found in the first video stream in realtime to connected sockets