Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matsumotory/mruby-growthforecast
growthforecast class for mruby
https://github.com/matsumotory/mruby-growthforecast
Last synced: about 2 months ago
JSON representation
growthforecast class for mruby
- Host: GitHub
- URL: https://github.com/matsumotory/mruby-growthforecast
- Owner: matsumotory
- Created: 2012-12-13T17:48:36.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-07-21T03:17:28.000Z (over 11 years ago)
- Last Synced: 2024-10-18T18:25:24.368Z (3 months ago)
- Language: Ruby
- Size: 65.4 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GrowthForecast Class for mruby
## install by mrbgems
```bash
git clone git://github.com/matsumoto-r/mruby-growthforecast.git
cp -pr mruby-growthforecast ${MRUBY_ROOT}/mrbgems/g/.
echo mruby-growthforecast >> ${MRUBY_ROOT}/mrbgems/GEMS.active
cd ${MRUBY_ROOT}
make
./bin/mruby ${MRUBY_ROOT}/mrbgems/g/mruby-growthforecast/example/post-gf.rb
```## example
```ruby
g = GrowthForecast::Client.new("127.0.0.1", 5125)config = {
:service => "apache",
:section => "scoreboard",
:graph => "worker",
}data = {
:number => 5,
:color => "#333399",
:mode => "count",
}p g.post(config, data)
```