generated from amosproj/amos202Xss0Y-projname
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from amosproj/107-analysis-module-backup-stor…
…age-fill-alert 107 analysis module backup storage fill alert
- Loading branch information
Showing
11 changed files
with
220 additions
and
15 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
class StorageFillAlert: | ||
def __init__(self, data_store): | ||
self.name = data_store.name | ||
self.capacity = data_store.capacity | ||
self.filled = data_store.filled | ||
self.high_water_mark = data_store.high_water_mark | ||
|
||
def as_json(self): | ||
return { | ||
"dataStoreName": self.name, | ||
"capacity": self.capacity, | ||
"filled": self.filled, | ||
"highWaterMark": self.high_water_mark, | ||
} |
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,10 +1,14 @@ | ||
class MockDatabase: | ||
def __init__(self, results, tasks = []): | ||
self.results = results | ||
self.tasks = tasks | ||
def __init__(self, results, tasks=[], data_stores=[]): | ||
self.results = results | ||
self.tasks = tasks | ||
self.data_stores = data_stores | ||
|
||
def get_results(self): | ||
return iter(self.results) | ||
def get_results(self): | ||
return iter(self.results) | ||
|
||
def get_tasks(self): | ||
return iter(self.tasks) | ||
def get_tasks(self): | ||
return iter(self.tasks) | ||
|
||
def get_data_stores(self): | ||
return iter(self.data_stores) |
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