Latihan 1: Alerting & On-Call — DevOps

Latihan 1 dari materi Alerting & On-Call di DevOps — praktek dengan editor kode interaktif, test case otomatis, dan hint terpandu. Langsung jalan di browser.

Buat fungsi evaluateAlert(rule, currentValue) yang mengevaluasi apakah alert harus triggered.

rule format: { metric, operator, threshold, severity }

Return: { triggered: boolean, severity, metric, currentValue, threshold }

Hint