Function
addQueryParams
(urlValues url.Values, paramName string, params ...string)
Source from the content-addressed store, hash-verified
| 718 | } |
| 719 | |
| 720 | func 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. |
| 729 | func (c *Client) GetPrometheusRules(filter RuleFilter) ([]*ruler.RuleGroup, string, error) { |
Tested by
no test coverage detected