Fix archiverappliance name querying.

This commit is contained in:
Fabian Märki
2016-04-04 09:04:55 +02:00
parent 279bb10fed
commit 6a87141f9b

View File

@ -353,13 +353,19 @@ See JSON representation of the data above.
```json ```json
{ {
"backend":"archiverappliance",
"range":{ "range":{
"startSeconds":"0.0", "startSeconds":"0.0",
"endSeconds":"0.030999999" "endSeconds":"0.030999999"
}, },
"channels":[ "channels":[
"Channel_01" {
"name": "Channel_01",
"backend":"archiverappliance"
},
{
"name": "Channel_02",
"backend":"archiverappliance"
}
] ]
} }
``` ```
@ -370,7 +376,7 @@ Archiver Appliance supports queries by *time range* and *date range* only (as it
###### Command ###### Command
```bash ```bash
curl -H "Content-Type: application/json" -X POST -d '{"dbmode":"archiverappliance","range":{"startSeconds":"0.0","endSeconds":"0.030999999"},"channels":["Channel_01"]}' http://data-api.psi.ch/sf/query curl -H "Content-Type: application/json" -X POST -d '{"range":{"startSeconds":"0.0","endSeconds":"0.030999999"},"channels":[{"name": "Channel_01","backend":"archiverappliance"}]}' http://data-api.psi.ch/sf/query
``` ```
###### Response ###### Response