Skip to content

Commit

Permalink
Merge pull request #1172 from craig-bradwell/dev
Browse files Browse the repository at this point in the history
Get-CIPPAlertSharepointQuota - Add quota data to AlertData
  • Loading branch information
KelvinTegelaar authored Nov 11, 2024
2 parents bd318bc + f515322 commit 5b29e33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function Get-CIPPAlertSharepointQuota {
}
$UsedStoragePercentage = [int](($sharepointQuota.GeoUsedStorageMB / $sharepointQuota.TenantStorageMB) * 100)
if ($UsedStoragePercentage -gt $Value) {
$AlertData = "SharePoint Storage is at $($UsedStoragePercentage)%. Your alert threshold is $($Value)%"
$AlertData = "SharePoint Storage is at $($UsedStoragePercentage)% [$([math]::Round($sharepointQuota.GeoUsedStorageMB / 1024, 2)) GB/$([math]::Round($sharepointQuota.TenantStorageMB / 1024, 2)) GB]. Your alert threshold is $($Value)%"
Write-AlertTrace -cmdletName $MyInvocation.MyCommand -tenantFilter $TenantFilter -data $AlertData
}
}
Expand Down

0 comments on commit 5b29e33

Please sign in to comment.