Standard library / runtime/metrics

metrics.Description

Describes a metric name, unit, value kind and whether values accumulate monotonically. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
type Description struct {  Name string
  Description string
  Kind ValueKind
  Cumulative bool}

Working Example

Example Snippetgo
package main
import (  "fmt"  "runtime/metrics"  "strings")
func main() { var d metrics.Description = metrics.All()[0]; fmt.Println(strings.Contains(d.Name, ":")) }
Go Reference