Optional
realtime: RealtimeAudit record object with mandantory fragments. IAuditRecord implements the [[IEvent]] interface.
Response wrapped in [[IResult]]
Example
const mandantoryObject: IAuditRecord = {
type: AuditRecordType.ALARM,
time: '2018-05-02T10:08:00Z',
severity: Severity.MAJOR,
source: {id: 1}
};
(async () => {
const {data, res} = await auditService.create(mandantoryObject);
})();
Gets the details of selected audit record.
Entity or Id of the entity.
Response wrapped in [[IResult]]
Example
const auditId: number = 1;
(async () => {
const {data, res} = await auditService.detail(auditId);
})();
Gets the list of audit records filtered by parameters.
Object containing filters for querying audit records.
Example
const filter: object = {
severity: Severity.MAJOR,
pageSize: 100,
withTotalPages: true
};
(async () => {
const {data, res, paging} = await auditService.list(filter);
})();
Response wrapped in [[IResultList]]
Creates a new audit record for a given source.