plugin

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginID string = "grafana-sentry-datasource"
)

Variables

This section is empty.

Functions

func DefaultResourceHandler added in v1.1.0

func DefaultResourceHandler(client *sentry.SentryClient) http.HandlerFunc

func GetOrganizationTeamsHandler added in v1.1.0

func GetOrganizationTeamsHandler(client *sentry.SentryClient) http.HandlerFunc

func GetOrganizationsHandler added in v1.1.0

func GetOrganizationsHandler(client *sentry.SentryClient) http.HandlerFunc

func GetProjectsHandler added in v1.1.0

func GetProjectsHandler(client *sentry.SentryClient) http.HandlerFunc

func GetTeamsProjectsHandler added in v1.1.0

func GetTeamsProjectsHandler(client *sentry.SentryClient) http.HandlerFunc

func NewDatasource

NewDatasource creates an instance factory for the SentryDatasource. It is consumed by the `datasource.Manage` function to create a new instance of the datasource.

Types

type SentryConfig

type SentryConfig struct {
	URL     string `json:"url"`
	OrgSlug string `json:"orgSlug"`
	// contains filtered or unexported fields
}

func (*SentryConfig) Validate

func (sc *SentryConfig) Validate() error

type SentryDatasource

type SentryDatasource struct {
	backend.CallResourceHandler
	// contains filtered or unexported fields
}

SentryDatasource is a struct that represents the Sentry datasource.

func NewDatasourceInstance added in v1.8.1

func NewDatasourceInstance(sc *sentry.SentryClient) *SentryDatasource

NewDatasourceInstance creates an instance of the SentryDatasource. It is a helper function that is mostly used for testing.

func (*SentryDatasource) CheckHealth

CheckHealth is a callback that is called when Grafana requests a health check for the datasource during setup.

func (*SentryDatasource) Dispose added in v1.8.1

func (ds *SentryDatasource) Dispose()

Dispose is a callback that is called when the datasource is being disposed.

func (*SentryDatasource) QueryData

QueryData is the entrypoint for handling data queries from Grafana.

Jump to

Keyboard shortcuts

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