getAuditRecordsForTimePeriod method
Returns records from the audit log, for a time period back from the current date. For example, you can use this method to get the last 3 months of records.
This contains information about events like space exports, group membership changes, app installations, etc. For more information, see Audit log in the Confluence administrator's guide.
Permissions required: 'Confluence Administrator' global permission.
Implementation
Future<AuditRecordArray> getAuditRecordsForTimePeriod(
{int? number,
String? units,
String? searchString,
int? start,
int? limit}) async {
return AuditRecordArray.fromJson(await _client.send(
'get',
'wiki/rest/api/audit/since',
queryParameters: {
if (number != null) 'number': '$number',
if (units != null) 'units': units,
if (searchString != null) 'searchString': searchString,
if (start != null) 'start': '$start',
if (limit != null) 'limit': '$limit',
},
));
}