public TaskResourceRep sendAlert(String source,Integer eventId,List<String> nodeIds,List<String> nodeNames,List<String> logNames,Integer severity,String start,String end,String msgRegex,Integer maxCount,boolean multipleRequests,EventParameters eventParameters){
  UriBuilder builder=client.uriBuilder(CALLHOME_ALERT_URL);
  addQueryParam(builder,SOURCE_PARAM,source);
  addQueryParam(builder,EVENT_ID_PARAM,eventId);
  if ((nodeIds != null) && (!nodeIds.isEmpty())) {
    addQueryParam(builder,NODE_ID_PARAM,nodeIds);
  }
  if ((nodeNames != null) && (!nodeNames.isEmpty())) {
    addQueryParam(builder,NODE_NAME_PARAM,nodeNames);
  }
  addQueryParam(builder,LOG_NAME_PARAM,logNames);
  addQueryParam(builder,SEVERITY_PARAM,severity);
  addQueryParam(builder,START_TIME_PARAM,start);
  addQueryParam(builder,END_TIME_PARAM,end);
  addQueryParam(builder,MSG_REGEX_PARAM,msgRegex);
  addQueryParam(builder,MAX_COUNT_PARAM,maxCount);
  if (multipleRequests) {
    addQueryParam(builder,FORCE_PARAM,FORCE);
  }
  return client.postURI(TaskResourceRep.class,eventParameters,builder.build());
}

public TaskResourceRep sendAlert ( String source , Integer eventId , List < String > nodeIds , List < String > nodeNames , List < String > logNames , Integer severity , String start , String end , String msgRegex , Integer maxCount , boolean multipleRequests , EventParameters eventParameters ) { UriBuilder builder = client . uriBuilder ( CALLHOME_ALERT_URL ) ; addQueryParam ( builder , SOURCE_PARAM , source ) ; addQueryParam ( builder , EVENT_ID_PARAM , eventId ) ; if ( ( nodeIds != null ) && ( ! nodeIds . isEmpty ( ) ) ) { addQueryParam ( builder , NODE_ID_PARAM , nodeIds ) ; } if ( ( nodeNames != null ) && ( ! nodeNames . isEmpty ( ) ) ) { addQueryParam ( builder , NODE_NAME_PARAM , nodeNames ) ; } addQueryParam ( builder , LOG_NAME_PARAM , logNames ) ; addQueryParam ( builder , SEVERITY_PARAM , severity ) ; addQueryParam ( builder , START_TIME_PARAM , start ) ; addQueryParam ( builder , END_TIME_PARAM , end ) ; addQueryParam ( builder , MSG_REGEX_PARAM , msgRegex ) ; addQueryParam ( builder , MAX_COUNT_PARAM , maxCount ) ; if ( multipleRequests ) { addQueryParam ( builder , FORCE_PARAM , FORCE ) ; } return client . postURI ( TaskResourceRep . class , eventParameters , builder . build ( ) ) ; }
create an alert event with error logs attached , which aid in troubleshooting customer issues and sends it to connectemc . < p > api call : post / callhome / alert
