remove unused structs
This commit is contained in:
+1
-16
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user