\App\GatewayModule\ModelsInfoManager

Tool for getting information about this gateway

Summary

Methods
Properties
Constants
__construct()
getBoard()
getId()
getCoordinatorInfo()
getDiskUsages()
convertSizes()
getMemoryUsage()
getSwapUsage()
getPixlaToken()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\App\GatewayModule\Models\CommandManager  commandManager, \App\GatewayModule\Models\EnumerationManager  enumerationManager) : 

Constructor

Parameters

\App\GatewayModule\Models\CommandManager commandManager

Command manager

\App\GatewayModule\Models\EnumerationManager enumerationManager

IQMESH Enumeration manager

Returns

getBoard()

getBoard() : 

Gets board's vendor, name and version

Returns

Board's vendor, name and version

getId()

getId() : string|null

Gets gateway ID

Returns

string|null —

Gateway ID

getCoordinatorInfo()

getCoordinatorInfo() : mixed||string|int

Gets information about the Coordinator

Throws

\App\GatewayModule\Models\DpaErrorException
\App\GatewayModule\Models\EmptyResponseException
\App\GatewayModule\Models\JsonException
\App\GatewayModule\Models\UserErrorException

Returns

mixed||string|int —

Information about the Coordinator

getDiskUsages()

getDiskUsages() : string[]||string|int

Gets disk usages

Returns

string[]||string|int —

Disk usages

convertSizes()

convertSizes(  bytes,   precision = 2) : 

Converts bytes to human readable sizes

Parameters

bytes

Bytes to convert

precision

Conversion precision

Returns

Human readable size

getMemoryUsage()

getMemoryUsage() : string||string|int

Gets a memory usage

Returns

string||string|int —

Memory usage

getSwapUsage()

getSwapUsage() : string[]|null

Gets a swap usage

Returns

string[]|null —

Swap usage

getPixlaToken()

getPixlaToken() : string|null

Gets PIXLA token

Returns

string|null —

PIXLA token