Click or drag to resize

IDataAuditApi Interface

Provides methods for adding custom logs.

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

The IDataAuditApi type exposes the following members.

Methods
  NameDescription
Public methodLog
Manually log a log entry to Audit log system.
Public methodCode exampleSearch
Search Audit Logs.
Top
Examples
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"});
See Also