Versions in this module Expand all Collapse all v0 v0.0.2 Feb 5, 2024 v0.0.1 Jan 23, 2024 Changes in this version + const AlarmRuleUrl + const ChartDataUrl + const ChartListUrl + const ChartUrl + const CodeAggregatorError + const CodeApiNotFound + const CodeDownSampleError + const CodeExecMySQLError + const CodeExecTSDBSqlError + const CodeGetConnPoolError + const CodeInvalidParamError + const CodeJsonDecodeError + const CodeMaxQueryRangeError + const CodeMethodNotFound + const CodeMetricError + const CodeOK + const CodeOrderError + const CodeSplitTagsError + const CodeStarKeysError + const CodeTagCountError + const ContactUrl + const CurveUrl + const DashboardUrl + const MagicNumber + const MaxExpireTime + const MetricUrl + const MetricWhiteListUrl + const PduHeadSize + const PduTypeMetrics + const PduVersion + const PutMetricsUrl + const RangeUrl + const TagKeyUrl + const TagValueUrl + const TopNUrl + var CodeMsg = map[int]string + var Json = jsoniter.ConfigFastest + func CheckAggregator(aggregator string) (string, error) + func CheckOrder(order string) (string, error) + func DecodeRequest(r *http.Request, entity interface{}) error + func GetIPFromConnAddr(addr string) string + func MethodNotSupport(w http.ResponseWriter) + func SerializeMetricValues(values []MetricValue) ([]byte, error) + func TransferDownSample(downSample string) (int64, error) + func WriteQueryResp(w http.ResponseWriter, code int, data interface{}) + type CurveData struct + DPS []TimeValuePoint + Metric string + Tags map[string]string + type MetricReq struct + Filters map[string][]string + Metric string + Tags map[string]string + type MetricValue struct + Metric string + Tags map[string]string + Timestamp uint64 + Value float64 + func CollectHttpMetrics(w http.ResponseWriter, req *http.Request) ([]MetricValue, error) + func UnmarshalPayload(data []byte) ([]MetricValue, error) + func (m *MetricValue) IsValid() bool + type PduHeader struct + Magic uint32 + PayloadLength uint32 + Protocol uint16 + Sequence uint32 + Version uint16 + func DeserializePduHeader(data []byte) (PduHeader, error) + type QueryResp struct + Code int + Data interface{} + Msg string + type TimeSeriesDataRequest struct + Aggregator string + DownSample int64 + End int64 + Last int64 + Metrics []MetricReq + Start int64 + Token string + type TimeValuePoint struct + TimeStamp int64 + Value float64 + type TopNData struct + Metric string + Name string + Tags map[string]string + Value float64 + type TopNRequest struct + Aggregator string + DownSample int64 + End int64 + Field string + Filters map[string][]string + Last int64 + Limit int + Metric string + Order string + Start int64 + Tags map[string]string + Token string