Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PieLegendBlackName = []string{"job", "instance"}
Functions ¶
func GetSerialName ¶ added in v1.5.2
func InitPrometheusDatasource ¶
func InitPrometheusDatasource()
func PrometheusData ¶
func PrometheusData(query *m.QueryMonitorData) []*m.SerialModel
Types ¶
type DataSource ¶
type DataSource struct { Id int Name string Type string Url string Password string User string Database string BasicAuth bool BasicAuthUser string BasicAuthPassword string WithCredentials bool IsDefault bool ReadOnly bool Created time.Time Updated time.Time }
func (*DataSource) GetHttpClient ¶
func (ds *DataSource) GetHttpClient() (*http.Client, error)
func (*DataSource) GetHttpTransport ¶
func (ds *DataSource) GetHttpTransport() (*http.Transport, error)
type DataSourceParam ¶
type DataSourceParam struct { DataSource *DataSource Host string Token string }
Click to show internal directories.
Click to hide internal directories.