grafana/pkg/models/search.go

36 lines
736 B
Go
Raw Normal View History

package models
type SearchResult struct {
Dashboards []*DashboardSearchHit `json:"dashboards"`
Tags []*DashboardTagCloudItem `json:"tags"`
TagsOnly bool `json:"tagsOnly"`
}
type DashboardSearchHit struct {
2015-02-02 10:17:57 -06:00
Id int64 `json:"id"`
Title string `json:"title"`
Slug string `json:"slug"`
Tags []string `json:"tags"`
Url string `json:"url"`
}
type DashboardTagCloudItem struct {
Term string `json:"term"`
Count int `json:"count"`
}
type SearchDashboardsQuery struct {
Title string
Tag string
AccountId int64
UserId int64
IsStarred bool
Result []*DashboardSearchHit
}
type GetDashboardTagsQuery struct {
AccountId int64
Result []*DashboardTagCloudItem
}