Hierarchy

Constructors

Methods

Constructors

Methods

  • Creates a new audit record for a given source.

    Returns

    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);
    })();

    Parameters

    • entity: IAuditRecord

      Audit record object with mandantory fragments. IAuditRecord implements the IEvent interface.

    Returns Promise<IResult<IAuditRecord>>