ui

package
v0.0.0-...-28787c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAlert

func CreateAlert(jsonPayload string) (string, error)

func CreateAndPublishDashboard

func CreateAndPublishDashboard(name string, tags []string) (types.Dashboard, error)

func CreateAndPublishDashboardSpec

func CreateAndPublishDashboardSpec(dashboardSpecJson string) (string, error)

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 CreateWidget(widget types.Widget, visualizationId int, dashboardId int) (types.Widget, error)

func CreateWidgetGroup

func CreateWidgetGroup(widget types.Widget, dashboardId int) (*types.Widget, error)

func DeleteDashboard

func DeleteDashboard(slug string) error

func DeleteQuery

func DeleteQuery(id string) error

func ExecutePrometheusQuery

func ExecutePrometheusQuery(query string) (map[string]interface{}, error)

func ExecuteQuery

func ExecuteQuery(queryResultPayload types.QueryResult) (string, error)

func ExecuteRawQueries

func ExecuteRawQueries(query string, datasourceId int, parameters *[]map[string]interface{}) (*types.QueryResultData, error)

func GetAlert

func GetAlert(id string) (types.Resource, error)

func GetDashboard

func GetDashboard(args []string) (string, error)

func GetDashboardByName

func GetDashboardByName(name string) (map[string]interface{}, error)

func GetDashboards

func GetDashboards() (map[string]interface{}, error)

func GetDatasource

func GetDatasource(args ...string) (*types.Datasource, error)

func GetForwarders

func GetForwarders() ([]types.Forwarder, error)

func GetLogEvents

func GetLogEvents(numDays int) error

func GetMappings

func GetMappings() ([]types.Mapping, error)

func ListAlerts

func ListAlerts() ([]types.Resource, error)

func ListDashboards

func ListDashboards()

func NewGetLogEvents

func NewGetLogEvents() *cobra.Command

func NewListDatasourcesCommand

func NewListDatasourcesCommand() *cobra.Command

func NewListQueriesCommand

func NewListQueriesCommand() *cobra.Command

func PublishQuery

func PublishQuery(args []string) (*map[string]interface{}, error)

Types

type Forwarders

type Forwarders struct {
	Configs []types.Forwarder `json:"configs"`
}

type MappingsResponse

type MappingsResponse struct {
	Mappings []types.Mapping `json:"mappings"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL