Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide data usage per timeSpan in details #107

Open
coderbyheart opened this issue Sep 25, 2024 · 3 comments
Open

Provide data usage per timeSpan in details #107

coderbyheart opened this issue Sep 25, 2024 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@coderbyheart
Copy link
Member

coderbyheart commented Sep 25, 2024

Now that we have history, we can also share the usage per timeSpan in the sim details response.

That means that for each of these time
spans, return the sum of bytes used.

Property Sum of bytes used
lastHour in the last hour.
lastDay in the last 24 hours.
lastWeek in the last 7 days.
lastMonth in the last 30 days.
@coderbyheart coderbyheart added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Sep 25, 2024
@Lenakh97
Copy link
Collaborator

Lenakh97 commented Oct 3, 2024

Could it make sense to return the sum from 'lastHour','lastDay','lastWeek' and 'lastMonth' and in addition return hourly,daily and weekly averages which is calculated from the data from the last month/as much data as we have. As an example this could be:

dataUsagePerTimespan: { lastHour: 10060, lastDay: 211527, lastWeek: 1395739, lastMonth: 2691339, } averageDataUsage: { hourly: 6727, daily: 161468, weekly: 1130282 }

Where the first one is the usage summed up for each timespan and for the average I'm using all the data I can get from the last month and find the average from the first day I can find any data usage. (Ex if someone started to use the device only 2 weeks ago the average is calculated from the last two weeks instead of from the entire last month.) Or are you only interested in the last one with the average usage?

@coderbyheart
Copy link
Member Author

Yes, sounds good!

@coderbyheart coderbyheart changed the title Provide average data usage per timeSpan in details Provide data usage per timeSpan in details Oct 11, 2024
@coderbyheart
Copy link
Member Author

To clarify, the response should return usage per time last time span. The
initial description was misleading. Updated the description above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants