class

EdgeAI::Configuration

Inherits EdgeAI::Base < ActionController::Base < ActionController::Responders < ActionController::Route::Builder < Reference < Object

methods for viewing and updating the configuration of the device

Constants

PARSER_LIST = ["application/json"]

methods for viewing and updating the configuration of the device

PIPELINE_MUTEX = Mutex.new
PIPELINES = begin if File.exists?(PIPELINE_CONFIG) (NamedTuple(pipelines: Hash(String, Pipeline)).from_yaml(File.read(PIPELINE_CONFIG)))[:pipelines] else {} of String => Pipeline end rescue error puts("Error reading #{PIPELINE_CONFIG}: #{error.inspect_with_backtrace}") {} of String => Pipeline end
RESPONDER_LIST = ["application/json", "application/yaml"]

methods for viewing and updating the configuration of the device

Class methods

base_route

Helper for obtaining base route

index(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 methods

base_route(*args, **options)

Helper for obtaining base route

base_route(*args, **options, &)

Helper for obtaining base route

clear_all

clear the current configurations

Source
create(pipeline : Pipeline) : Pipeline

add a new video pipeline

Source
destroy(id : String) : Nil

remove a pipeline from the device

Source
index

view the current configuration

Source
show(id : String) : Pipeline

view the current configuration

Source
update(id : String, pipeline : Pipeline) : Pipeline

replace the configuration with new configuration

Source

Nested types