File

core/audit-log/audit-log.component.ts

Description

Audit log component allows to show audits list. Component fetches audit records for the source object given as input.

Example

 <c8y-audit-log [source]="sourceId"></c8y-audit-log>

Implements

OnInit

Metadata

Index

Properties
Methods
Inputs

Inputs

source
Type : string | number

The source ID for which audits will be shown in the list.

Methods

Async ngOnInit
ngOnInit()

After page view is initialized, component gets audit records from auditRecords endpoint.

Returns : any

Properties

records
Type : IResultList<IAuditRecord>

Audit records retrieved from auditRecords endpoint.

<div class="inner-scroll">
  <ul class="timeline-list list-condensed m-t-16">
    <li class="timeline-list-item flex-row" *c8yFor="let record of records">
      <small class="timeline-item-date text-right">
        <span>{{ record.time | c8yDate }}</span>
      </small>
      <div class="timeline-item-content flex-row">
        <div class="list-item-body">
          <div class="row text-break-word">
            <div class="col-md-5">
              <span class="text-truncate">{{ record.activity | translate }}</span>
              <small class="text-muted">{{ record.user }}</small>
            </div>
            <div class="col-md-7">
              <div class="small text-truncate-wrap">{{ record.text | translate }}</div>
            </div>
          </div>
        </div>
      </div>
    </li>
  </ul>
</div>

results matching ""

    No results matching ""