Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AuditService

Hierarchy

Index

Constructors

Methods

Constructors

constructor

Methods

create

  • Parameters

    Returns Promise<IResult<IAuditRecord>>

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

detail

  • Parameters

    Returns Promise<IResult<IAuditRecord>>

    Response wrapped in IResult

    Example

    
       const auditId: number = 1;
    
       (async () => {
         const {data, res} = await auditService.detail(auditId);
      })();
    

list

Generated using TypeDoc