Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API is a very simple API used by Thanos Ruler.
func NewAPI ¶
func NewAPI( logger log.Logger, reg prometheus.Registerer, ruleGroups rules.UnaryClient, activeAlerts alertsRetriever, ) *API
NewAPI creates an Thanos ruler API.
func (*API) Register ¶
func (api *API) Register(r *route.Router, tracer opentracing.Tracer, logger log.Logger, ins extpromhttp.InstrumentationMiddleware)
Click to show internal directories.
Click to hide internal directories.