render

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 19 Imported by: 0

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, metricer sreCommon.Metricer) *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