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

Method add_related_indicator

stix/incident/__init__.py:180–210  ·  view source on GitHub ↗

Adds an Related Indicator to the :attr:`related_indicators` list property of this :class:`Incident`. The `indicator` parameter must be an instance of :class:`.RelatedIndicator` or :class:`Indicator`. If the `indicator` parameter is ``None``, no item will be added to

(self, value)

Source from the content-addressed store, hash-verified

178 self.coa_requested.append(value)
179
180 def add_related_indicator(self, value):
181 """Adds an Related Indicator to the :attr:`related_indicators` list
182 property of this :class:`Incident`.
183
184 The `indicator` parameter must be an instance of
185 :class:`.RelatedIndicator` or :class:`Indicator`.
186
187 If the `indicator` parameter is ``None``, no item will be added to the
188 ``related_indicators`` list property.
189
190 Calling this method is the same as calling ``append()`` on the
191 ``related_indicators`` property.
192
193 See Also:
194 The :class:`RelatedIndicators` documentation.
195
196 Note:
197 If the `indicator` parameter is not an instance of
198 :class:`.RelatedIndicator` an attempt will be
199 made to convert it to one.
200
201 Args:
202 indicator: An instance of :class:`Indicator` or
203 :class:`.RelatedIndicator`.
204
205 Raises:
206 ValueError: If the `indicator` parameter cannot be converted into
207 an instance of :class:`.RelatedIndicator`
208
209 """
210 self.related_indicators.append(value)
211
212 def add_related_observable(self, value):
213 """Adds a Related Observable to the ``related_observables`` list

Callers 1

Calls

no outgoing calls

Tested by 1