| 897 | } |
| 898 | |
| 899 | func (h *httpAPI) AlertManagers(ctx context.Context) (AlertManagersResult, error) { |
| 900 | u := h.client.URL(epAlertManagers, nil) |
| 901 | |
| 902 | req, err := http.NewRequest(http.MethodGet, u.String(), nil) |
| 903 | if err != nil { |
| 904 | return AlertManagersResult{}, err |
| 905 | } |
| 906 | |
| 907 | _, body, _, err := h.client.Do(ctx, req) |
| 908 | if err != nil { |
| 909 | return AlertManagersResult{}, err |
| 910 | } |
| 911 | |
| 912 | var res AlertManagersResult |
| 913 | err = json.Unmarshal(body, &res) |
| 914 | return res, err |
| 915 | } |
| 916 | |
| 917 | func (h *httpAPI) CleanTombstones(ctx context.Context) error { |
| 918 | u := h.client.URL(epCleanTombstones, nil) |