Documentation ¶
Index ¶
- 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
- type MappingsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAlert ¶
func CreateQuery ¶
func CreateQuery(query types.CreateQueryPayload) (types.Query, error)
func CreateVisualization ¶
func CreateVisualization(visualization *types.Visualization, queryId int) (*types.Visualization, error)
func CreateWidget ¶
func CreateWidgetGroup ¶
func DeleteDashboard ¶
func DeleteQuery ¶
func ExecutePrometheusQuery ¶
func ExecuteQuery ¶
func ExecuteQuery(queryResultPayload types.QueryResult) (string, error)
func ExecuteRawQueries ¶
func GetDashboard ¶
func GetDashboardByName ¶
func GetDashboards ¶
func GetDatasource ¶
func GetDatasource(args ...string) (*types.Datasource, error)
func GetForwarders ¶
func GetLogEvents ¶
func GetMappings ¶
func ListAlerts ¶
func ListDashboards ¶
func ListDashboards()
func NewGetLogEvents ¶
func NewListQueriesCommand ¶
func PublishQuery ¶
Types ¶
type Forwarders ¶
type MappingsResponse ¶
Click to show internal directories.
Click to hide internal directories.