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