la-famiglia-jst2324 / parma-analytics

ParmaAI analytics repository providing data processing and inference.
3 stars 0 forks source link

feat: Adding script to populate notificaiton rule entity #123

Closed deeratra closed 9 months ago

deeratra commented 9 months ago

Motivation

A script is added to populate notification rule entity

Changes

parma_analytics/db/populate_notification_rules.py parma_analytics/db/prod/data_source_query.py - Add method to get all data sources parma_analytics/db/prod/source_measurement_query.py - Add method to get source measurement for int and float. parma_analytics/db/source_measurement_rules.json - JSON file to add rules.

Checklist

github-actions[bot] commented 9 months ago

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
2397 1722 72% 0% 🟢

New Files

File Coverage Status
parma_analytics/api/routes/populate_rules.py 54% 🟢
parma_analytics/db/populate_notification_rule.py 48% 🟢
TOTAL 51% 🟢

Modified Files

File Coverage Status
parma_analytics/api/main.py 100% 🟢
parma_analytics/api/routes/init.py 100% 🟢
parma_analytics/bl/generate_report.py 87% 🟢
parma_analytics/db/prod/data_source_query.py 45% 🟢
parma_analytics/db/prod/notification_rules_query.py 64% 🟢
parma_analytics/db/prod/source_measurement_query.py 45% 🟢
TOTAL 73% 🟢

updated for commit: f2f6909 by action🐍