| 7 | from mixbox import entities, fields |
| 8 | |
| 9 | class Time(stix.Entity): |
| 10 | _binding = incident_binding |
| 11 | _binding_class = _binding.TimeType |
| 12 | _namespace = "http://docs.oasis-open.org/cti/ns/stix/incident-1" |
| 13 | |
| 14 | first_malicious_action = fields.TypedField("First_Malicious_Action", DateTimeWithPrecision) |
| 15 | initial_compromise = fields.TypedField("Initial_Compromise", DateTimeWithPrecision) |
| 16 | first_data_exfiltration = fields.TypedField("First_Data_Exfiltration", DateTimeWithPrecision) |
| 17 | incident_discovery = fields.TypedField("Incident_Discovery", DateTimeWithPrecision) |
| 18 | incident_opened = fields.TypedField("Incident_Opened", DateTimeWithPrecision) |
| 19 | containment_achieved = fields.TypedField("Containment_Achieved", DateTimeWithPrecision) |
| 20 | restoration_achieved = fields.TypedField("Restoration_Achieved", DateTimeWithPrecision) |
| 21 | incident_reported = fields.TypedField("Incident_Reported", DateTimeWithPrecision) |
| 22 | incident_closed = fields.TypedField("Incident_Closed", DateTimeWithPrecision) |
| 23 | |
| 24 | def __init__(self, first_malicious_action=None, initial_compromise=None, |
| 25 | first_data_exfiltration=None, incident_discovery=None, |
| 26 | incident_opened=None, containment_achieved=None, |
| 27 | restoration_achieved=None, incident_reported=None, |
| 28 | incident_closed=None): |
| 29 | super(Time, self).__init__() |
| 30 | self.first_malicious_action = first_malicious_action |
| 31 | self.initial_compromise = initial_compromise |
| 32 | self.first_data_exfiltration = first_data_exfiltration |
| 33 | self.incident_discovery = incident_discovery |
| 34 | self.incident_opened = incident_opened |
| 35 | self.containment_achieved = containment_achieved |
| 36 | self.restoration_achieved = restoration_achieved |
| 37 | self.incident_reported = incident_reported |
| 38 | self.incident_closed = incident_closed |
no outgoing calls
no test coverage detected