Click or drag to resize

IDataAuditApiSearch Method

Search Audit Logs.

Namespace:  Casewhere.Runtime.DSL.Api
Assembly:  Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.1.0
Syntax
C#
DataAuditQueryResult Search(
	DataAuditApiQuery query
)

Parameters

query
Type: DataAuditApiQuery
The search query.

Return Value

Type: DataAuditQueryResult
Collection of Audit Logs.
Examples
var dataAuditApi = ctx.Use<IDataAuditApi>();
var relatedDOId = "RelatedDataClass/f97b09f9-896b-44d5-8885-aa50001be638";
var filter = FilterBuilder.Create().Eq("DataObjectId", relatedDOId).Build();
var result = dataAuditApi.Search(DataAuditApiQuery.FilterBy(filter));

Log.Info("Total: {Total}", result.Total);
foreach(var auditLog in result.Data)
    Log.Info("{AuditLog}", auditLog);
See Also