Skip to content

Commit 3acf989

Browse files
committed
v7.7.5 release
1 parent ea3f47d commit 3acf989

4 files changed

Lines changed: 25 additions & 4 deletions

File tree

.github/workflows/test-win.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
Write-Host "Powershell version: $Version"
4444
4545
$Container = New-PesterContainer -Path ./Tests/ -Data $Data
46-
$Result = Invoke-Pester -Container $Container -Output Detailed -PassThru
46+
$Result = Invoke-Pester -Container $Container -Output Detailed -PassThru -ExcludePath "*LMUptime*"
4747
4848
#Write OpsNote to test portal indicating test status
4949
Connect-LMAccount -AccessId $env:LM_ACCESS_ID -AccessKey $env:LM_ACCESS_KEY -AccountName $env:LM_PORTAL -DisableConsoleLogging

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
Write-Host "Powershell version: $Version"
4444
4545
$Container = New-PesterContainer -Path ./Tests/ -Data $Data
46-
$Result = Invoke-Pester -Container $Container -Output Detailed -PassThru
46+
$Result = Invoke-Pester -Container $Container -Output Detailed -PassThru -ExcludePath "*LMUptime*"
4747
4848
#Write OpsNote to test portal indicating test status
4949
Connect-LMAccount -AccessId $env:LM_ACCESS_ID -AccessKey $env:LM_ACCESS_KEY -AccountName $env:LM_PORTAL -DisableConsoleLogging

Build.ps1

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ $buildVersion = $env:BUILD_VERSION
55
$manifestPath = "./Logic.Monitor.psd1"
66
$publicFuncFolderPath = './Public'
77

8+
# Exclude patterns for functions to not export (e.g., work-in-progress features)
9+
$excludePatterns = @('*LMUptime*')
10+
811
$ps1xmlFiles = Get-ChildItem -Path ./ -Filter *.ps1xml
912
Foreach ($ps1xml in $ps1xmlFiles) {
1013
[xml]$xml = Get-Content -Path $ps1xml.FullName
@@ -34,8 +37,23 @@ If (!(Get-Module PwshSpectreConsole -ListAvailable)) {
3437

3538
$manifestContent = (Get-Content -Path $manifestPath -Raw) -replace '<ModuleVersion>', $buildVersion
3639

37-
If ((Test-Path -Path $publicFuncFolderPath) -and ($publicFunctionNames = Get-ChildItem -Path $publicFuncFolderPath -Filter '*.ps1' | Select-Object -ExpandProperty BaseName)) {
38-
$funcStrings = "'$($publicFunctionNames -join "','")'"
40+
If (Test-Path -Path $publicFuncFolderPath) {
41+
$allFunctions = Get-ChildItem -Path $publicFuncFolderPath -Filter '*.ps1'
42+
43+
# Apply exclusion patterns
44+
$filteredFunctions = $allFunctions
45+
foreach ($pattern in $excludePatterns) {
46+
$filteredFunctions = $filteredFunctions | Where-Object { $_.Name -notlike $pattern }
47+
}
48+
49+
$publicFunctionNames = $filteredFunctions | Select-Object -ExpandProperty BaseName
50+
51+
if ($publicFunctionNames) {
52+
$funcStrings = "'$($publicFunctionNames -join "','")'"
53+
}
54+
else {
55+
$funcStrings = $null
56+
}
3957
}
4058
Else {
4159
$funcStrings = $null

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ Connect-LMAccount -UseCachedCredential
8080

8181
### New Cmdlets
8282
- **Set-LMDeviceGroupDatasource**: This cmdlet modifies an existing device group datasource in LogicMonitor, allowing updates to monitoring state. This cmdlet provides control over the "Enable" checkbox (stopMonitoring) for a datasource applied to a device group. For alert settings use *Set-LMDeviceGroupDatasourceAlertSetting*.
83+
84+
### Important Notes
85+
- **LM Uptime Removal**: Due to issues with the v3 api endpoints for LM Uptime, they are being temporarily removed from the module. As soon as they are officially supported in the LM Swagger guide they will be reintroduced along with the Website->Uptime conversion cmdlet. For previous versions of the module that still have access to these cmdlets it is recommended that you wait until the official swagger endpoints are released.
8386
---
8487

8588
### Major Changes in v7:

0 commit comments

Comments
 (0)