Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
Drop the path from v0.4 query args
Browse files Browse the repository at this point in the history
This results in requests to 'GET http://localhost:9093/api/v1/silences?api/v1/silences?limit=2147483647' instead of 'GET http://localhost:9093/api/v1/silences?limit=2147483647'. Too much copy&paste.
  • Loading branch information
prymitive committed Jan 26, 2018
1 parent 3736474 commit ded69c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/mapper/v04/silences.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (m SilenceMapper) AbsoluteURL(baseURI string) (string, error) {
func (m SilenceMapper) QueryArgs() string {
// Alertmanager 0.4 uses pagination for silences, pass a huge value so that
// we get all possible silences
return fmt.Sprintf("api/v1/silences?limit=%d", math.MaxInt32)
return fmt.Sprintf("limit=%d", math.MaxInt32)
}

// IsSupported returns true if given version string is supported
Expand Down

0 comments on commit ded69c1

Please sign in to comment.