DocumentationStatisticsData Models

Data Models

TimeSeriesViewModel

One row of data in a /analytics response.

PropertyTypeDescription
eventstringName of the event
systemstringThe Doc Gen application that recorded the event
datestringDay of the events, UTC, as YYYY-MM-DD
hourstringHour of the day, UTC, 00 to 23
templatestringTemplate the event relates to
sourcestringWhere the event came from
distributionstringHow the result was distributed
environmentstringThe environment name sent by the application that recorded the event
areastringFunctional area of the event
countintegerNumber of events in that hour for this combination
eventDetailstringExtra context for the event. Can be null

The application that records an event decides the text in event, system, template, source, distribution, environment, area and eventDetail. Fields that were not recorded come back as null.

Values you will see

The Doc Gen applications record events with these names. Other sources can send other names, so treat the lists as the usual values, not a closed set.

FieldValues
eventCreate, Update, Sign, Archive, Error, Delete, Restore, Export, Import, View, Print, Send, Share, Complete, Search
systemSmartforms, Editor, Centerpoint, Workflow, PagesManager, Pages, Archive
environmentDevelopment, Test, PreProd, Production

eventDetail narrows the event down. SmartForms, for example, records Create with form-created, Complete with form-completed, Sign with form-signed, Archive with form-archived, and Error with validation-error. It sets template to the name of the form and environment to the environment the form ran in.


PagedResponse

PropertyTypeDescription
pageNumberintegerCurrent page number
pageSizeintegerRows per page
totalRecordsintegerNumber of rows in the whole range
totalPagesintegertotalRecords divided by pageSize, rounded up
dataarrayThe rows of this page

Prometheus mapping

/analytics/prometheus uses the same fields, with these changes:

FieldIn the Prometheus output
eventBecomes the metric name, <event in lower case>_event_count
countBecomes the metric value
date, hourNot present, the counts are totals for the range
all other fieldsLabels, named in lower case