Versions in this module Expand all Collapse all v1 v1.0.0 Jun 28, 2024 Changes in this version + func CreateAlert(jsonPayload string) (string, error) + func CreateAndPublishDashboard(name string, tags []string) (types.Dashboard, error) + func CreateAndPublishDashboardSpec(dashboardSpecJson string) (string, error) + func CreateQuery(query types.CreateQueryPayload) (types.Query, error) + func CreateVisualization(visualization *types.Visualization, queryId int) (*types.Visualization, error) + func CreateWidget(widget types.Widget, visualizationId int, dashboardId int) (types.Widget, error) + func CreateWidgetGroup(widget types.Widget, dashboardId int) (*types.Widget, error) + func DeleteDashboard(slug string) error + func DeleteQuery(id string) error + func ExecutePrometheusQuery(query string) (map[string]interface{}, error) + func ExecuteQuery(queryResultPayload types.QueryResult) (string, error) + func ExecuteRawQueries(query string, datasourceId int, parameters *[]map[string]interface{}) (*types.QueryResultData, error) + func GetAlert(id string) (types.Resource, error) + func GetDashboard(args []string) (string, error) + func GetDashboardByName(name string) (map[string]interface{}, error) + func GetDashboards() (map[string]interface{}, error) + func GetDatasource(args ...string) (*types.Datasource, error) + func GetForwarders() ([]types.Forwarder, error) + func GetLogEvents(numDays int) error + func GetMappings() ([]types.Mapping, error) + func ListAlerts() ([]types.Resource, error) + func ListDashboards() + func NewGetLogEvents() *cobra.Command + func NewListDatasourcesCommand() *cobra.Command + func NewListQueriesCommand() *cobra.Command + func PublishQuery(args []string) (*map[string]interface{}, error) + type Forwarders struct + Configs []types.Forwarder + type MappingsResponse struct + Mappings []types.Mapping