Toggle menu

History Digest API

History Digests exist to aggregate data from histories and create records in small, task focused tables.

History Digests are still in beta. Please be aware that the functionality described below is still under review and may change.

A primary use for digests is in reporting and generating dashboards. For example, you may want to query several thousand histories and report on the time a particular event occurred within each one. Rather than having to query those histories each time you generate the report, you could create a digest that aggregates the data you need into a new table. The digest could be configured to run on a schedule, adding data from new history records to it.

There's an overview of digests with example usage in the History Digest Overview knowledge base article.

The following functions are used to create and mange the digest tables, columns and data.

Note that when a history is deleted, the row in any digest table it has been digested into is also automatically removed.

registerDigest()

Defines and creates the digest table and columns, and the histories, events and event values that will populate them.

digestHistories()

Processes a named digest by batching history events and populating the relevant database tables and views.

deleteDigest()

Deletes a named digest and all associated tables and views.

listDigests()

List all digests currently registered, including the digest register and tables.

updateDigest()

Updates the top level properties of a digest.

Share this page

Facebook icon Twitter icon email icon

Print

print icon