Documentation Index

Fetch the complete documentation index at: https://docs.wair.ai/llms.txt

Use this file to discover all available pages before exploring further.

Application Insights

Prev Next

In the Wair Connector App, Application Insights is used to monitor and diagnose the performance and health of the integration between Business Central and the Wair API. By capturing detailed telemetry data, Application Insights provides valuable insights into how the app is being used, enabling the identification of errors and performance issues before they are reported by partners or customers.

Picture 17: Application Insights logs

Implemented Application Insights Event IDs Meaning

  • WRS0001: Indicates that a (POST, GET, DELETE) request has been made to Wair.

  • WRS0002: Indicates that the authentication token request to Wair was unsuccessful.

  • WRS0003: Indicates that the feature "Wair Connector Setup" has been discovered.

  • WRS0004: Indicates that the feature "Wair Connector Setup" has been set up.

  • WRS0005: Indicates that the feature "Wair Connector Setup" has been used.

Retention Policy

Managing Wair Log Entries can become challenging as they accumulate over time. To prevent system clutter, setting up a retention policy is an effective solution. This policy allows for the automatic deletion of old log entries after a specified period, keeping your system efficient and organized.

To set up a retention policy for Wair log entries:

  1. Access Retention Policies: Open Business Central and navigate to the Retention Policies page.

  2. Create a New Policy: Press New and, in the Table ID field, choose the Wair Log Entry table.

  3. Set Retention Period: Specify the length of time for which to keep the data in the table.

  4. Optional – Configure Deletion Rules: The policy can be applied to specific data within a table by filtering the records for each line. This approach ensures that the policy affects only the records that match the specified filters (for example, entries with the DELETE method need to be deleted after two weeks, and entries with the POST method need to be deleted after a month).

Picture 18: Retention Policy setup