86 $collection = $this->countsCollectionFactory->create()
96 if ((!$latestUpdate) || (
$count != $latestUpdate->getCount())) {
109 protected function reportProductsSize()
111 $productCount = $this->productManagement->getCount();
122 protected function reportConfigurableProductsSize()
124 $configurableCount = $this->configurableManagement->getCount();
135 protected function reportProductsActive()
148 protected function reportCategorySize()
150 $categoryCount = $this->categoryManagement->getCount();
163 if ($this->config->isNewRelicEnabled()) {
164 $this->reportProductsSize();
165 $this->reportConfigurableProductsSize();
166 $this->reportProductsActive();
167 $this->reportCategorySize();
__construct(Config $config, ProductManagementInterface $productManagement, ConfigurableProductManagementInterface $configurableManagement, CategoryManagementInterface $categoryManagement, \Magento\NewRelicReporting\Model\CountsFactory $countsFactory, \Magento\NewRelicReporting\Model\ResourceModel\Counts\CollectionFactory $countsCollectionFactory)