influxdb/monitor/build_info.go

21 lines
387 B
Go

package monitor
// system captures build diagnostics
type build struct {
Version string
Commit string
Branch string
Time string
}
func (b *build) Diagnostics() (*Diagnostic, error) {
diagnostics := map[string]interface{}{
"Version": b.Version,
"Commit": b.Commit,
"Branch": b.Branch,
"Build Time": b.Time,
}
return DiagnosticFromMap(diagnostics), nil
}