Back to problems

Evaluate Hierarchical Alert Routing Rules

Algorithm · OpenAI · Medium

Build an evaluator that decides where an incoming alert should be delivered. You are given an Alert together with a Config, and you must produce the ordered list of receivers that ought to be notified. Input A single JSON object arrives on standard input: The shape of config is: Within Alert.labels, no key appears twice. Matching rules A route matches only if all of its matchers match. Each matcher operator behaves as follows: =: the label is present and its value is equal…

Loading the rest of the question…