api

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: BSD-3-Clause-LBNL Imports: 12 Imported by: 0

README

Everything in here is implemented due to limitations or bugs found in the OpenAPI Grafana API.

Any implementation in this package is temporary workaround till the spec/API is fixed or providing custom data models to better organize results for GDGs use case.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtendedApi

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

Most of these methods are here due to limitations in existing libraries being used.

func NewExtendedApi

func NewExtendedApi() *ExtendedApi

func (*ExtendedApi) GetConfiguredOrgId added in v0.6.0

func (extended *ExtendedApi) GetConfiguredOrgId(orgName string) (int64, error)

GetConfiguredOrgId needed to call grafana API in order to configure the Grafana API correctly. Invoking this endpoint manually to avoid a circular dependency.

func (*ExtendedApi) Health

func (extended *ExtendedApi) Health() (*HealthResponse, error)

type HealthResponse

type HealthResponse struct {
	Commit   string `json:"commit,omitempty"`
	Database string `json:"database,omitempty"`
	Version  string `json:"version,omitempty"`
}

Health Check used to get various server info

Jump to

Keyboard shortcuts

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