def is_relevant(self, incident, new_event_type):
        # There is already an incident
        if incident.event_type:
            # True if not acknowleged or type is resolve
            return (incident.event_type != Incident.ACKNOWLEDGE or
                    (incident.event_type == Incident.ACKNOWLEDGE and
                             new_event_type == Incident.RESOLVE))
        # New incident
        else:
            # True if this is a trigger action
            return new_event_type == Incident.TRIGGER
Disables static rule for given ip address
dataset/ETHPy150Open ustream/openduty/openduty/incidents.py/IncidentViewSet.is_relevant--crossover with--dataset/ETHPy150Open jasonhancock/cloudstack-python-client/CloudStack/Client.py/Client.disableStaticNat