Monitoring alerts formatting improvements
This commit is contained in:
		
							parent
							
								
									04cab4d5d1
								
							
						
					
					
						commit
						e9a7bc440e
					
				@ -25,7 +25,7 @@ public class TransportInfo {
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public String toString() {
 | 
			
		||||
        return String.format("%s (%s)", transportType.getName(), baseUrl);
 | 
			
		||||
        return String.format("*%s* (%s)", transportType.getName(), baseUrl);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -34,7 +34,7 @@ public class HighLatencyNotification implements Notification {
 | 
			
		||||
        StringBuilder text = new StringBuilder();
 | 
			
		||||
        text.append("Some of the latencies are higher than ").append(thresholdMs).append(" ms:\n");
 | 
			
		||||
        highLatencies.forEach(latency -> {
 | 
			
		||||
            text.append(String.format("[%s] %s\n", latency.getKey(), latency.getFormattedValue()));
 | 
			
		||||
            text.append(String.format("[%s] *%s*\n", latency.getKey(), latency.getFormattedValue()));
 | 
			
		||||
        });
 | 
			
		||||
        return text.toString();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -38,7 +38,7 @@ monitoring:
 | 
			
		||||
  check_timeout_ms: '${CHECK_TIMEOUT_MS:5000}'
 | 
			
		||||
 | 
			
		||||
  # Failures threshold for notifying
 | 
			
		||||
  failures_threshold: '${FAILURES_THRESHOLD:2}'
 | 
			
		||||
  failures_threshold: '${FAILURES_THRESHOLD:1}'
 | 
			
		||||
  # Notify after each REPEATED_FAILURE_NOTIFICATION subsequent failures, 0 to notify only once on first failure
 | 
			
		||||
  repeated_failure_notification: '${REPEATED_FAILURE_NOTIFICATION:4}'
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user