Complete the code to set the alert threshold to 80%.
alert_threshold = [1]The alert threshold is set to 80, meaning alerts trigger when the metric reaches 80%.
Complete the code to define the alert policy name as 'High CPU Usage'.
alert_policy_name = '[1]'
The alert policy name is set to 'High CPU Usage' to identify alerts related to CPU load.
Fix the error in the alert condition to check if CPU usage is greater than the threshold.
if cpu_usage [1] alert_threshold:
The condition should check if CPU usage is greater than the threshold to trigger an alert.
Fill both blanks to create a policy that triggers when memory usage is above 75% and duration is over 5 minutes.
if memory_usage [1] 75 and duration [2] 5:
The policy triggers when memory usage is greater than 75 and duration is at least 5 minutes.
Fill both blanks to define an alert dictionary with keys 'metric', 'threshold', and 'policy'.
alert = {
'[1]': 'cpu_usage',
'[2]': 80
}The alert dictionary starts with '{', and has keys 'metric' and 'threshold' with their values.