ntb/silverstripe-statistics 问题修复 & 功能扩展

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

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

ntb/silverstripe-statistics

最新稳定版本:0.1.2

Composer 安装命令:

composer require ntb/silverstripe-statistics

包简介

This module makes it possible to create powerful dashboards about your application statistics with services like graphite and grafana.

README 文档

README

Build Status

This module makes it possible to create powerful dashboards about your application statistics with services like graphite and grafana.

For this purpose, the module contains a task system, that can be automatically run from a commandline through a script. On every run, the available indicators will be fetched and send with use of an adapter.

Available adapters

  • Graphite adapter
  • statsd adapter

Write your indicators

To create your indicators you must implement IIndicator in your own classes. When the task runs, the indicators are fetched automatically by the code. You can run the task in the browser in dev/tasks/Ntb-Statistics-StatisticTask or by using the commandline interface.

use Ntb\Statistics\IIndicator;

class NewUserIndicator extends Object implements IIndicator {
    private static $name = ['user', 'new'];

    public function name() {
        $separator = \Config::inst()->get('StatisticController', 'Separator');
        return implode($separator, self::$name);
    }

    public function fetch() {
        return Member::get()->count();
    }
}

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-08-28