Home > @opengovsg/logging > RecordDownloadedInput
RecordDownloadedInput interface
Input for DataAccessAudit.recordDownloaded().
Signature:
typescript
export interface RecordDownloadedInput extends AuditInputBaseExtends: AuditInputBase
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| classification | string | The data's classification. | |
| method | string | How it was downloaded, e.g. csv, pdf, api. | |
| resourceId | string | The downloaded resource's identifier. | |
| resourceType? | string | (Optional) The kind of resource, if useful. | |
| role? | string | (Optional) The acting user's role, if known. | |
| sizeBytes | number | Size of the download in bytes. |