class MessageBusStatus {

	public String getJsonPublishedMessagesPerMicroservice() {
		JsonArrayBuilder arrayBuilder = Json.createArrayBuilder();
		publishedMessagesPerMicroservice.forEach((key, value) -> {
			JsonObjectBuilder objectBuilder = Json.createObjectBuilder()
					.add("id", key)
					.add("messagecount", value);
			arrayBuilder.add(objectBuilder);

		});
		return arrayBuilder.build().toString();
	}

	public  MessageBusStatus();

}