added failing follower statistics

This commit is contained in:
Nicolas Constant 2021-09-11 19:20:10 -04:00
parent 98e869f064
commit 767b552929
No known key found for this signature in database
GPG key ID: 1E9F677FB01A5688
3 changed files with 4 additions and 0 deletions

View file

@ -32,6 +32,7 @@ namespace BirdsiteLive.Controllers
var stats = new Models.StatisticsModels.Statistics
{
FollowersCount = await _followersDal.GetFollowersCountAsync(),
FailingFollowersCount = await _followersDal.GetFailingFollowersCountAsync(),
TwitterUserCount = await _twitterUserDal.GetTwitterUsersCountAsync(),
TwitterStatistics = _twitterStatistics.GetStatistics(),
ExtractionStatistics = _extractionStatistics.GetStatistics(),

View file

@ -6,8 +6,10 @@ namespace BirdsiteLive.Models.StatisticsModels
public class Statistics
{
public int FollowersCount { get; set; }
public int FailingFollowersCount { get; set; }
public int TwitterUserCount { get; set; }
public ApiStatistics TwitterStatistics { get; set; }
public ExtractionStatistics ExtractionStatistics { get; set; }
}
}

View file

@ -10,6 +10,7 @@
<ul>
<li>Twitter Users: @Model.TwitterUserCount</li>
<li>Followers: @Model.FollowersCount</li>
<li>Failing Followers: @Model.FailingFollowersCount</li>
</ul>
<h4>Twitter API (Min, Avg, Max for the last 24h)</h4>