Complete the code to start the monitoring agent.
agent.start_monitoring([1])The interval=10 sets the monitoring checks to run every 10 seconds, which is a common default.
Complete the code to log agent errors to a file.
agent.configure_logging(log_file=[1])The log_file parameter expects a file path as a string to write logs.
Fix the error in the code to correctly set the alert threshold.
agent.set_alert_threshold([1]=75)
The correct parameter name is threshold to set alert limits.
Fill both blanks to filter logs by severity and time.
filtered_logs = agent.get_logs(severity=[1], since=[2])
Filtering logs by severity 'ERROR' and time since '2024-01-01T00:00:00Z' helps focus on recent critical issues.
Fill all three blanks to create a summary report with filters.
report = agent.create_report(type=[1], start_date=[2], end_date=[3])
The report type 'errors' with start and end dates filters the report to April 2024 error data.
