traefik/vendor/gopkg.in/ns1/ns1-go.v2/rest/model/stat.go

16 lines
451 B
Go
Raw Normal View History

2018-01-11 16:46:04 +00:00
package model
// // GetQPSStats returns current queries per second (QPS) for the account
// func (c APIClient) GetQPSStats() (v float64, err error) {
// var s map[string]float64
// _, err = c.doHTTPUnmarshal("GET", "https://api.nsone.net/v1/stats/qps", nil, &s)
// if err != nil {
// return v, err
// }
// v, found := s["qps"]
// if !found {
// return v, errors.New("Could not find 'qps' key in returned data")
// }
// return v, nil
// }