Documentation
¶
Index ¶
Constants ¶
View Source
const (
GetAllForAccountGrafanaDatasourceMethod = "GetAllForAccountDatasource"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrafanaDataSource ¶
type GrafanaDataSource struct { Id int64 `json:"id,omitempty"` Uid string `json:"uid,omitempty"` Name string `json:"name"` Type string `json:"type"` TypeLogoUrl string `json:"typeLogoUrl,omitempty"` // Only returned by the API. Depends on the Type. Url string `json:"url"` Access string `json:"access"` ReadOnly bool `json:"readOnly"` // Only returned by the API. Can be set through the `editable` attribute of provisioned data sources. Database string `json:"database,omitempty"` User string `json:"user,omitempty"` OrgId int64 `json:"orgId,omitempty"` IsDefault bool `json:"isDefault"` BasicAuth bool `json:"basicAuth"` BasicAuthUser string `json:"basicAuthUser,omitempty"` WithCredentials bool `json:"withCredentials,omitempty"` JsonData map[string]interface{} `json:"jsonData,omitempty"` SecureJsonData map[string]interface{} `json:"secureJsonData,omitempty"` Version int `json:"version,omitempty"` }
type GrafanaDatasourceClient ¶
func (*GrafanaDatasourceClient) GetForAccount ¶
func (c *GrafanaDatasourceClient) GetForAccount(accountName string) (*GrafanaDataSource, error)
Click to show internal directories.
Click to hide internal directories.