Laixer / FunderMaps

Manage and visualize foundation data
Apache License 2.0
3 stars 1 forks source link

Implement Statistical Data in Grafana Dashboard and Webservice #774

Open DonZandbergen opened 1 year ago

DonZandbergen commented 1 year ago

Description

Calculate and include the following comprehensive statistical data in both the Grafana Dashboard and the webservice (WS). The statistics should be updated once per day from the database.

Statistics

Foundation Type Distribution

Foundation Type Reliability Distribution

Construction Year Distribution

Foundation Risk Distribution

Data Collected Percentage

Total Building Restored Count

Total Incident Count

Report Count

Total Report Count

Restoration Cost

Total Report Contractor

Total Report Organization

Total Owner

Data Collected

Buildings Restored

Restoration Cost

Droogstand

Ontwateringsdiepte

Bacteriële aantasting

Vastgesteld risico

Funderingstype

Funderingstype per betrouwbaarheid

Herstelde funderingen

Rapporten

Rapporten per type

Rapporten per opsteller

Rapporten per eigenaar

Bouwjaar

Eigendom

Verdeling risico’s verschilzakking

Verdeling risico’s vastgesteld risico

Special Consideration

The above statistics must be filtered for the ownership (owner) of a specific user (especially for corporations).

Geographic Areas

These statistics need to be calculated for the following geographic areas:

Additionally, statistics should also be determined per ownership category (owner).

Actions

  1. Data Aggregation and Calculation

    • Aggregate and calculate data for each required statistic once per day from the database.
  2. Integration with Grafana and Webservice

    • Integrate the calculated statistics into Grafana for visualization.
    • Integrate the calculated statistics into the webservice (WS) for access.
  3. Backend Development

    • Ensure the backend supports the calculation, storage, and retrieval of the required statistics.
  4. Frontend Development

    • Design and implement the dashboard interface in maps.fundermaps.com using Grafana visualizations.
  5. Testing and Validation

    • Test the accuracy and functionality of the calculated statistics.
    • Validate the integration and visualization in Grafana and the webservice.
  6. Deployment

    • Deploy the dashboard functionality and webservice updates to the production environment.

Expected Behavior

Admins and users should be able to view the specified statistics in the Grafana Dashboard and access them through the webservice, filtered by the ownership of the specific user. The statistics should be visualized accurately in Grafana and accessible through the webservice.

Additional Information

DonZandbergen commented 2 months ago

Data dichtheid en betrouwbaarheidsverdeling maken zodat inzichtelkijk wordt welke wijk/buurten/gemeentes de hoogste data dichtheid heeft.