pycadf package¶
Subpackages¶
Submodules¶
pycadf.attachment module¶
pycadf.cadftaxonomy module¶
pycadf.cadftype module¶
pycadf.credential module¶
- class pycadf.credential.Credential(token, type=None)[source]¶
Bases:
CADFAbstractType
- token¶
- type¶
pycadf.endpoint module¶
pycadf.event module¶
- class pycadf.event.Event(eventType='activity', id=None, eventTime=None, action='unknown', outcome='unknown', initiator=None, initiatorId=None, target=None, targetId=None, severity=None, reason=None, observer=None, observerId=None, name=None)[source]¶
Bases:
CADFAbstractType
- action¶
- add_attachment(attachment_val)[source]¶
Add Attachment to Event
- Parameters:
attachment_val – Attachment to add to Event
- add_measurement(measure_val)[source]¶
Add a measurement value
- Parameters:
measure_val – Measurement data type to be added to Event
- add_reporterstep(step)[source]¶
Add a Reporterstep
- Parameters:
step – Reporterstep to be added to reporterchain
- eventTime¶
- eventType¶
- id¶
- initiator¶
- initiatorId¶
- name¶
- observer¶
- observerId¶
- outcome¶
- reason¶
- severity¶
- target¶
- targetId¶
pycadf.eventfactory module¶
- class pycadf.eventfactory.EventFactory[source]¶
Bases:
object
Factory class to create different required attributes for the following CADF event types: ‘activity’: for tracking any interesting system activities for audit ‘monitor’: Events that carry Metrics and Measurements and support standards such as NIST ‘control’: For audit events that are based upon (security) policies and reflect some policy decision.
pycadf.geolocation module¶
pycadf.host module¶
pycadf.identifier module¶
pycadf.measurement module¶
pycadf.metric module¶
pycadf.path module¶
pycadf.reason module¶
pycadf.reporterstep module¶
pycadf.resource module¶
- class pycadf.resource.Resource(id=None, typeURI='unknown', name=None, ref=None, domain=None, credential=None, host=None, geolocation=None, geolocationId=None)[source]¶
Bases:
CADFAbstractType
- add_address(addr)[source]¶
Add CADF endpoints to Resource
- Parameters:
addr – CADF Endpoint to add to Resource
- add_attachment(attach_val)[source]¶
Add CADF attachment to Resource
- Parameters:
attach_val – CADF Attachment to add to Resource
- credential¶
- domain¶
- geolocation¶
- geolocationId¶
- host¶
- id¶
- name¶
- ref¶
- typeURI¶