oat-sa/extension-tao-monitoring 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

oat-sa/extension-tao-monitoring

最新稳定版本:v4.0.2

Composer 安装命令:

composer require oat-sa/extension-tao-monitoring

包简介

Extension for monitoring of the tao events. Fast access to statistics data

README 文档

README

This extension contains services for creating and maintaining aggregated statistics.

Usages:

Using MonitoringPlugService you can configure which statistics will be logged.

<?php
/**
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; under version 2
 * of the License (non-upgradable).
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 * Copyright (c) 2017 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT);
 *
 */

namespace oat\tao\scripts\install;


use oat\oatbox\extension\InstallAction;
use oat\taoMonitoring\model\InstantActionQueueLog\InstantActionQueueLogService;
use oat\taoMonitoring\model\MonitoringPlugService;

/**
 * Install Action to register instant action log.
 */
class RegisterMonitoringPlugService extends InstallAction
{
    /**
     * @param $params
     * @return \common_report_Report
     * @throws \common_Exception
     * @throws \oat\oatbox\service\exception\InvalidServiceManagerException
     */
    public function __invoke($params)
    {
        $service = $this->getServiceManager()->get(MonitoringPlugService::SERVICE_ID);
        $service->setOption('services', [
            InstantActionQueueLogService::SERVICE_ID,
        ]);
        $this->getServiceManager()->register(MonitoringPlugService::SERVICE_ID, $service);

        return \common_report_Report::createSuccess('Monitoring plug service registered.');
    }
}

统计信息

  • 总下载量: 9.53k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 48
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-only
  • 更新时间: 2016-12-19