mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-27 16:42:14 +00:00
Unused function 'QTimeRange'
Signed-off-by: aixeshunter <aixeshunter@gmail.com>
This commit is contained in:
parent
cfc0d9c558
commit
4deb083823
@ -511,8 +511,6 @@ type query struct {
|
||||
// should be dropped from a result set for a given time.
|
||||
type silenceFilter func(*pb.Silence, *Silences, time.Time) (bool, error)
|
||||
|
||||
var errNotSupported = errors.New("query parameter not supported")
|
||||
|
||||
// QIDs configures a query to select the given silence IDs.
|
||||
func QIDs(ids ...string) QueryParam {
|
||||
return func(q *query) error {
|
||||
@ -521,15 +519,6 @@ func QIDs(ids ...string) QueryParam {
|
||||
}
|
||||
}
|
||||
|
||||
// QTimeRange configures a query to search for silences that are active
|
||||
// in the given time range.
|
||||
// TODO(fabxc): not supported yet.
|
||||
func QTimeRange(start, end time.Time) QueryParam {
|
||||
return func(q *query) error {
|
||||
return errNotSupported
|
||||
}
|
||||
}
|
||||
|
||||
// QMatches returns silences that match the given label set.
|
||||
func QMatches(set model.LabelSet) QueryParam {
|
||||
return func(q *query) error {
|
||||
|
Loading…
Reference in New Issue
Block a user