Write error_rate(logs) that returns the fraction of logs whose
level is "error", rounded to 2 decimals. This is the metric you'd
alert on.
Write error_rate(logs) that returns the fraction of logs whose
level is "error", rounded to 2 decimals. This is the metric you'd
alert on.