Skip to content

Commit 3dc22b9

Browse files
committed
Public RulesAPI no longer used. Delete it.
Now an internal implementation detail of ruler while we migrate away from configs server for ruler configs.
1 parent 82b9ee8 commit 3dc22b9

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

pkg/configs/client/configs.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -123,20 +123,3 @@ func (c *AlertManagerConfigsAPI) GetConfigs(since configs.ID) (*ConfigsResponse,
123123
endpoint := fmt.Sprintf("%s/private/api/prom/configs/alertmanager%s", c.URL.String(), suffix)
124124
return GetConfigs(endpoint, c.Timeout, since)
125125
}
126-
127-
// RulesAPI allows retrieving recording and alerting rules.
128-
type RulesAPI struct {
129-
URL *url.URL
130-
Timeout time.Duration
131-
}
132-
133-
// GetConfigs returns all Cortex configurations from a configs API server
134-
// that have been updated after the given configs.ID was last updated.
135-
func (c *RulesAPI) GetConfigs(since configs.ID) (*ConfigsResponse, error) {
136-
suffix := ""
137-
if since != 0 {
138-
suffix = fmt.Sprintf("?since=%d", since)
139-
}
140-
endpoint := fmt.Sprintf("%s/private/api/prom/configs/rules%s", c.URL.String(), suffix)
141-
return GetConfigs(endpoint, c.Timeout, since)
142-
}

0 commit comments

Comments
 (0)