code: func PauseAllAlerts(c *m.ReqContext, dto dtos.PauseAllAlertsCommand) Response {
  	updateCmd := m.PauseAllAlertCommand{
  		Paused: dto.Paused,
  	}
  
  	if err := bus.Dispatch(&updateCmd); err != nil {
  		return Error(500, "Failed to pause alerts", err)
  	}
  
  	var response m.AlertStateType = m.AlertStatePending
  	pausedState := "un paused"
  	if updateCmd.Paused {
  		response = m.AlertStatePaused
  		pausedState = "paused"
  	}
  
  	result := map[string]interface{}{
  		"state":          response,
  		"message":        "alerts " + pausedState,
  		"alertsAffected": updateCmd.ResultCount,
  	}
  
  	return JSON(200, result)
  }
docs: //POST /api/admin/pause-all-alerts