public String format(AlarmEntity alarmEntity) {
        StringBuilder message = new StringBuilder();
        for (int i = 0; i < formatSegments.size(); i++) {
            message.append(formatSegments.get(i));
            if (i != formatSegments.size() - 1) {
                switch (valueFroms.get(i)) {
                    case ID:
                        message.append(alarmEntity.getId0());
                        break;
                    case NAME:
                        message.append(alarmEntity.getName());
                }
            }
        }
        return message.toString();
    }
This is a formatter especially for alarm message.
<p>
Format string in alarm-settings.yml, such as:
<p>
- Successful rate of endpoint {name} is lower than 75%
oap-server/server-alarm-plugin/src/main/java/org/apache/skywalking/oap/server/core/alarm/provider/AlarmMessageFormatter.java