class EdgeAI::Configuration
- EdgeAI::Configuration
- EdgeAI::Base
- ActionController::Base
- Reference
- Object
Overview
methods for viewing and updating the configuration of the device
Defined in:
controllers/configuration.crConstant Summary
-
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 Method Summary
-
.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 Method Summary
-
#base_route(*args, **options)
Helper for obtaining base route
-
#base_route(*args, **options, &)
Helper for obtaining base route
-
#clear_all : Array(String)
clear the current configurations
-
#create(pipeline : Pipeline) : Pipeline
add a new video pipeline
-
#destroy(id : String) : Nil
remove a pipeline from the device
-
#index : Array(Pipeline)
view the current configuration
-
#show(id : String) : Pipeline
view the current configuration
-
#update(id : String, pipeline : Pipeline) : Pipeline
replace the configuration with new configuration
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.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 Method Detail
replace the configuration with new configuration