render

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grafana

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

func NewGrafana

func NewGrafana(options GrafanaOptions, logger sreCommon.Logger, tracer sreCommon.Tracer, meter sreCommon.Meter) *Grafana

func (*Grafana) GenerateDashboard

func (g *Grafana) GenerateDashboard(spanCtx sreCommon.TracerSpanContext,
	title string, metric string, operator string, value *float64, minutes *int, unit string) ([]byte, string, error)

type GrafanaAliasColors

type GrafanaAliasColors struct {
}

type GrafanaOptions

type GrafanaOptions struct {
	URL         string
	Timeout     int
	Datasource  string
	ApiKey      string
	Org         string
	Period      int
	ImageWidth  int
	ImageHeight int
}

type TextTemplate

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

func NewTextTemplate

func NewTextTemplate(name string, fileOrVar string, options TextTemplateOptions, vars interface{}, logger sreCommon.Logger) *TextTemplate

func (*TextTemplate) Execute

func (tpl *TextTemplate) Execute(object interface{}) (*bytes.Buffer, error)

type TextTemplateOptions

type TextTemplateOptions struct {
	TimeFormat string
}

Jump to

Keyboard shortcuts

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