\App\GatewayModule\ModelsDiagnosticsManager

Gateway diagnostics tool

Summary

Methods
Properties
Constants
__construct()
createArchive()
download()
addConfiguration()
addMetadata()
addScheduler()
addDaemonLog()
addDmesg()
addInfo()
addServices()
addSpi()
addUsb()
addControllerLog()
addWebappLog()
addInstalledPackages()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$commandManager
$infoManager
$zipManager
$cacheDir
$confDir
$logDir
N/A

Properties

$commandManager

$commandManager : \App\CoreModule\Models\CommandManager

Type

normal — Command manager

$infoManager

$infoManager : \App\GatewayModule\Models\InfoManager

Type

normal — Gateway info manager

$zipManager

$zipManager : \App\CoreModule\Models\ZipArchiveManager

Type

normal — ZIP archive manager

$cacheDir

$cacheDir : string

Type

normal — Path to a directory with IQRF Gateway Daemon's cache

$confDir

$confDir : string

Type

normal — Path to a directory with IQRF Gateway Daemon's configuration

$logDir

$logDir : string

Type

normal — Path to a directory with log files of IQRF Gateway Daemon

Methods

__construct()

__construct(string  $confDir, string  $logDir, \App\CoreModule\Models\CommandManager  $commandManager, \App\GatewayModule\Models\InfoManager  $infoManager, \App\ConfigModule\Models\MainManager  $mainManager) : mixed

Constructor

Parameters

string $confDir

Path to a directory with IQRF Gateway Daemon's configuration

string $logDir

Path to a directory with log files of IQRF Gateway Daemon

\App\CoreModule\Models\CommandManager $commandManager

Command manager

\App\GatewayModule\Models\InfoManager $infoManager

Gateway Info manager

\App\ConfigModule\Models\MainManager $mainManager

Main configuration manager

Returns

mixed

createArchive()

createArchive() : string

Create an archive with diagnostics data

Returns

string —

Path to archive with diagnostics data

download()

download() : \Nette\Application\Responses\FileResponse

Downloads a diagnostic data

Throws

\Nette\Application\BadRequestException
\Nette\Utils\JsonException

Returns

\Nette\Application\Responses\FileResponse —

HTTP response with the diagnostic data

addConfiguration()

addConfiguration() : void

Adds a configuration of IQRF Gateway Daemon

addMetadata()

addMetadata() : void

Adds IQRF Gateway Daemon's metadata

addScheduler()

addScheduler() : void

Adds a configuration of IQRF Gateway Daemon's scheduler

addDaemonLog()

addDaemonLog() : void

Adds logs of IQRF Gateway Daemon

addDmesg()

addDmesg() : void

Adds information from dmesg command

addInfo()

addInfo() : void

Adds basic information about the gateway

addServices()

addServices() : void

Adds information about services

addSpi()

addSpi() : void

Adds information about available SPI interfaces

addUsb()

addUsb() : void

Adds information from lsusb about USB gateways and programmers

addControllerLog()

addControllerLog() : void

Adds logs of IQRF Gateway Controller

addWebappLog()

addWebappLog() : void

Adds logs of IQRF Gateway Webapp

addInstalledPackages()

addInstalledPackages() : void

Adds list of installed packages