@Ashwin Venkatesha, thank you for posting this question here on Microsoft Q&A.
I have broken down my response below to cover all the scenarios mentioned in the question:
- Trigger Function App on schedule (use timer trigger Azure Functions) and store data. I would not suggest using the Azure Storage Account, as it is not natively mentioned as one of the data sources for "the "Azure MonitorWorkbook". For set of data sources available for Azure Monitor Workbook, please refer to this link - Azure Workbooks data sources Instead, storing the returned information in a LA workspace would be a better choice where KQL can be used to query for required aggregations/insights. The Azure function can have the code in it to send the response received from APIs to LA workspace using the Logs Ingestion API in Azure Monitor. This method would allow for flexible queries directly from the Workbook to present visualization.
- The rows in LA workspace table cannot be updated/overwritten. The queries could be written to scan only the latest data received (or that has been received in the last 5 minutes as Azure Function runs every 5 minutes). If you are concerned about the cost, you could keep the retention to a minimum so that the logs do not grow much.
If the answer did not help, please add more context/follow-up question for it. Else, if the answer helped, please click Accept answer so that it can help others in the community looking for help on similar topics.