heartbeat-extension-for-magento - Version 0.0.3

Version Notes

Removed some deprecated tests. Improved the Catalog test.

Download this release

Release Info

Developer Gorilla Team
Extension heartbeat-extension-for-magento
Version 0.0.3
Comparing to
See all releases


Code changes from version 0.0.2 to 0.0.3

app/code/local/Gorilla/Heartbeat/Model/Tests/Catalog.php CHANGED
@@ -22,7 +22,9 @@ class Gorilla_Heartbeat_Model_Tests_Catalog
22
  */
23
  public function isPassed()
24
  {
25
- if (is_int(Mage::getModel('catalog/product')->getCollection()->count())) {
 
 
26
  return true;
27
  }
28
 
22
  */
23
  public function isPassed()
24
  {
25
+ $collection = Mage::getModel('catalog/product')->getCollection();
26
+ $collection->getSelect()->limit(1);
27
+ if (is_int($collection->count())) {
28
  return true;
29
  }
30
 
app/code/local/Gorilla/Heartbeat/Model/Tests/Database.php CHANGED
@@ -13,7 +13,8 @@ class Gorilla_Heartbeat_Model_Tests_Database
13
  */
14
  public function isEnabled()
15
  {
16
- return true;
 
17
  }
18
 
19
  /**
13
  */
14
  public function isEnabled()
15
  {
16
+ return false;
17
+ /* this test is deprecated */
18
  }
19
 
20
  /**
app/code/local/Gorilla/Heartbeat/Model/Tests/Flattable.php CHANGED
@@ -13,6 +13,9 @@ class Gorilla_Heartbeat_Model_Tests_Flattable
13
  */
14
  public function isEnabled()
15
  {
 
 
 
16
  /* if flat catalog is active */
17
  if (Mage::getStoreConfig('catalog/frontend/flat_catalog_product')) {
18
  return true;
13
  */
14
  public function isEnabled()
15
  {
16
+ return false;
17
+ /* this test is deprecated */
18
+
19
  /* if flat catalog is active */
20
  if (Mage::getStoreConfig('catalog/frontend/flat_catalog_product')) {
21
  return true;
app/code/local/Gorilla/Heartbeat/Model/Tests/Index.php CHANGED
@@ -13,7 +13,8 @@ class Gorilla_Heartbeat_Model_Tests_Index
13
  */
14
  public function isEnabled()
15
  {
16
- return true;
 
17
  }
18
 
19
  /**
13
  */
14
  public function isEnabled()
15
  {
16
+ return false;
17
+ /* this test is deprecated */
18
  }
19
 
20
  /**
app/code/local/Gorilla/Heartbeat/Model/Tests/Log.php CHANGED
@@ -14,6 +14,7 @@ class Gorilla_Heartbeat_Model_Tests_Log
14
  public function isEnabled()
15
  {
16
  return false;
 
17
  }
18
 
19
  /**
14
  public function isEnabled()
15
  {
16
  return false;
17
+ /* this test is deprecated */
18
  }
19
 
20
  /**
package.xml CHANGED
@@ -1,21 +1,21 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>heartbeat-extension-for-magento</name>
4
- <version>0.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://instore.gorillagroup.com/license-agreement">Gorilla License</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>The HeartBeat module is designed to provide in-depth monitoring for your Magento site. There are two ways to monitor the status of your site &#x2013; via an XML report or through Pingdom.</summary>
10
- <description>he HeartBeat module is designed to provide in-depth monitoring for your Magento site. There are two ways to monitor the status of your site &#x2013; via an XML report or through Pingdom.&#xD;
11
- Pingdom is monitoring service that tracks all website &amp; server vitals in one convenient monitoring platform. It helps you spot performance trends, share data with others, and helps with issue resolution. Pingdom also sends users real-time updates via email, SMS (texts), Twitter, or mobile notification via iOS or Android devices.&#xD;
12
  &#xD;
13
  The HeartBeat module monitors seven components that are vital for site functionality and performance of any Magento website. These tests include: API availability, database, flat table, logs, catalog, file system, and indexes.</description>
14
- <notes>Added logging functionality</notes>
15
  <authors><author><name>Gorilla Team</name><user>briangrady</user><email>grady@gorillagroup.com</email></author></authors>
16
- <date>2012-06-21</date>
17
- <time>09:39:39</time>
18
- <contents><target name="magelocal"><dir name="Gorilla"><dir name="Heartbeat"><dir name="Helper"><file name="Data.php" hash="e90a9d9d93dcbed32c7ab6b50ffceb03"/></dir><dir name="Model"><dir name="Tests"><file name="Api.php" hash="ed7271827fe330cb8ba0b72a5c2ef3a6"/><file name="Catalog.php" hash="19864f6e40fce8e51a1abf9815880e86"/><file name="Database.php" hash="640312670b8cea85fa0ab7f1c691022d"/><file name="Filesystem.php" hash="06f14b1c62a9f0ef8209c5b42d7a8a60"/><file name="Flattable.php" hash="92b1061ffbf7f89316def2ca704a74cc"/><file name="Index.php" hash="5685419430c3f12c4d1941614e5abfb7"/><file name="Log.php" hash="3e009825e4c618c38f8cf4cfeede531d"/></dir><file name="TestsCollector.php" hash="618e0592a30ecbdbf377ea9d3e97ba45"/><file name="TestsInterface.php" hash="5ae94e08822da721b45a9b1546a2a4b5"/></dir><dir name="controllers"><file name="IndexController.php" hash="1616d51d85d43a974ff0fdd57fa1b3cb"/></dir><dir name="etc"><file name="adminhtml.xml" hash="818551d3d7ba1962d837eff1f85f0203"/><file name="config.xml" hash="3705efcb09a4c46a0c241c9e532d16a9"/><file name="system.xml" hash="1024c468f92ce8e236e1084b73712d3a"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Gorilla_Heartbeat.xml" hash="73424503c8a3a95a747570ac3e05b4cb"/></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.0.0</min><max>5.4.3</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.6.0</min><max>1.7.0</max></package></required></dependencies>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>heartbeat-extension-for-magento</name>
4
+ <version>0.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://instore.gorillagroup.com/license-agreement">Gorilla License</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>The HeartBeat module is designed to provide in-depth monitoring for your Magento site. There are two ways to monitor the status of your site &#x2013; via an XML report or through Pingdom.</summary>
10
+ <description>The HeartBeat module is designed to provide in-depth monitoring for your Magento site. There are two ways to monitor the status of your site &#x2013; via an XML report or through Pingdom.&#xD;
11
+ Pingdom is monitoring service that tracks all website &amp;amp; server vitals in one convenient monitoring platform. It helps you spot performance trends, share data with others, and helps with issue resolution. Pingdom also sends users real-time updates via email, SMS (texts), Twitter, or mobile notification via iOS or Android devices.&#xD;
12
  &#xD;
13
  The HeartBeat module monitors seven components that are vital for site functionality and performance of any Magento website. These tests include: API availability, database, flat table, logs, catalog, file system, and indexes.</description>
14
+ <notes>Removed some deprecated tests. Improved the Catalog test.</notes>
15
  <authors><author><name>Gorilla Team</name><user>briangrady</user><email>grady@gorillagroup.com</email></author></authors>
16
+ <date>2012-08-02</date>
17
+ <time>18:32:56</time>
18
+ <contents><target name="magelocal"><dir name="Gorilla"><dir name="Heartbeat"><dir name="Helper"><file name="Data.php" hash="e90a9d9d93dcbed32c7ab6b50ffceb03"/></dir><dir name="Model"><dir name="Tests"><file name="Api.php" hash="ed7271827fe330cb8ba0b72a5c2ef3a6"/><file name="Catalog.php" hash="d6a8d9203ec2a04ae7814b0b0991a924"/><file name="Database.php" hash="881a90d149cb03238e34c955e45a3235"/><file name="Filesystem.php" hash="06f14b1c62a9f0ef8209c5b42d7a8a60"/><file name="Flattable.php" hash="41b8e17d5587d5faaf24a961edee2800"/><file name="Index.php" hash="b5ff3f968379464dc1d74ed45a87a6e5"/><file name="Log.php" hash="5c76469ed050a4b83a32cd28871aefe3"/></dir><file name="TestsCollector.php" hash="618e0592a30ecbdbf377ea9d3e97ba45"/><file name="TestsInterface.php" hash="5ae94e08822da721b45a9b1546a2a4b5"/></dir><dir name="controllers"><file name="IndexController.php" hash="1616d51d85d43a974ff0fdd57fa1b3cb"/></dir><dir name="etc"><file name="adminhtml.xml" hash="818551d3d7ba1962d837eff1f85f0203"/><file name="config.xml" hash="3705efcb09a4c46a0c241c9e532d16a9"/><file name="system.xml" hash="1024c468f92ce8e236e1084b73712d3a"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Gorilla_Heartbeat.xml" hash="73424503c8a3a95a747570ac3e05b4cb"/></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.0.0</min><max>5.4.3</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.6.0</min><max>1.7.0</max></package></required></dependencies>
21
  </package>