2021-09-10 09:44:47 -05:00
|
|
|
package grafanads
|
|
|
|
|
|
|
|
const (
|
|
|
|
// QueryTypeRandomWalk returns a random walk series
|
|
|
|
queryTypeRandomWalk = "randomWalk"
|
|
|
|
|
2022-02-15 12:26:03 -06:00
|
|
|
// QueryTypeList will list the files in a folder
|
|
|
|
queryTypeSearch = "search"
|
|
|
|
|
2021-09-10 09:44:47 -05:00
|
|
|
// QueryTypeList will list the files in a folder
|
|
|
|
queryTypeList = "list"
|
|
|
|
|
|
|
|
// QueryTypeRead will read a file and return it as data frames
|
|
|
|
// currently only .csv files are supported,
|
|
|
|
// other file types will eventually be supported (parquet, etc)
|
|
|
|
queryTypeRead = "read"
|
|
|
|
)
|
|
|
|
|
|
|
|
type listQueryModel struct {
|
|
|
|
Path string `json:"path"`
|
|
|
|
}
|
|
|
|
type readQueryModel struct {
|
|
|
|
Path string `json:"path"`
|
|
|
|
}
|