Describe the bug
In keep/topologies/topology_processor.py, when creating an Incident with incident_type="topology" , the is_predicted flag is not set. In the ORM model (keep/api/models/db/incident.py), this field defaults to False.
Because of this, topology incidents are incorrectly marked as unpredicted, even though they are, in fact, the result of correlation analysis based on service topology.
To Reproduce
- Open keep/topologies/topology_processor.py.
- Check the Incident constructor call in
_create_application_based_incident.
- Observe that
is_predicted is absent, while is_visible=True and is_candidate=False are present.
- Check
keep/api/models/db/incident.py — is_predicted defaults to False.
Expected behavior
When creating a topological incident, is_predicted=True must be explicitly specified, since the incident is generated algorithmically based on the topological dependency of services, and not by the direct triggering of a custom alert or rule.
Screenshots
Additional context
Version: 0.51.0 | Build: 0cfb50
Describe the bug
In keep/topologies/topology_processor.py, when creating an Incident with
incident_type="topology", theis_predictedflag is not set. In the ORM model (keep/api/models/db/incident.py), this field defaults toFalse.Because of this, topology incidents are incorrectly marked as unpredicted, even though they are, in fact, the result of correlation analysis based on service topology.
To Reproduce
_create_application_based_incident.is_predictedis absent, whileis_visible=Trueandis_candidate=Falseare present.keep/api/models/db/incident.py—is_predicteddefaults toFalse.Expected behavior
When creating a topological incident,
is_predicted=Truemust be explicitly specified, since the incident is generated algorithmically based on the topological dependency of services, and not by the direct triggering of a custom alert or rule.Screenshots
Additional context
Version: 0.51.0 | Build: 0cfb50