func RunParsedQueries(
	requests []tsdbjson.ParsedQuery,
	endpoints *machine.EndpointStore,
	minDownSampleTime time.Duration) (
	[]*tsdb.TaggedTimeSeriesSet, error) {
	return runParsedQueries(requests, endpoints, minDownSampleTime)
}
RunParsedQueries works like Query except that it accepts a slice of
tsdbjson.ParseQuery instances and returns a slice of
tsdb.TaggedTimeSeriesSet instances.
This metod can be used to support other protocols such as influx db.
The indexes in the returned slice match the indexes of the requests slice.
In particular an element of the returned slice will be nil if the
corresponding element in the requests slice yields no results.
package tsdbexec
import (
	"errors"
	"github.com/Symantec/scotty/lib/apiutil"
	"github.com/Symantec/scotty/machine"
	"github.com/Symantec/scotty/suggest"
	"github.com/Symantec/scotty/tsdb"
	"github.com/Symantec/scotty/tsdbjson"
	"net/http"
	"net/url"
	"time"
)
var (
	NotFoundHandler = apiutil.NewHandler(
		func(params url.Values) (interface{}, error) {
			return nil, tsdbjson.NewError(
				404, errors.New("Endpoint not found"))
		},
		kOptions)
)
func Suggest(
	params url.Values,
	suggesterMap map[string]suggest.Suggester) (
	result []string, err error) {
	return _suggest(params, suggesterMap)
}
func Query(
	request *tsdbjson.QueryRequest,
	endpoints *machine.EndpointStore,
	minDownSampleTime time.Duration) (
	result []tsdbjson.TimeSeries, err error) {
	return query(request, endpoints, minDownSampleTime)
}