grafana

package
v0.82.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	LogConfiguration(logger log.FieldLogger)

	AddGrafanaClusterProvisionAnnotation(clusterID string, logger log.FieldLogger)
	UpdateGrafanaClusterProvisionAnnotation(clusterID string, logger log.FieldLogger)

	AddGrafanaClusterUpgradeAnnotation(clusterID string, logger log.FieldLogger)
	UpdateGrafanaClusterUpgradeAnnotation(clusterID string, logger log.FieldLogger)

	AddGrafanaClusterResizeAnnotation(clusterID string, logger log.FieldLogger)
	UpdateGrafanaClusterResizeAnnotation(clusterID string, logger log.FieldLogger)
}

Client is an interface for interacting with a Grafana instance.

func NewGrafanaClient

func NewGrafanaClient(cloudEnvironmentName, url string, tokens []string) (Client, error)

NewGrafanaClient returns a GrafanaClient interface. If any errors are encountered a noop client is returned instead.

type Grafana

type Grafana struct {
	// contains filtered or unexported fields
}

Grafana is a wrapper for one or more Grafana clients which can be used to easily make API calls to a Grafana backend.

func (*Grafana) AddGrafanaClusterProvisionAnnotation

func (gc *Grafana) AddGrafanaClusterProvisionAnnotation(clusterID string, logger log.FieldLogger)

AddGrafanaClusterProvisionAnnotation adds a new cluster provision annotation.

func (*Grafana) AddGrafanaClusterResizeAnnotation

func (gc *Grafana) AddGrafanaClusterResizeAnnotation(clusterID string, logger log.FieldLogger)

AddGrafanaClusterResizeAnnotation adds a new cluster resize annotation.

func (*Grafana) AddGrafanaClusterUpgradeAnnotation

func (gc *Grafana) AddGrafanaClusterUpgradeAnnotation(clusterID string, logger log.FieldLogger)

AddGrafanaClusterUpgradeAnnotation adds a new cluster upgrade annotation.

func (*Grafana) LogConfiguration

func (gc *Grafana) LogConfiguration(logger log.FieldLogger)

LogConfiguration logs client configuration.

func (*Grafana) UpdateGrafanaClusterProvisionAnnotation

func (gc *Grafana) UpdateGrafanaClusterProvisionAnnotation(clusterID string, logger log.FieldLogger)

UpdateGrafanaClusterProvisionAnnotation updates an existing cluster provision annotation.

func (*Grafana) UpdateGrafanaClusterResizeAnnotation

func (gc *Grafana) UpdateGrafanaClusterResizeAnnotation(clusterID string, logger log.FieldLogger)

UpdateGrafanaClusterResizeAnnotation updates an existing cluster resize annotation.

func (*Grafana) UpdateGrafanaClusterUpgradeAnnotation

func (gc *Grafana) UpdateGrafanaClusterUpgradeAnnotation(clusterID string, logger log.FieldLogger)

UpdateGrafanaClusterUpgradeAnnotation updates an existing cluster upgrade annotation.

Jump to

Keyboard shortcuts

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