6e93972ada9577ce41af8681de3f8a080f45f418,utils/munin/newsblur_errors.py,,calculate_metrics,#,15
Before Change
last_day = datetime.datetime.utcnow() - datetime.timedelta(days=1)
return {
"feed_errors": MFeedFetchHistory.objects(fetch_date__gte=last_day, status_code__nin=[200, 304]).count(),
"feed_success": MFeedFetchHistory.objects(fetch_date__gte=last_day, status_code__in=[200, 304]).count(),
"page_errors": MPageFetchHistory.objects(fetch_date__gte=last_day, status_code__nin=[200, 304]).count(),
"page_success": MPageFetchHistory.objects(fetch_date__gte=last_day, status_code__in=[200, 304]).count(),
}
if __name__ == "__main__":
MuninGraph(graph_config, calculate_metrics).run()
After Change
from apps.statistics.models import MStatistics
statistics = MStatistics.all()
return {
"feed_success": statistics["feeds_fetched"]
}
if __name__ == "__main__":
MuninGraph(graph_config, calculate_metrics).run()
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 4
Instances
Project Name: samuelclay/NewsBlur
Commit Name: 6e93972ada9577ce41af8681de3f8a080f45f418
Time: 2011-11-01
Author: samuel@ofbrooklyn.com
File Name: utils/munin/newsblur_errors.py
Class Name:
Method Name: calculate_metrics
Project Name: jnothman/UpSetPlot
Commit Name: 9002392217305a71257921224326b73b424bfdc3
Time: 2019-06-06
Author: joel.nothman@gmail.com
File Name: upsetplot/data.py
Class Name:
Method Name: generate_data
Project Name: AlexsLemonade/refinebio
Commit Name: 7ed9e6bce1c4a1b52cacf228e4ed9e6d548ab6a0
Time: 2019-03-29
Author: kurt.wheeler91@gmail.com
File Name: common/data_refinery_common/models/models.py
Class Name: OriginalFile
Method Name: needs_downloading
Project Name: cve-search/cve-search
Commit Name: 7fcbf3e1e8b59897042e01c8c07236ce7bc4c010
Time: 2015-09-25
Author: pieterjan.moreels@gmail.com
File Name: sbin/db_updater.py
Class Name:
Method Name: nbelement
Project Name: chakki-works/doccano
Commit Name: 006181e72a517705f690e188238c644476932dba
Time: 2018-08-08
Author: light.tree.1.13@gmail.com
File Name: app/server/api.py
Class Name: ProjectViewSet
Method Name: progress
Project Name: cve-search/cve-search
Commit Name: 0a2d147d858fc27a17e047b5b30abe4a8fd07c35
Time: 2015-10-24
Author: pieterjan.moreels@gmail.com
File Name: lib/cpelist.py
Class Name: CPEList
Method Name: check
Project Name: AlexsLemonade/refinebio
Commit Name: 8fa866f3cd0ece29b2013fd3f816b147a2465ec6
Time: 2019-04-03
Author: kurt.wheeler91@gmail.com
File Name: common/data_refinery_common/models/models.py
Class Name: OriginalFile
Method Name: needs_downloading