Change DBMode wording.
This commit is contained in:
@ -291,7 +291,7 @@ See JSON representation of the data above.
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"dbmode":"archiverappliance",
|
"dbMode":"archiverappliance",
|
||||||
"startMillis":0,
|
"startMillis":0,
|
||||||
"startNanos":0,
|
"startNanos":0,
|
||||||
"endMillis":30,
|
"endMillis":30,
|
||||||
|
@ -111,7 +111,7 @@ public class QueryRestController {
|
|||||||
|
|
||||||
// all the magic happens here
|
// all the magic happens here
|
||||||
Stream<Entry<String, Stream<? extends DataEvent>>> channelToDataEvents =
|
Stream<Entry<String, Stream<? extends DataEvent>>> channelToDataEvents =
|
||||||
getQueryProcessor(query.getDBMode()).process(queryAnalizer);
|
getQueryProcessor(query.getDbMode()).process(queryAnalizer);
|
||||||
|
|
||||||
// do post-process
|
// do post-process
|
||||||
Stream<Entry<String, ?>> channelToData = queryAnalizer.postProcess(channelToDataEvents);
|
Stream<Entry<String, ?>> channelToData = queryAnalizer.postProcess(channelToDataEvents);
|
||||||
|
@ -43,7 +43,7 @@ public class QueryValidator implements Validator {
|
|||||||
|
|
||||||
Request request = query.getRequest();
|
Request request = query.getRequest();
|
||||||
|
|
||||||
if (DBMode.archiverappliance.equals(query.getDBMode())) {
|
if (DBMode.archiverappliance.equals(query.getDbMode())) {
|
||||||
if (!(request.getRequestRange() instanceof RequestRangeTime)) {
|
if (!(request.getRequestRange() instanceof RequestRangeTime)) {
|
||||||
errors.reject("dbMode", "ArchiverAppliance supports time range queries only!");
|
errors.reject("dbMode", "ArchiverAppliance supports time range queries only!");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user