hubot-statistics
A hubot script that provides statistics about the hubot instance in a json format
Last updated 5 years ago by filipre .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-statistics 
SYNC missed versions from official npm registry.

hubot-statistics

A hubot script that provides statistics about the hubot instance in a json format. You may want to use http://www.repo-board.io/

See src/statistics.coffee for full documentation.

Example using Github Dashboard

![example](https://raw.githubusercontent.com/filipre/hubot-statistics/master/example.png)

.dashboard.yml

logo: https://hubot.github.com/assets/images/layout/hubot-avatar@2x.png
delay: 5
branch:
  - master
stats:
  - url: http://<ip-address>:8080/hubot/statistics/name
    icon: octicon octicon-hubot
  - url: http://<ip-address>:8080/hubot/statistics/commands
    icon: octicon octicon-terminal
  - url: http://<ip-address>:8080/hubot/statistics/online
    icon: octicon octicon-clock
  - url: http://<ip-address>:8080/hubot/statistics/version
    icon: octicon octicon-tag
  - url: http://<ip-address>:8080/hubot/statistics/adapter
    icon: octicon octicon-plug

Installation

In hubot project repo, run:

npm install hubot-statistics --save

Then add hubot-statistics to your external-scripts.json:

[
  "hubot-statistics"
]

API

/hubot/statistics

All statistics in one json file. For example:

{
  "adapter": {
    "text": "slack"
  },
  "commands": {
    "text": 18,
    "commands": [
      "..."
    ]
  }
}

/hubot/statistics/:name

Simple json with text property:

{
  "text": "value of a specific statistic"
}

Current Tags

  • 1.2.2                                ...           latest (5 years ago)

2 Versions

  • 1.2.2                                ...           5 years ago
  • 1.2.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 3
Dependencies (2)
Dev Dependencies (12)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |