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

[Feature] Auto populate the thresholds #1925

Closed
svenvg93 opened this issue Dec 14, 2024 · 2 comments
Closed

[Feature] Auto populate the thresholds #1925

svenvg93 opened this issue Dec 14, 2024 · 2 comments
Labels
🎉 feature New feature or request

Comments

@svenvg93
Copy link
Contributor

Is your feature request related to a problem? Please describe.
No not a problem.

Describe the solution you'd like
Currently, users must manually enter download, upload, and ping thresholds for speed monitoring.
Implement an "Auto Populate" feature that:

  • Runs a one-time speed test in the background
  • Automatically fills in threshold values with test results
  • Applies slight adjustments to the retrieved values for more realistic monitoring

Detailed Workflow

  • User clicks the Auto Populate button
  • A speedtest is performed without saving the results
  • Threshold fields are automatically populated with:
    • Download speed: Speed test result with a 10% reduction
    • Upload speed: Speed test result with a 10% reduction
    • Ping: Speed test result with a 40% increase

Additional Considerations

  • Provide an option reset auto-populated values by running a new test
  • Provide an option to adjust the values manually
  • Add a tooltip explaining the slight reduction/increase rationale

Additional context
Add any other context or screenshots about the feature request here.

@alexjustesen alexjustesen added the 🎉 feature New feature or request label Dec 15, 2024
@svenvg93
Copy link
Contributor Author

svenvg93 commented Dec 16, 2024

Another idea;

Use the current StartSpeedtest and save the result with a comment. Basically do an

    public function handle(bool $scheduled = false, ?int $serverId = null): void
    {
        $result = Result::create([
            'data->server->id' => $serverId,
            'data->comment' => 'Threshold Auto Population Test',
            'service' => ResultService::Ookla,
            'status' => ResultStatus::Started,
            'scheduled' =>$scheduled,
        ]);

Only challenge might be to catch the results.

@alexjustesen any thoughts?

@svenvg93
Copy link
Contributor Author

Closing in favor of #1943

@svenvg93 svenvg93 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎉 feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
@alexjustesen @svenvg93 and others