POST|GET /
For Grafana test connection
POST /query
Post Body
Key | Value |
---|---|
access_key | Key to access blob storage, for example: d6dfc3363d0449a1acde32aa844b8c9e |
secret_key | Key to identify user's premission, example: d6dfc3363d0449a1acde32aa844b8c9e |
host | address of private blob storage, could be a IP address or domain name |
port | port of private blob storage |
bucket | bucket name which stored queue content |
filename | file name to be visualized, ex. max.bin, min.bin, mean.bin |
sid | ID of Smart Machine Box, ex. smartbox11 signal Data |
tag | ID of tag, ex. 1Y510110100 |
date | date, ex. 2018/6/10, 2018/10/6 |
Example
{ "panelId": 2, "targets": [{ "target": "{'access_key':'ee7da6e1bba944829884747df01a1eee', 'secret_key':'d737995ebd3e459db321fb119f006456', 'host':'192.168.123.242', 'port':8080, 'bucket':'FOMOS-Y5-SUMMARY', 'filename':'MAX-1Y520210100-0.bin', 'sid':'smartbox21 Signal Data', 'tag':'1Y520210100', 'date':'2018/7/14'}", "refId": "A", "type": "timeserie" }], "range": { "from": "2018-05-15T06:40:57.454Z", "to": "2018-05-15T12:40:57.454Z", "raw": { "from": "now-6h", "to": "now" } }, "intervalMs": 30000, "interval": "30s", "maxDataPoints": 683, "scopedVars": { "__interval": { "text": "30s", "value": "30s" }, "__interval_ms": { "text": 30000, "value": 30000 } }, "rangeRaw": { "from": "now-6h", "to": "now" }, "timezone": "browser" }
- Execption catch, such as (1) file does not exist in bucket, (2) bucket does not exist, (3) file is empty or cannot read by Pandas
- Multiple file queue (cross file queue): in this scenario, usually create an index file after file upload, when Grafana require data, we should queue index to identify file name and bucket at the first stage, then queue the file accroding to result
- Cloud Foundry App-lization, you should create your own manifest file and push it to WISE-PaaS