blob: 08f55432dcbdbda8ea986d064e5ad87148264b10 [file] [log] [blame]
package metrics2
// GetInt64Metric returns an Int64Metric instance using the default client.
func GetInt64Metric(measurement string, tags ...map[string]string) Int64Metric {
return defaultClient.GetInt64Metric(measurement, tags...)
}
// GetFloat64Metric returns a Float64Metric instance using the default client.
func GetFloat64Metric(measurement string, tags ...map[string]string) Float64Metric {
return defaultClient.GetFloat64Metric(measurement, tags...)
}
// GetFloat64SummaryMetric returns a Float64SummaryMetric instance using the default client.
func GetFloat64SummaryMetric(measurement string, tags ...map[string]string) Float64SummaryMetric {
return defaultClient.GetFloat64SummaryMetric(measurement, tags...)
}
// Convert a bool so it can be represented using an Int64Metric.
func BoolToInt(b bool) int64 {
if b {
return 1
}
return 0
}