-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
c6f3a35 OS-7787. Regenerated live demo 06125f0 OS-7734. Update resource_owner_violation_alert email template e8dd6a8 OS-7724. Update pool_exceed_report email template 8d8c597 OS-7783. Fixed getting disk metrics for nebius
- Loading branch information
Showing
8 changed files
with
933 additions
and
1,196 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
1,071 changes: 476 additions & 595 deletions
1,071
herald/modules/email_generator/templates/pool_exceed_report.html
Large diffs are not rendered by default.
Oops, something went wrong.
968 changes: 420 additions & 548 deletions
968
herald/modules/email_generator/templates/resource_owner_violation_alert.html
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -158,12 +158,10 @@ | |
}, | ||
'pool_exceed_report': { | ||
'email': ['[email protected]'], | ||
'subject': 'Action Required: Hystax OptScale Pool Exceed Alert', | ||
'subject': 'Action Required: Hystax OptScale Pool Limit Exceed Alert', | ||
'template_type': 'pool_exceed_report', | ||
'template_params': { | ||
'texts': { | ||
'title': 'Pool Exceed Alert', | ||
'total_cost': 293.5, | ||
'total_forecast': 293.5, | ||
'exceeded': [ | ||
{ | ||
|
@@ -172,29 +170,24 @@ | |
'limit': 50, | ||
'pool_name': 'AQA_1617018508.3637385. It is very very very very very very very very very ' | ||
'very very very very very very very long name', | ||
'total_expenses': 293.5}, | ||
'total_expenses': 293.5 | ||
}, | ||
{ | ||
'forecast': 293.5, | ||
'id': '9e07786f-c476-484e-adc5-43d76815bd1d', | ||
'limit': 100, | ||
'pool_name': 'AQA_CA_1617018508.3637757_find_report', | ||
'total_expenses': 293.5}], | ||
'total_expenses': 293.5 | ||
} | ||
], | ||
'organization': { | ||
'id': '6946211f-47ff-43a3-a9a3-3e5f57d52415', | ||
'name': 'AQA_1617018508.3637385', | ||
'currency_code': '$' | ||
}, | ||
'user': { | ||
'assignment_id': 'f3b2a722-9674-4042-a08a-81f41b926647', | ||
'assignment_resource_id': '943cb6e0-2cbe-4974-a937-2c480aa9934f', | ||
'assignment_type_id': 2, | ||
'role_id': 3, | ||
'role_name': 'Manager', | ||
'role_purpose': 'optscale_manager', | ||
'role_scope_id': None, | ||
'user_display_name': 'james31', | ||
'user_email': '[email protected]', | ||
'user_id': '4a50413a-9703-4586-ab39-96aa289e979e'}}}}, | ||
} | ||
} | ||
} | ||
}, | ||
'pool_exceed_resources_report': { | ||
'email': ['[email protected]'], | ||
'subject': 'Action Required: Hystax OptScale Pool Exceed Alert', | ||
|
@@ -721,25 +714,12 @@ | |
"subject": "Action required: Hystax OptScale Resource Constraint Violation Alert", | ||
"template_params": { | ||
"texts": { | ||
"title": "Resource Constraint Violation Alert", | ||
"total_violated": 2, | ||
"organization": { | ||
"id": "2254d0c7-d341-45cd-a2b4-200f8df8112a", | ||
"name": "Renaissance science", | ||
"currency_code": "$" | ||
}, | ||
"user": { | ||
"assignment_id": "355ab271-aacc-440d-975c-b14586fc0965", | ||
"assignment_resource_id": "b3299698-7d47-4a67-980a-55369841b228", | ||
"assignment_type_id": 2, | ||
"role_id": 3, | ||
"role_name": "Manager", | ||
"role_purpose": "optscale_manager", | ||
"role_scope_id": "None", | ||
"user_display_name": "I0Gun", | ||
"user_email": "[email protected]", | ||
"user_id": "02398e36-4b53-40d3-9781-62d83609386b" | ||
}, | ||
"violated_resources": [ | ||
{ | ||
"cloud_resource_id": "hystax-eu-fra", | ||
|
@@ -750,7 +730,8 @@ | |
"pool_name": "IK_ORG", | ||
"resource_name": "hystax-eu-fra. It is very very very very very very very very very very very " | ||
"very very very very very long name", | ||
"type": "ttl" | ||
"type": "ttl", | ||
"resource_id": "e2b0412d-d3d3-425e-bd1e-e27ac881d58e", | ||
}, | ||
{ | ||
"cloud_resource_id": "hystax-eu-fra", | ||
|
@@ -760,7 +741,8 @@ | |
"pool_id": "3f575a6a-237d-4f4d-a4b4-1f8005451432", | ||
"pool_name": "IK_ORG", | ||
"resource_name": "hystax-eu-fra", | ||
"type": "expense_limit" | ||
"type": "expense_limit", | ||
"resource_id": "2b2dd58e-366d-4138-ad72-756aec545eca", | ||
} | ||
] | ||
} | ||
|
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
Binary file not shown.
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