MemoryTools.psm1

#import module variables and aliases
(Get-Childitem -Path $PSScriptRoot\functions\*.ps1).Foreach({. $_.FullName})

#global settings for MemoryTools commands

<#
These are variables that will be used with Get-MemoryUsage
to determine the status. The value is a percentage of free
physical memory available.
 
Any detected value less than $MemoryToolsWarning will be
classified as Critical.
 
You can change these variables at any time during your session.
Or modify the file for permanent changes. You will need to
re-import the module for the changes to take effect.
#>


[ValidateRange(1, 100)][int32]$Global:MemoryToolsOK = 45
[ValidateRange(1, 100)][int32]$Global:MemoryToolsWarning = 15