Intelligence Source¶
-
class
trustar.models.intelligence_source.
IntelligenceSource
(key=None, name=None)¶ Models an IntelligenceSource.
Variables: - key (str) – A string that uniquely identifies the source, e.g. virustotal
- name (str) – A human-readable name of the source, as a human-readable string, e.g. “VirusTotal”
-
classmethod
from_dict
(source)¶ Create an IntelligenceSource object from a dictionary.
Parameters: source – The dictionary. Returns: The IntelligenceSource object.
-
to_dict
(remove_nones=False)¶ Creates a dictionary representation of the source.
Parameters: remove_nones – Whether None
values should be filtered out of the dictionary. Defaults toFalse
.Returns: A dictionary representation of the source.