MCPcopy Index your code
hub / github.com/cortexproject/cortex / addQueryParams

Function addQueryParams

integration/e2ecortex/client.go:720–726  ·  view source on GitHub ↗
(urlValues url.Values, paramName string, params ...string)

Source from the content-addressed store, hash-verified

718}
719
720func addQueryParams(urlValues url.Values, paramName string, params ...string) {
721 for _, paramValue := range params {
722 if paramValue != "" {
723 urlValues.Add(paramName, paramValue)
724 }
725 }
726}
727
728// GetPrometheusRules fetches the rules from the Prometheus endpoint /api/v1/rules.
729func (c *Client) GetPrometheusRules(filter RuleFilter) ([]*ruler.RuleGroup, string, error) {

Callers 1

GetPrometheusRulesMethod · 0.85

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected