Сorrelation based on rating

How can I implement operation rules based on the rating.

For example I have four different events that may indicate an attempt to implement the threat. Every event has its own value for the rating, if the rating has reached a critical value, then generate an event.