types.go 408 B

1234567891011121314151617
  1. package opentsdb
  2. type OpenTsdbQuery struct {
  3. Start int64 `json:"start"`
  4. End int64 `json:"end"`
  5. Queries []OpenTsdbMetric `json:"queries"`
  6. }
  7. type OpenTsdbMetric struct {
  8. Metric string `json:"metric"`
  9. Aggregator string `json:"aggregator"`
  10. }
  11. type OpenTsdbResponse struct {
  12. Metric string `json:"metric"`
  13. DataPoints map[string]float64 `json:"dps"`
  14. }