2015-01-09 04:01:37 -06:00
|
|
|
package models
|
|
|
|
|
|
|
|
type SearchResult struct {
|
|
|
|
Dashboards []*DashboardSearchHit `json:"dashboards"`
|
|
|
|
Tags []*DashboardTagCloudItem `json:"tags"`
|
|
|
|
TagsOnly bool `json:"tagsOnly"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DashboardSearchHit struct {
|
2015-02-05 02:49:00 -06:00
|
|
|
Id int64 `json:"id"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
Slug string `json:"slug"`
|
|
|
|
Tags []string `json:"tags"`
|
|
|
|
IsStarred bool `json:"isStarred"`
|
2015-01-09 04:01:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
type DashboardTagCloudItem struct {
|
|
|
|
Term string `json:"term"`
|
|
|
|
Count int `json:"count"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SearchDashboardsQuery struct {
|
|
|
|
Title string
|
|
|
|
Tag string
|
2015-02-23 13:07:49 -06:00
|
|
|
OrgId int64
|
2015-02-04 04:35:59 -06:00
|
|
|
UserId int64
|
2015-02-05 04:10:56 -06:00
|
|
|
Limit int
|
2015-02-04 04:35:59 -06:00
|
|
|
IsStarred bool
|
2015-01-09 04:01:37 -06:00
|
|
|
|
|
|
|
Result []*DashboardSearchHit
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetDashboardTagsQuery struct {
|
2015-02-23 13:07:49 -06:00
|
|
|
OrgId int64
|
|
|
|
Result []*DashboardTagCloudItem
|
2015-01-09 04:01:37 -06:00
|
|
|
}
|