2019-08-13 14:34:14 -06:00
|
|
|
// Copyright 2019 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// Package unit holds the definitions for the units you can use in telemetry.
|
|
|
|
package unit
|
|
|
|
|
|
|
|
// Unit is used to specify the units for a given measure.
|
|
|
|
// This is can used for display purposes.
|
|
|
|
type Unit string
|
|
|
|
|
|
|
|
const (
|
2020-01-14 16:48:43 -07:00
|
|
|
// Dimensionless indicates that a measure has no specified units.
|
2019-08-13 14:34:14 -06:00
|
|
|
Dimensionless = "1"
|
2020-01-14 16:48:43 -07:00
|
|
|
// Bytes indicates that that a measure is recording number of bytes.
|
2019-08-13 14:34:14 -06:00
|
|
|
Bytes = "By"
|
2020-01-14 16:48:43 -07:00
|
|
|
// Milliseconds indicates that a measure is recording a duration in milliseconds.
|
2019-08-13 14:34:14 -06:00
|
|
|
Milliseconds = "ms"
|
|
|
|
)
|