https://github.com/zserge/incr
incr.it backend
https://github.com/zserge/incr
Last synced: about 1 year ago
JSON representation
incr.it backend
- Host: GitHub
- URL: https://github.com/zserge/incr
- Owner: zserge
- License: mit
- Created: 2015-07-13T15:14:50.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-03-25T04:45:02.000Z (about 10 years ago)
- Last Synced: 2025-01-24T11:11:05.385Z (over 1 year ago)
- Language: JavaScript
- Size: 7.22 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# incr
incr.it backend
## API
Submit metric value:
* `/:ns/:type/:metric/:value` - send any request (GET, POST etc) to
submit new value. If sent by GET - a minimal transparent GIF is returned. For
other requests only status is returned.
* `:ns` - namespace, e.g. your account unique ID. GUID and MD5 hashsums are
good examples, up to 64 chars.
* `:type` - 'c' for counter, 'g' for gauge, 's' for set.
* `:metric` - name of your metric. Any string up to 32 chars
* `:value` - value submitted to the metric. Depends on metric type. Up to 64
chars.
* `/:ns/:t/:m/:v/:ns2/:t2/:m2/:v2/:ns3/:t3/:m3/:v3/...` - bulk submit
Retrieve metric timeline:
* GET `/:ns` - returns all metrics in this namespace
* GET `/:ns/:t` - returns all metrics in this namespace by given type
* GET `/:ns/:t/:m` - returns single metric timeline
TCP, UDP:
* `/:ns/...` - submit
* `?:ns/...` - retrieve