Skip to content
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

Add support for new input types in alerts configuration #3348

Merged
merged 3 commits into from
Jan 19, 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
6 changes: 6 additions & 0 deletions src/data/alerts.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,17 @@
{
"name": "InactiveLicensedUsers",
"label": "Alert on licensed users that have not logged in for 90 days",
"requiresInput": true,
"inputType": "switch",
"inputLabel": "Exclude disabled users?",
"inputName": "InactiveLicensedUsersExcludeDisabled",
"recommendedRunInterval": "1d"
},
{
"name": "QuotaUsed",
"label": "Alert on % mailbox quota used",
"requiresInput": true,
"inputType": "textField",
"inputLabel": "Enter quota percentage",
"inputName": "QuotaUsedQuota",
"recommendedRunInterval": "4h"
Expand All @@ -36,6 +41,7 @@
"name": "SharePointQuota",
"label": "Alert on % SharePoint quota used",
"requiresInput": true,
"inputType": "textField",
"inputLabel": "Enter quota percentage",
"inputName": "SharePointQuotaQuota",
"recommendedRunInterval": "4h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ const AlertWizard = () => {
<Grid item xs={12} md={12}>
{commandValue?.value?.requiresInput && (
<CippFormComponent
type="textField"
type={commandValue.value?.inputType}
name={commandValue.value?.inputName}
formControl={formControl}
label={commandValue.value?.inputLabel}
Expand Down
Loading