mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboard search works better, tag cloud should be done soon
This commit is contained in:
@@ -27,16 +27,33 @@ type Dashboard struct {
|
||||
}
|
||||
|
||||
type SearchResult struct {
|
||||
Id string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Slug string `json:"slug"`
|
||||
Dashboards []DashboardSearchHit `json:"dashboards"`
|
||||
Tags []DashboardTagCloudItem `json:"tags"`
|
||||
TagsOnly bool `json:"tagsOnly"`
|
||||
}
|
||||
|
||||
type DashboardSearchHit struct {
|
||||
Id string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Slug string `json:"slug"`
|
||||
Tags []string `json:"tags"`
|
||||
}
|
||||
|
||||
type DashboardTagCloudItem struct {
|
||||
Term string `json:"term"`
|
||||
Count int `json:"count"`
|
||||
}
|
||||
|
||||
type SearchDashboardsQuery struct {
|
||||
Query string
|
||||
AccountId int64
|
||||
|
||||
Result []*SearchResult
|
||||
Result []DashboardSearchHit
|
||||
}
|
||||
|
||||
type GetDashboardTagsQuery struct {
|
||||
AccountId int64
|
||||
Result []DashboardTagCloudItem
|
||||
}
|
||||
|
||||
type SaveDashboardCommand struct {
|
||||
|
||||
Reference in New Issue
Block a user