Fix archiverappliance name querying.
This commit is contained in:
12
Readme.md
12
Readme.md
@ -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
|
||||||
|
Reference in New Issue
Block a user