# hawkeye-common **Repository Path**: gunsluo/hawkeye-common ## Basic Information - **Project Name**: hawkeye-common - **Description**: open-hawkeye third-party agent push client - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-08-24 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #hawkeye-common ###示例代码 - [查看](http://git.oschina.net/gunsluo/third-party-push-example#第三方上报采集数据golang代码示例_1) ###数据结构 采集数据接口函数, 每个FuncsAndInterval会有单独的线程运行 ```go type FuncsAndInterval struct { Fs []func() []*MetricValue Interval int } ``` ```go type MetricValue struct { Endpoint string `json:"endpoint"` //主机名 Metric string `json:"metric"` //监控项名称 Value interface{} `json:"value"` //监控值,支持float64 int64, string会转为float64 Step int64 `json:"step"` //监控间隔 Type string `json:"counterType"` //监控类型 GAUGE:单时间点采集 COUNTER:历史时间点差采集 Tags string `json:"tags"` //tag根据业务自定义 Timestamp int64 `json:"timestamp"` //时间戳 } ```