Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphItem ¶
type GraphItem struct { Endpoint string `json:"endpoint"` Metric string `json:"metric"` Tags map[string]string `json:"tags"` Value float64 `json:"value"` Timestamp int64 `json:"timestamp"` DsType string `json:"dstype"` Step int `json:"step"` Heartbeat int `json:"heartbeat"` Min string `json:"min"` Max string `json:"max"` }
DsType 即 rrd 中的 data source 的类型:GAUGE | COUNTER | DERIVE
func (*GraphItem) PrimaryKey ¶
type HistoryData ¶
type JudgeItem ¶
type JudgeItem struct { Endpoint string `json:"endpoint"` Metric string `json:"metric"` Value float64 `json:"value"` Timestamp int64 `json:"timestamp"` JudgeType string `json:"judgeType"` Tags map[string]string `json:"tags"` }
func (*JudgeItem) PrimaryKey ¶
type MetaData ¶
type MetricValue ¶
type MetricValue struct { Endpoint string `json:"endpoint"` Metric string `json:"metric"` Value interface{} `json:"value"` Step int64 `json:"step"` Type string `json:"counterType"` Tags string `json:"tags"` Timestamp int64 `json:"timestamp"` }
func (*MetricValue) String ¶
func (u *MetricValue) String() string
type NullRpcRequest ¶
type NullRpcRequest struct { }
type RpcResponse ¶
type RpcResponse struct {
Code int `json:"code"` // 0 success; 1 fail
}
func (*RpcResponse) String ¶
func (u *RpcResponse) String() string
type TransferResponse ¶
func (*TransferResponse) String ¶
func (u *TransferResponse) String() string
Click to show internal directories.
Click to hide internal directories.