def METHOD_NAME(self):
    with self.tasks():
        METHOD_NAME = self.create_alert_rule(
            name="some rule",
            query="",
            aggregate="count()",
            time_window=1,
            threshold_period=1,
            resolve_threshold=10,
        )
        trigger = create_alert_rule_trigger(METHOD_NAME, CRITICAL_TRIGGER_LABEL, 100)
        create_alert_rule_trigger_action(
            trigger,
            AlertRuleTriggerAction.Type.EMAIL,
            AlertRuleTriggerAction.TargetType.USER,
            str(self.user.id),
        )
        return METHOD_NAME