55 if ($this->config->isNewRelicEnabled()) {
64 $jsonData[
'status'] =
'created';
67 $jsonData[
'status'] =
'updated';
72 'action' => $this->jsonEncoder->encode($jsonData),
76 $systemModel = $this->systemFactory->create();
77 $systemModel->setData($modelData);
__construct(Config $config, \Magento\NewRelicReporting\Model\SystemFactory $systemFactory, \Magento\Framework\Json\EncoderInterface $jsonEncoder)
execute(Observer $observer)