-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature] Implement Iperf check #385
- Added initial code for Iperf check class. - Added tests. Closes #385
- Loading branch information
1 parent
2dea308
commit 29a0744
Showing
11 changed files
with
165 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from .config_applied import ConfigApplied # noqa | ||
from .iperf import Iperf # noqa | ||
from .ping import Ping # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
from swapper import load_model | ||
|
||
from .base import BaseCheck | ||
|
||
Chart = load_model('monitoring', 'Chart') | ||
Metric = load_model('monitoring', 'Metric') | ||
Device = load_model('config', 'Device') | ||
DeviceData = load_model('device_monitoring', 'DeviceData') | ||
Credentials = load_model('connection', 'Credentials') | ||
AlertSettings = load_model('monitoring', 'AlertSettings') | ||
DeviceConnection = load_model('connection', 'DeviceConnection') | ||
|
||
|
||
class Iperf(BaseCheck): | ||
def check(self, store=True): | ||
pass | ||
|
||
def store_result(self, result): | ||
""" | ||
store result in the DB | ||
""" | ||
pass | ||
|
||
def _get_iperf_servers(self): | ||
""" | ||
Get iperf test servers | ||
""" | ||
pass | ||
|
||
def _get_iperf_result(self, mode=None): | ||
""" | ||
Get iperf test result | ||
""" | ||
pass | ||
|
||
def _get_metric(self): | ||
""" | ||
Gets or creates metric | ||
""" | ||
pass | ||
|
||
def _create_charts(self, metric): | ||
""" | ||
Creates iperf related charts (Bandwith/Jitter) | ||
""" | ||
pass | ||
|
||
def _create_alert_settings(self, metric): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters