code: @GET
  	@Produces(MediaType.APPLICATION_JSON)
  	@Description("Returns all alerts.")
  	public List<AlertDto> getAlerts(@Context HttpServletRequest req, @QueryParam("alertname") String alertName,
  									@QueryParam("ownername") String ownerName,
  									@QueryParam("shared") boolean shared,
  									@QueryParam("limit")  Integer limit){
  		
  		PrincipalUser owner = validateAndGetOwner(req, ownerName);
  		List<Alert> result = getAlertsObj(alertName, owner, shared, false, limit);
  		return AlertDto.transformToDto(result);
  	}
docs: Returns the list of alerts created by the user.
  
  @param   req        The HttpServlet request object. Cannot be null.
  @param   alertName  Name of the alert. It is optional.
  @param   ownerName  Name of the owner. It is optional.
  @param   shared     Flag for shared alerts. It is optional.
  @param   limit      Number of alerts to return. It is optional.
  
  @return  The list of alerts created by the user.