Skip to main content

Metric Service

Database

The Metrics Service connects to a single DynamoDB table named of-metrics-dev.processMetrics with the following fields:

Field NameData TypeNotes
batchIdStringDynamoDB: partition key
batchnameStringDynamoDB: sort key
domainStringCurrently hardcoded to 'of'
fileNameString
fileReceivedDateTimeString
startDateTimeString
endDateTimeString
rowsSubmittedNumber
rowsProcessedNumber
rowsFailedNumber
statusString
phaseString
errorsString

The batchId is DynamoDB’s partition key, batchName is the sort key, and together they create the table’s composite primary key. Both fields must be present and consistent through all phases of a file’s processing.