Skip to content

Commit c9a4560

Browse files
Merge pull request #4170 from kris6673/issue4166
Feat: Add TERRL alert
2 parents 840e4ea + 6037b4e commit c9a4560

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"Rewst",
2727
"Sherweb",
2828
"Syncro",
29+
"TERRL",
2930
"Yubikey"
3031
],
3132
"ignoreWords": [

src/data/alerts.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,5 +158,15 @@
158158
"inputType": "switch",
159159
"inputLabel": "Ignore Disabled Apps?",
160160
"inputName": "IgnoreDisabledApps"
161+
},
162+
{
163+
"name": "TERRL",
164+
"label": "Alert when Tenant External Recipient Rate Limit exceeds X %",
165+
"requiresInput": true,
166+
"inputType": "number",
167+
"inputLabel": "Alert % (default: 80)",
168+
"inputName": "TERRLThreshold",
169+
"recommendedRunInterval": "1h",
170+
"description": "Monitors tenant outbound email volume against Microsoft's TERRL limits. Tenant data is updated every hour."
161171
}
162172
]

src/pages/tenant/administration/alert-configuration/alert.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const AlertWizard = () => {
6363
{ label: "Email", value: "Email" },
6464
{ label: "PSA", value: "PSA" },
6565
];
66-
const actionstoTake = [
66+
const actionsToTake = [
6767
//{ value: 'cippcommand', label: 'Execute a CIPP Command' },
6868
{ value: "becremediate", label: "Execute a BEC Remediate" },
6969
{ value: "disableuser", label: "Disable the user in the log entry" },
@@ -523,7 +523,7 @@ const AlertWizard = () => {
523523
formControl={formControl}
524524
multiple={true}
525525
creatable={false}
526-
options={actionstoTake}
526+
options={actionsToTake}
527527
/>
528528
</Grid>
529529
<Grid size={12} sx={{ mt: 2 }}>
@@ -556,6 +556,9 @@ const AlertWizard = () => {
556556
multiple={false}
557557
formControl={formControl}
558558
label="Included Tenants for alert"
559+
validators={{
560+
required: { value: true, message: "This field is required" },
561+
}}
559562
/>
560563
</Grid>
561564
<CippFormCondition

0 commit comments

Comments
 (0)