Skip to content

Feat: Add TERRL alert #4170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"Rewst",
"Sherweb",
"Syncro",
"TERRL",
"Yubikey"
],
"ignoreWords": [
Expand Down
10 changes: 10 additions & 0 deletions src/data/alerts.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,15 @@
"inputType": "switch",
"inputLabel": "Ignore Disabled Apps?",
"inputName": "IgnoreDisabledApps"
},
{
"name": "TERRL",
"label": "Alert when Tenant External Recipient Rate Limit exceeds X %",
"requiresInput": true,
"inputType": "number",
"inputLabel": "Alert % (default: 80)",
"inputName": "TERRLThreshold",
"recommendedRunInterval": "1h",
"description": "Monitors tenant outbound email volume against Microsoft's TERRL limits. Tenant data is updated every hour."
}
]
7 changes: 5 additions & 2 deletions src/pages/tenant/administration/alert-configuration/alert.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const AlertWizard = () => {
{ label: "Email", value: "Email" },
{ label: "PSA", value: "PSA" },
];
const actionstoTake = [
const actionsToTake = [
//{ value: 'cippcommand', label: 'Execute a CIPP Command' },
{ value: "becremediate", label: "Execute a BEC Remediate" },
{ value: "disableuser", label: "Disable the user in the log entry" },
Expand Down Expand Up @@ -523,7 +523,7 @@ const AlertWizard = () => {
formControl={formControl}
multiple={true}
creatable={false}
options={actionstoTake}
options={actionsToTake}
/>
</Grid>
<Grid size={12} sx={{ mt: 2 }}>
Expand Down Expand Up @@ -556,6 +556,9 @@ const AlertWizard = () => {
multiple={false}
formControl={formControl}
label="Included Tenants for alert"
validators={{
required: { value: true, message: "This field is required" },
}}
/>
</Grid>
<CippFormCondition
Expand Down
Loading