MCPcopy Create free account
hub / github.com/STIXProject/python-stix / add_incident

Method add_incident

stix/core/stix_package.py:141–148  ·  view source on GitHub ↗

Adds an :class:`.Incident` object to the :attr:`incidents` collection.

(self, incident)

Source from the content-addressed store, hash-verified

139 self.observables.add(observable)
140
141 def add_incident(self, incident):
142 """Adds an :class:`.Incident` object to the :attr:`incidents`
143 collection.
144
145 """
146 if self.incidents is None:
147 self.incidents = Incidents()
148 self.incidents.append(incident)
149
150 def add_threat_actor(self, threat_actor):
151 """Adds an :class:`.ThreatActor` object to the :attr:`threat_actors`

Callers

nothing calls this directly

Calls 1

IncidentsClass · 0.70

Tested by

no test coverage detected