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

Method add_indicator

stix/core/stix_package.py:112–119  ·  view source on GitHub ↗

Adds an :class:`.Indicator` object to the :attr:`indicators` collection.

(self, indicator)

Source from the content-addressed store, hash-verified

110 self.timestamp = timestamp
111
112 def add_indicator(self, indicator):
113 """Adds an :class:`.Indicator` object to the :attr:`indicators`
114 collection.
115
116 """
117 if self.indicators is None:
118 self.indicators = Indicators()
119 self.indicators.append(indicator)
120
121 def add_campaign(self, campaign):
122 """Adds a :class:`Campaign` object to the :attr:`campaigns` collection.

Callers 1

mainFunction · 0.95

Calls 1

IndicatorsClass · 0.70

Tested by

no test coverage detected