Documentation ¶
Index ¶
- type Alert
- type Dashboard
- type GrafanaClient
- func (c *GrafanaClient) GetAlertAsPrettyJSON(uid string) ([]byte, error)
- func (c *GrafanaClient) GetAlertContactPointsAsPrettyJSON() ([]byte, error)
- func (c *GrafanaClient) GetAlertContactPointsAsYAML() ([]byte, error)
- func (c *GrafanaClient) GetAlertList() (alerts []Alert, err error)
- func (c *GrafanaClient) GetAlertMuteTimingsAsPrettyJSON() ([]byte, error)
- func (c *GrafanaClient) GetAlertNotificationPoliciesAsPrettyJSON() ([]byte, error)
- func (c *GrafanaClient) GetAlertNotificationPoliciesAsYAML() ([]byte, error)
- func (c *GrafanaClient) GetAlertRulesAsYAML() ([]byte, error)
- func (c *GrafanaClient) GetAlertTemplatesAsPrettyJSON() ([]byte, error)
- func (c *GrafanaClient) GetAllAlertRulesAsPrettyJSON() ([]byte, error)
- func (c *GrafanaClient) GetAny(requestPath string) ([]byte, error)
- func (c *GrafanaClient) GetDashboardAsPrettyJSON(uid string) ([]byte, error)
- func (c *GrafanaClient) GetDashboardList() ([]Dashboard, error)
- func (c *GrafanaClient) GetDataSourcesAsPrettyJSON() ([]byte, error)
- func (c *GrafanaClient) GetJSON(requestPath string, responseStruct interface{}) error
- func (c *GrafanaClient) GetPrettyJSON(requestPath string) ([]byte, error)
- func (c *GrafanaClient) RequestAny(method, requestPath string, query url.Values, requestBody []byte) ([]byte, error)
- func (c *GrafanaClient) RequestJSON(method, requestPath string, query url.Values, requestBody []byte, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrafanaClient ¶
type GrafanaClient struct {
// contains filtered or unexported fields
}
func NewGrafanaClient ¶
func NewGrafanaClient( apiURL string, apiToken string, ) *GrafanaClient
func (*GrafanaClient) GetAlertAsPrettyJSON ¶
func (c *GrafanaClient) GetAlertAsPrettyJSON(uid string) ([]byte, error)
func (*GrafanaClient) GetAlertContactPointsAsPrettyJSON ¶
func (c *GrafanaClient) GetAlertContactPointsAsPrettyJSON() ([]byte, error)
func (*GrafanaClient) GetAlertContactPointsAsYAML ¶
func (c *GrafanaClient) GetAlertContactPointsAsYAML() ([]byte, error)
func (*GrafanaClient) GetAlertList ¶
func (c *GrafanaClient) GetAlertList() (alerts []Alert, err error)
func (*GrafanaClient) GetAlertMuteTimingsAsPrettyJSON ¶
func (c *GrafanaClient) GetAlertMuteTimingsAsPrettyJSON() ([]byte, error)
func (*GrafanaClient) GetAlertNotificationPoliciesAsPrettyJSON ¶
func (c *GrafanaClient) GetAlertNotificationPoliciesAsPrettyJSON() ([]byte, error)
func (*GrafanaClient) GetAlertNotificationPoliciesAsYAML ¶
func (c *GrafanaClient) GetAlertNotificationPoliciesAsYAML() ([]byte, error)
func (*GrafanaClient) GetAlertRulesAsYAML ¶
func (c *GrafanaClient) GetAlertRulesAsYAML() ([]byte, error)
func (*GrafanaClient) GetAlertTemplatesAsPrettyJSON ¶
func (c *GrafanaClient) GetAlertTemplatesAsPrettyJSON() ([]byte, error)
func (*GrafanaClient) GetAllAlertRulesAsPrettyJSON ¶
func (c *GrafanaClient) GetAllAlertRulesAsPrettyJSON() ([]byte, error)
func (*GrafanaClient) GetDashboardAsPrettyJSON ¶
func (c *GrafanaClient) GetDashboardAsPrettyJSON(uid string) ([]byte, error)
func (*GrafanaClient) GetDashboardList ¶
func (c *GrafanaClient) GetDashboardList() ([]Dashboard, error)
func (*GrafanaClient) GetDataSourcesAsPrettyJSON ¶
func (c *GrafanaClient) GetDataSourcesAsPrettyJSON() ([]byte, error)
func (*GrafanaClient) GetJSON ¶
func (c *GrafanaClient) GetJSON(requestPath string, responseStruct interface{}) error
func (*GrafanaClient) GetPrettyJSON ¶
func (c *GrafanaClient) GetPrettyJSON(requestPath string) ([]byte, error)
func (*GrafanaClient) RequestAny ¶
func (*GrafanaClient) RequestJSON ¶
Click to show internal directories.
Click to hide internal directories.