func HandleGetAlertConditions(
	user *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, _ httprouter.Params,
) (interface{}, int, error) {
	// GET /alerts/conditions Get a list of all alert conditions
	arr, total, sc, err := lgc.GetAlertConditions()
	if err != nil {
		return arr, sc, err
	}
	return &graylog.AlertConditionsBody{
		AlertConditions: arr, Total: total}, sc, nil
}
// HandleGetAlertConditions is the handler of GET Alert Conditions API.
HandleGetAlertConditions is the handler of GET Alert Conditions API.
// HandleGetAlertConditions is the handler of GET Alert Conditions API .
func HandleGetAlertConditions(
	user *graylog.User, lgc *logic.Logic,
	w http.ResponseWriter, r *http.Request, _ httprouter.Params,
) (interface{}, int, error) {
	arr, total, sc, err := lgc.GetAlertConditions()
	if err != nil {
		return arr, sc, err
	}
	return &graylog.AlertConditionsBody{
		AlertConditions: arr, Total: total}, sc, nil
}
func HandleGetAlertConditions ( user * graylog . User , lgc * logic . Logic , w http . ResponseWriter , r * http . Request , _ httprouter . Params , ) ( interface { } , int , error ) { arr , total , sc , err := lgc . GetAlertConditions ( ) if err != nil { return arr , sc , err } return & graylog . AlertConditionsBody { AlertConditions : arr , Total : total } , sc , nil }
HandleGetAlertConditions is the handler of GET Alert Conditions API.
HandleGetAlertConditions is the handler of GET Alert Conditions API .
// GET /alerts/conditions Get a list of all alert conditions