Skip to content

Add: completion and downloaded volumes statistics#544

Merged
dnzbk merged 3 commits intodevelopfrom
feature/statistics
Apr 16, 2025
Merged

Add: completion and downloaded volumes statistics#544
dnzbk merged 3 commits intodevelopfrom
feature/statistics

Conversation

@dnzbk
Copy link
Copy Markdown
Collaborator

@dnzbk dnzbk commented Apr 10, 2025

Description

  • added a new "Statistics" page to display completion and download volume analytics for news-servers.
  • the API method "resetservervolumes" now allows for selective resetting of counters. Arguments:
    • ServerId (int) - Server ID to reset.
    • Counter (string) - Specifies which counter to reset. The behavior depends on the value of this argument:
      • "CUSTOM" (case-sensitive) - Resets only the custom counter associated with the server. Use this option to clear custom statistics while preserving overall download volume data.
      • "" (empty string) - Resets all counters associated with the server, including the overall download volume and any custom counters.
  • the API method "servervolumes" now returns 2 additional properties:
    • CountersResetTime (int) - Date/time of the last reset of all counters (time is in C/Unix format).
    • ArticlesPerDays (struct[]) - Per-day amount of failed and success articles since program installation. Contains an array of structs with following fields:
      • Failed (int) - Amount of failed articles.
      • Success (int) - Amount of success articles.

Testing

  • Windows 7 / Firefox 115
  • Windows 11 / Chrome 135
  • macOS 13 / Chrome 135, Safari 18

@dnzbk dnzbk marked this pull request as draft April 10, 2025 08:52
@dnzbk dnzbk requested review from luckedea and phnzb April 10, 2025 08:53
luckedea
luckedea previously approved these changes Apr 10, 2025
Copy link
Copy Markdown
Member

@luckedea luckedea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dnzbk dnzbk force-pushed the feature/statistics branch from 00fb609 to d79ee71 Compare April 11, 2025 16:24
@dnzbk dnzbk force-pushed the feature/statistics branch from 1186a4c to 3979bed Compare April 14, 2025 11:42
@dnzbk dnzbk marked this pull request as ready for review April 16, 2025 14:21
@dnzbk dnzbk merged commit 30cbd65 into develop Apr 16, 2025
15 checks passed
@dnzbk dnzbk deleted the feature/statistics branch April 16, 2025 14:28
@dnzbk dnzbk mentioned this pull request May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants