-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dird: `status subscriptions` shows more details about subscription units
- Loading branch information
Showing
29 changed files
with
644 additions
and
84 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
13 changes: 13 additions & 0 deletions
13
core/src/cats/dml/0080_subscription_select_backup_unit_overview_0
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,13 @@ | ||
SELECT * FROM ( | ||
SELECT * | ||
FROM backup_unit_overview | ||
ORDER BY client, fileset | ||
) subq_a | ||
UNION ALL | ||
SELECT 'TOTAL' as client, | ||
NULL as fileset, | ||
SUM(db_units) as db_units, | ||
SUM(vm_units) as vm_units, | ||
SUM(filer_units) as filer_units, | ||
SUM(normal_units) as normal_units | ||
FROM backup_unit_overview; |
10 changes: 10 additions & 0 deletions
10
core/src/cats/dml/0081_subscription_select_backup_unit_total_1
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,10 @@ | ||
SELECT | ||
*, configured - used as remaining | ||
FROM (SELECT | ||
COALESCE(SUM(db_units), 0) | ||
+ COALESCE(SUM(vm_units), 0) | ||
+ COALESCE(SUM(filer_units), 0) | ||
+ COALESCE(SUM(normal_units), 0) | ||
AS used, | ||
%d AS configured | ||
FROM backup_unit_overview) subquery_a; |
4 changes: 4 additions & 0 deletions
4
core/src/cats/dml/0082_subscription_select_unclassified_client_fileset_0
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,4 @@ | ||
SELECT client, fileset, filesettext | ||
FROM latest_full_size_categorized | ||
WHERE unknown_mb > 0 | ||
ORDER BY client, fileset; |
4 changes: 4 additions & 0 deletions
4
core/src/cats/dml/0083_subscription_select_unclassified_amount_data_0
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,4 @@ | ||
SELECT | ||
SUM(unknown_mb) AS unknown_mb, | ||
ROUND(sum(unknown_mb)/sum(total_mb) * 100, 2) AS unknown_percentage | ||
FROM latest_full_size_categorized; |
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
Oops, something went wrong.