text: import "go.chromium.org/luci/common/tsmon/field"
  Package field contains constructors for metric field definitions.
  When you create a metric you must specify the names and types of the fields that can appear on that metric. When you increment the metric's value you must then pass values for all the fields you defined earlier.
  doc.go field.go serialize.go utils.go
  Canonicalize returns a copy of fieldVals converted to the canonical types for the metric's fields (string, int64, or bool). Canonicalize returns an error if fieldVals is the wrong length or contains value of the wrong type.
  Hash returns a uint64 hash of fieldVals.
  func Serialize(fields []Field, values []interface{}) []*pb.MetricsData_MetricField
  Serialize returns a slice of ts_mon_proto.MetricsData.MetricsField messages representing the field names and values.
  func SerializeDescriptor(fields []Field) []*pb.MetricsDataSet_MetricFieldDescriptor
  SerializeDescriptor returns a slice of field descriptors, representing just the names and types of fields.
  Field is the definition of a metric field. It has a name and a type (string, int or bool).
  Bool returns a new bool-typed field.
  Int returns a new int-typed field. Internally values for these fields are stored as int64s.
  String returns a new string-typed field.
  Package field imports 4 packages (graph) and is imported by 48 packages. Updated 2019-12-06. Refresh now. Tools for package owners.