core/audit-log/audit-log.component.ts
Audit log component allows to show audits list. Component fetches audit records for the source object given as input.
Example
Example :
OnInit
changeDetection | ChangeDetectionStrategy.OnPush |
selector | c8y-audit-log |
templateUrl | ./audit-log.component.html |
Properties |
Methods |
Inputs |
source |
Type : string | number
|
The source ID for which audits will be shown in the list. |
type |
Type : AuditRecordType
|
The type of audit record to search for. |
ngOnInit |
ngOnInit()
|
After page view is initialized, component gets audit records from auditRecords endpoint.
Returns :
void
|
records |
Type : Promise<IResultList<IAuditRecord>>
|
Audit records retrieved from auditRecords endpoint. |