grafana

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEnvironmentNotConfigured = errors.New("environment not configured")

Functions

This section is empty.

Types

type AnnotateRequest

type AnnotateRequest struct {
	What string   `json:"what,omitempty"`
	Tags []string `json:"tags,omitempty"`
	Data string   `json:"data,omitempty"`
}

type AnnotateResponse

type AnnotateResponse struct {
	Message string `json:"message,omitempty"`
	Id      int64  `json:"id,omitempty"`
}

type Environment added in v0.0.15

type Environment struct {
	APIKey  string
	BaseURL string
}

type Service added in v0.0.15

type Service struct {
	Environments map[string]Environment
}

func (*Service) Annotate added in v0.0.15

func (s *Service) Annotate(ctx context.Context, env string, body AnnotateRequest) error

Jump to

Keyboard shortcuts

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