/usr/share/gocode/src/github.com/influxdb/enterprise-client/v1/stats.go is in golang-github-influxdb-enterprise-client-dev 0.0~git20151113.0.25665cb-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | package client
import "fmt"
type Stats struct {
Product string `json:"-"`
ClusterID string `json:"cluster_id"`
ServerID string `json:"server_id"`
Data []StatsData `json:"stats"`
}
type StatsData struct {
Name string `json:"name"`
Tags Tags `json:"tags"`
Values Values `json:"values"`
}
func (s Stats) Path() string {
return fmt.Sprintf("/stats/%s", s.Product)
}
|