Browse Source

added failing follower statistics

master
Nicolas Constant 11 months ago
parent
commit
767b552929
No known key found for this signature in database GPG Key ID: 1E9F677FB01A5688
3 changed files with 4 additions and 0 deletions
  1. +1
    -0
      src/BirdsiteLive/Controllers/StatisticsController.cs
  2. +2
    -0
      src/BirdsiteLive/Models/StatisticsModels/Statistics.cs
  3. +1
    -0
      src/BirdsiteLive/Views/Statistics/Index.cshtml

+ 1
- 0
src/BirdsiteLive/Controllers/StatisticsController.cs 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(),


+ 2
- 0
src/BirdsiteLive/Models/StatisticsModels/Statistics.cs 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; }
}
}

+ 1
- 0
src/BirdsiteLive/Views/Statistics/Index.cshtml 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>


Loading…
Cancel
Save