gather the entry.id, entry.value, entry.account_type_id, and entry.tags (if any).
check to see if a time series record exist.
If a time series record exists, append the gathered data as JSON to the date record
If a time series record DOES NOT exist, create record with gathered data
There should be some sort of automated and scheduled monitoring process to make sure the time series database remains in sync and should alert if not. The automated monitoring process should not attempt to make changes.
There should also be some sort of API to allow the UI to fetch this data.
We should create a new database table that will store a consolidated grouping of entry values.
Proposed MySQL table schema:
Proposed JSON schema (for database table):
When a new entry is created:
entry.id
,entry.value
,entry.account_type_id
, andentry.tags
(if any).There should be some sort of automated and scheduled monitoring process to make sure the time series database remains in sync and should alert if not. The automated monitoring process should not attempt to make changes.
There should also be some sort of API to allow the UI to fetch this data.