Documentation
¶
Index ¶
- Constants
- func DefaultResourceHandler(client *sentry.SentryClient) http.HandlerFunc
- func GetOrganizationTeamsHandler(client *sentry.SentryClient) http.HandlerFunc
- func GetOrganizationsHandler(client *sentry.SentryClient) http.HandlerFunc
- func GetProjectsHandler(client *sentry.SentryClient) http.HandlerFunc
- func GetTeamsProjectsHandler(client *sentry.SentryClient) http.HandlerFunc
- func NewDatasource(ctx context.Context, s backend.DataSourceInstanceSettings) (instancemgmt.Instance, error)
- type SentryConfig
- type SentryDatasource
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 ¶
func NewDatasource(ctx context.Context, s backend.DataSourceInstanceSettings) (instancemgmt.Instance, error)
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 GetSettings ¶
func GetSettings(s backend.DataSourceInstanceSettings) (*SentryConfig, error)
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 ¶
func (ds *SentryDatasource) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
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 ¶
func (ds *SentryDatasource) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
QueryData is the entrypoint for handling data queries from Grafana.
Click to show internal directories.
Click to hide internal directories.