\SwPollStats
Devices polling stats module
Synopsis
class SwPollStats
{
- // constants
- const URL_ME = '?module=swpollstats';
- const URL_SWITCH_PROFILE = '?module=switches&edit=';
- const URL_SNMP_QUERY = '?module=switchpoller&switchid=';
- const ROUTE_HORDE = 'showhorde';
- // members
- protected $ubillingConfig = '';
- protected $messages = '';
- protected array $eventIcons = ;
- protected string $logPath = 'exports/swpolldata.log';
- // methods
- public void __construct()
- protected void setEventIcons()
- public void render()
- protected string renderControls()
- protected string renderPollLogTable()
- protected string replaceEventTypeWithIcon()
- protected string renderHordeStatsTable()
- protected array getAllSwitchesByIp()
Constants
| Name | Value |
|---|---|
| URL_ME | '?module=swpollstats' |
| URL_SWITCH_PROFILE | '?module=switches&edit=' |
| URL_SNMP_QUERY | '?module=switchpoller&switchid=' |
| ROUTE_HORDE | 'showhorde' |
Members
protected
Methods
protected
- getAllSwitchesByIp() — Returns switches data map by IP address
- renderControls() — Renders top module controls
- renderHordeStatsTable() — Renders horde polling stats table
- renderPollLogTable() — Renders polling log as table
- replaceEventTypeWithIcon() — Replaces event type with icon in event text
- setEventIcons() — Sets event icons
public
- __construct()
- render() — Runs module workflow