remove unused structs

This commit is contained in:
bergquist
2017-09-21 15:02:17 +02:00
parent 55f1b36e31
commit 0229d28d64
26 changed files with 52 additions and 1187 deletions
+1 -16
View File
@@ -8,14 +8,7 @@ import (
type TsdbQuery struct {
TimeRange *TimeRange
Queries QuerySlice
}
func NewQueryContext(queries QuerySlice, timeRange *TimeRange) *TsdbQuery {
return &TsdbQuery{
TimeRange: timeRange,
Queries: queries,
}
Queries []*Query
}
type Query struct {
@@ -24,18 +17,10 @@ type Query struct {
Depends []string
DataSource *models.DataSource
Results []*TimeSeries
Exclude bool
MaxDataPoints int64
IntervalMs int64
}
type QuerySlice []*Query
type Request struct {
TimeRange *TimeRange
Queries QuerySlice
}
type Response struct {
BatchTimings []*BatchTiming `json:"timings"`
Results map[string]*QueryResult `json:"results"`