IDataAuditApi Interface

Provides methods for adding custom logs.

Definition

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
C#
public interface IDataAuditApi

Example

C#
                    var dataAuditApi = ctx.Use<IDataAuditApi>();
var correlationId = "RootDataClass/e7a7d4fc-9f0b-4496-be13-aa500067a8dd";
var data = new { Description = "To Description" };
var rootDOId = "RootDataClass/e7a7d4fc-9f0b-4496-be13-aa500067a8dd";
dataAuditApi.Log(rootDOId, "test manually audit log", correlationId, new {Description = "New Description"});
var relatedDOId = "RelatedDataClass/f97b09f9-896b-44d5-8885-aa50001be638";
dataAuditApi.Log(relatedDOId, "updated pool period", correlationId, new {SomeField = "Some thing is changed"});
                  

Methods

Enumerate Enumerate Audit Logs.
HardDelete Hard delete audit logs by DataObjectId.
Log Manually log a log entry to Audit log system.
Search Search Audit Logs.

See Also