\FireGento_MageMonitoring_Model_WatchDog_Error
Class FireGento_MageMonitoring_Model_WatchDog_Error
- Author: FireGento Team <team@firegento.com>
Synopsis
- // Inherited constants from FireGento_MageMonitoring_Model_Widget_Watchdog
- const CONFIG_WATCHDOG_ACTIVE = 'cron/enabled';
- const CONFIG_WATCHDOG_BARKON = 'cron/barkon';
- const CONFIG_WATCHDOG_CRON = 'cron/schedule';
- const CONFIG_WATCHDOG_MAILTO = 'cron/mail_to';
- const CONFIG_DOGS_DISABLED = 'dogs/disabled';
- const CONFIG_DOGS_MAILTO = 'dogs/mail_to';
- const DEFAULT_MAILTO = 'general';
- const DEFAULT_DISABLED = 1;
- // Inherited constants from FireGento_MageMonitoring_Model_Widget_AbstractGeneric
- const CONFIG_WIDGET_TITLE = 'title';
- // Inherited constants from FireGento_MageMonitoring_Model_Widget_Abstract
- const CONFIG_START_COLLAPSED = 'collapsed';
- const CONFIG_DISPLAY_PRIO = 'display_prio';
- const CONFIG_PRE_KEY = 'widgets';
- const CALLBACK = 'cb:';
- // members
- protected string $_defWatchdogCron = '* * * * *';
- // Inherited members from FireGento_MageMonitoring_Model_Widget_Watchdog
- protected integer $_defWatchdogActive;
- protected string $_defWatchdogBarkon;
- protected string $_defWatchdogCron;
- protected $_defWatchdogMailto;
- protected boolean $_defaultConfig;
- // Inherited members from FireGento_MageMonitoring_Model_Widget_AbstractGeneric
- protected string $_defWidgetTitle;
- // Inherited members from FireGento_MageMonitoring_Model_Widget_Abstract
- protected integer $_defStartCollapsed;
- protected integer $_defDisplayPrio;
- protected $_dbConfigKey;
- protected $_tabId;
- protected array $_output;
- protected array $_config;
- protected array $_report;
- protected $_renderer;
- // methods
- public void getDogName()
- public void getVersion()
- public void watch()
- // Inherited methods from FireGento_MageMonitoring_Model_Widget_Watchdog
- public array initConfig()
- public void getDogId()
- public void getDogName()
- public string getSchedule()
- public string onDuty()
- // Inherited methods from FireGento_MageMonitoring_Model_Widget_AbstractGeneric
- public void initConfig()
- public string getName()
- protected void _getNodeName()
- // Inherited methods from FireGento_MageMonitoring_Model_Widget_Abstract
- public array getOutput()
- public FireGento_MageMonitoring_Block_Widget_Multi newMultiBlock()
- public string getTabId()
- public string getConfigId()
- public string getId()
- protected $this _renderConfigChecks()
- protected array|SimpleXMLElement _getConfigValues()
- protected abstract string _getNodeName()
- protected $this _checkConfigValue()
- public FireGento_MageMonitoring_Block_Widget_Multi_Renderer_Abstract getRenderer()
- public void setRenderer()
- protected FireGento_MageMonitoring_Helper_Data _getHelper()
- protected array _getRowConfig()
- protected $this _renderMoreChecks()
- public void isActive()
- public void displayCollapsed()
- public array|bool getConfig()
- public void initConfig()
- public FireGento_MageMonitoring_Model_Widget addConfigHeader()
- public $this addConfig()
- public void getDisplayPrio()
- public FireGento_MageMonitoring_Block_Widget_Monitoring newMonitoringBlock()
- public FireGento_MageMonitoring_Model_Widget_Abstract dump()
- public array loadConfig()
- public FireGento_MageMonitoring_Helper_Data getHelper()
- public $this saveConfig()
- public $this deleteConfig()
- public $this addReportRow()
- public string getVersion()
- protected bool _checkVersions()
- public string getSupportedMagentoVersions()
Hierarchy
Tasks
Line | Task |
---|---|
609 | do proper merge, things will go probably south for code below. |
Constants
Name | Value |
---|---|
CONFIG_WATCHDOG_ACTIVE | 'cron/enabled' |
CONFIG_WATCHDOG_BARKON | 'cron/barkon' |
CONFIG_WATCHDOG_CRON | 'cron/schedule' |
CONFIG_WATCHDOG_MAILTO | 'cron/mail_to' |
CONFIG_DOGS_DISABLED | 'dogs/disabled' |
CONFIG_DOGS_MAILTO | 'dogs/mail_to' |
DEFAULT_MAILTO | 'general' |
DEFAULT_DISABLED | 1 |
CONFIG_WIDGET_TITLE | 'title' |
CONFIG_START_COLLAPSED | 'collapsed' |
CONFIG_DISPLAY_PRIO | 'display_prio' |
CONFIG_PRE_KEY | 'widgets' |
CALLBACK | 'cb:' |
Members
protected
- $_config
- $_dbConfigKey
- $_defDisplayPrio
- $_defStartCollapsed
- $_defWatchdogActive
- $_defWatchdogBarkon
- $_defWatchdogCron
- $_defWatchdogCron
- $_defWatchdogMailto
- $_defWidgetTitle
- $_defaultConfig
- $_output
-
$_renderer
@var FireGento_MageMonitoring_Block_Widget_Multi_Renderer_Abstract $_renderer - $_report
- $_tabId
Methods
public
- getDogName() — Returns dog name
- getVersion() — Returns version
- watch() — Do watch
Inherited from FireGento_MageMonitoring_Model_Widget_Watchdog
public
- getDogId() — Get Dog Id
- getDogName() — Get Dog Name
- getSchedule() — Get Schedule
- initConfig() — Init Config
- onDuty() — Is On Duty
Inherited from FireGento_MageMonitoring_Model_Widget_AbstractGeneric
protected
- _getNodeName() — Returns node name
public
- getName() — Get Name
- initConfig() — Init Config
Inherited from FireGento_MageMonitoring_Model_Widget_Abstract
protected
- _checkConfigValue() — Check a given configuration value concerning an optional recommendation
- _checkVersions() — Check Versions
- _getConfigValues() — Return configuration params from config.xml
- _getHelper() — Get an instance of the module's data helper.
- _getNodeName() — Returns the name of the widgets xml node
- _getRowConfig() — Get a row configuration.
- _renderConfigChecks() — Render configuration checks defined in config.xml
- _renderMoreChecks() — Render additional checks.
public
- addConfig() — Add Configuration
- addConfigHeader() — Add empty or header row to config modal output.
- addReportRow() — Adds another row to watch dog report output.
- deleteConfig() — Delete Config
- displayCollapsed() — Returns true if widget should start collapsed, speeds up loading times as the widget won't render it's content on page load.
- dump() — Adds $string to output.
- getConfig() — Get Config
- getConfigId() — Returns db config key, returns last 2 parts of classname with appended random string as default.
- getDisplayPrio() — Returns true if widget should start collapsed, speeds up loading times as the widget won't render it's content on page load.
- getHelper() — Get Helper
- getId() — Returns unique widget id. You really don't want to override is. ;)
- getOutput() — Used to render the widget, returns array of classes that have a ->toHtml() method.
- getRenderer() — Get the renderer.
- getSupportedMagentoVersions() — Get Supported Magento Versions
- getTabId() — Get Tab Id
- getVersion() — Get Version
- initConfig() — Returns array with default config data for this widget or false if not implemented.
- isActive() — Returns true if this widget is active.
- loadConfig() — Load Config
- newMonitoringBlock() — New Monitoring Block
- newMultiBlock() — New Multi Block
- saveConfig() — Save config in $post to core_config_data, can handle raw $_POST or widget config arrays if $postOnly is true.
- setRenderer() — Set the renderer.
History
-
2015-05-15T11:06:15+02:00 (commit #1b13d79)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Rename Firegento to case sensitive FireGento
-
2015-05-13T23:46:13+02:00 (commit #6d2184c)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Replace Hackathon namespace to Firegento into all code files
-
2015-05-13T23:34:26+02:00 (commit #3cf482b)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Replace Hackathon namespace to Firegento for the main code folder
-
2015-05-13T23:20:49+02:00 (commit #2534802)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Move source code of the extension to the src folder and set modman with firegento namespace
-
2015-05-10T11:09:54+02:00 (commit #2c495ad)
Author: Daniel Zohm (daniel.zohm@aoe.com) / Commiter: Daniel Zohm (daniel.zohm@aoe.com)
Code standard fixings
-
2015-05-09T18:55:34+02:00 (commit #abae8a9)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Coding Standards for Watchdogs and some other classes
-
2015-05-09T18:26:42+02:00 (commit #aea2401)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Watchdog Code: cleanup/format/Coding Standard, create a watchdog abstract class and extends the classes Test and Error with it, decouple anything related to watchdog from the widget abstract and move to a own Watchdog Widget class and extends Log/Abstract and existing Watchdogs with this new Watchdog widget (INCOMPATIBILITY with other third party widget may happens)
-
2014-03-02T02:45:54+01:00 (commit #b8c70aa)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Merge branch 'develop' of https://github.com/magento-hackathon/Hackathon_MageMonitoring into develop Merge HealthCheck Project Conflicts: app/code/community/Hackathon/MageMonitoring/Block/System/Overview/Read/Tabs.php app/code/community/Hackathon/MageMonitoring/Model/Widget/CacheStat/Abstract.php
-
2014-02-03T20:51:26+01:00 (commit #5476710)
Author: Erik Dannenberg (erik.dannenberg@bbe-consulting.de) / Commiter: Erik Dannenberg (erik.dannenberg@bbe-consulting.de)
Added block and template for easy chart usage.
-
2014-02-01T19:59:47+01:00 (commit #4bac0ba)
Author: Erik Dannenberg (erik.dannenberg@bbe-consulting.de) / Commiter: Erik Dannenberg (erik.dannenberg@bbe-consulting.de)
Added hit/miss ratio, display memory values in megabytes.
-
2014-02-01T16:44:08+01:00 (commit #724fe61)
Author: Erik Dannenberg (erik.dannenberg@bbe-consulting.de) / Commiter: Erik Dannenberg (erik.dannenberg@bbe-consulting.de)
Implemented acpu, memcache, zendopcache and basic frontend display.