mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 19:30:36 -06:00
37 lines
771 B
Go
37 lines
771 B
Go
package models
|
|
|
|
type SearchResult struct {
|
|
Dashboards []*DashboardSearchHit `json:"dashboards"`
|
|
Tags []*DashboardTagCloudItem `json:"tags"`
|
|
TagsOnly bool `json:"tagsOnly"`
|
|
}
|
|
|
|
type DashboardSearchHit struct {
|
|
Id int64 `json:"id"`
|
|
Title string `json:"title"`
|
|
Slug string `json:"slug"`
|
|
Tags []string `json:"tags"`
|
|
IsStarred bool `json:"isStarred"`
|
|
}
|
|
|
|
type DashboardTagCloudItem struct {
|
|
Term string `json:"term"`
|
|
Count int `json:"count"`
|
|
}
|
|
|
|
type SearchDashboardsQuery struct {
|
|
Title string
|
|
Tag string
|
|
OrgId int64
|
|
UserId int64
|
|
Limit int
|
|
IsStarred bool
|
|
|
|
Result []*DashboardSearchHit
|
|
}
|
|
|
|
type GetDashboardTagsQuery struct {
|
|
OrgId int64
|
|
Result []*DashboardTagCloudItem
|
|
}
|