mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
efe61c18fa
``Target`` will be refactored down the road to support various nuanced endpoint types. Thusly incorporating the scheduling behavior within it will be problematic. To that end, the scheduling behavior has been moved into a separate assistance type to improve conciseness and testability. ``make format`` was also run.
12 lines
300 B
Go
12 lines
300 B
Go
package api
|
|
|
|
import (
|
|
"code.google.com/p/gorest"
|
|
)
|
|
|
|
type MetricsService struct {
|
|
gorest.RestService `root:"/api/" consumes:"application/json" produces:"application/json"`
|
|
|
|
query gorest.EndPoint `method:"GET" path:"/query?{expr:string}&{json:string}&{start:string}&{end:string}" output:"string"`
|
|
}
|