metrics

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyDomainTotal    = "domain_total"
	KeyServiceTotal   = "service_total"
	KeyInstanceTotal  = "instance_total"
	KeySchemaTotal    = "schema_total"
	KeyFrameworkTotal = "framework_total"

	SubSystem = "db"
)

keys of gauge

Variables

This section is empty.

Functions

func Key

func Key(name string) string

Key return metrics key

func ReportDomains

func ReportDomains(c float64)

func ReportFramework

func ReportFramework(domainName, projectName string, framework, frameworkVersion string, c float64)

func ReportInstances

func ReportInstances(domain string, c float64)

func ReportSchemas

func ReportSchemas(domain string, c float64)

func ReportServices

func ReportServices(domain, framework, frameworkVersion string, c float64)

Types

type Framework

type Framework struct {
	DomainName       string `json:"domainName"`
	ProjectName      string `json:"projectName"`
	FrameWork        string `json:"framework"`
	FrameworkVersion string `json:"frameworkVersion"`
}

Framework return framework info.

Jump to

Keyboard shortcuts

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