Skip to content

Commit 0c7790b

Browse files
committed
Update readme
1 parent 46fd149 commit 0c7790b

File tree

5 files changed

+26
-5
lines changed

5 files changed

+26
-5
lines changed

Public/Get-LMDeviceData.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ Function Get-LMDeviceData {
8484

8585
#Lookup InstanceId
8686
If ($InstanceName) {
87+
#Replace brakets in instance name
88+
$InstanceName = $InstanceName -replace "[\[\]]", "?"
8789

8890
$LookupResult = (Get-LMDeviceDatasourceInstance -DeviceId $DeviceId -DatasourceId $DatasourceId | Where-Object { $_.displayName -eq $InstanceName -or $_.name -like "*$InstanceName" -or $_.name -eq "$InstanceName" }).Id
8991
If (Test-LookupResult -Result $LookupResult -LookupString $InstanceName) {

Public/Get-LMDeviceDatasourceInstanceAlertRecipients.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ Function Get-LMDeviceDatasourceInstanceAlertRecipients {
8181
}
8282
$HdsId = $LookupResult
8383
}
84+
85+
#Replace brakets in instance name
86+
$InstanceName = $InstanceName -replace "[\[\]]", "?"
87+
8488
#Lookup HdsiId
8589
If ($DatasourceName) {
8690
$LookupResult = (Get-LMDeviceDatasourceInstance -DatasourceName $DatasourceName -DeviceId $Id | Where-Object { $_.name -like "*$InstanceName"}).Id

Public/Get-LMDeviceDatasourceInstanceAlertSetting.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ Function Get-LMDeviceDatasourceInstanceAlertSetting {
8989
}
9090
$HdsId = $LookupResult
9191
}
92+
93+
#Replace brakets in instance name
94+
$InstanceName = $InstanceName -replace "[\[\]]", "?"
95+
9296
#Lookup HdsiId
9397
If ($DatasourceName) {
9498
$LookupResult = (Get-LMDeviceDatasourceInstance -DatasourceName $DatasourceName -DeviceId $Id | Where-Object { $_.name -like "*$InstanceName" }).Id

Public/Set-LMDeviceDatasourceInstanceAlertSetting.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ Function Set-LMDeviceDatasourceInstanceAlertSetting {
7070
$HdsId = $LookupResult
7171
}
7272

73+
#Replace brakets in instance name
74+
$InstanceName = $InstanceName -replace "[\[\]]", "?"
75+
7376
#Lookup HdsiId
7477
If ($DatasourceName) {
7578
$LookupResult = (Get-LMDeviceDatasourceInstance -DatasourceName $DatasourceName -DeviceId $Id | Where-Object { $_.name -like "*$InstanceName" }).Id

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -409,18 +409,26 @@ This change aims to enhance visibility within the community and to foster a more
409409

410410
We appreciate your continued support and enthusiasm for the Logic.Monitor PowerShell module. Your contributions and feedback are vital to the success of this project, and we look forward to seeing how the module evolves with your participation.
411411

412-
## 6.0
412+
## 6.1
413413
### New Cmdlets:
414-
- **Get-LMDeviceInstanceData**: This cmdlet retrieves data for LogicMonitor device instances based on the specified parameters. The cmdlet can only retrieve data within the last 24 hours. You can use `Get-LMDeviceInstanceList` to quickly get a list of instances for a particular device.
415-
- **New-LMAlertEscalation**: This cmdlet invokes an escalation for a LogicMonitor alert. It takes a *-Ids* parameter which is an array of alert ids to escalate.
416414
- **Get-LMAccessGroup**: This cmdlet will retrieve data for specified LogicMonitor access groups. You can retrieve all access groups or limit the results using *-Id*, *-Name* or *-Filter* parameters.
415+
- **New-LMAccessGroup**: This cmdlet creates a new LogicMonitor access group.
416+
- **Set-LMAccessGroup**: This cmdlet updates an existing LogicMonitor access group.
417+
- **Remove-LMAccessGroup**: This cmdlet removes a new LogicMonitor access group.
418+
- **Get-LMDeviceDatasourceInstanceAlertRecipients**: Retrieves the alert recipients for a specific data point in a LogicMonitor device datasource instance.
419+
- **Remove-LMDeviceDatasourceInstanceGroup**: Removes a LogicMonitor device datasource instance group.
420+
- **Set-LMDeviceDatasourceInstance**: Updates a LogicMonitor device datasource instance.
417421

418422
**Note**: Access Groups are not available in all portals and needs to be enabled before any access group commands can be utilized.
419423

420424

421425
### Updated Cmdlets:
422-
- **Set-LMDeviceDatasourceInstanceAlertSetting**: AlertForNoData, AlertClearTransitionInterval and AlertTransitionInterval parameters are now mandatory as a result of endpoint changes for LM APIv3. These values can now be set at instance and group level overrides and as a result must be specified when modifying alert thresholds.
423-
- **Set-LMDeviceGroupDatasourceAlertSetting**: AlertForNoData, AlertClearTransitionInterval and AlertTransitionInterval parameters are now mandatory as a result of endpoint changes for LM APIv3. These values can now be set at instance and group level overrides and as a result must be specified when modifying alert thresholds.
426+
- **Get-LMDeviceDatasourceList**: Added aliases *-DeviceId* and *-DeviceName* to the *-Id* and *-Name* parameters to make them inline with other cmdlets.
427+
- **Get-LMDeviceDatasourceInstance**: Added aliases *-DeviceId* and *-DeviceName* to the *-Id* and *-Name* parameters to make them inline with other cmdlets.
428+
- **Get-LMDeviceDatasourceInstanceAlertSetting**: Added aliases *-DeviceId* and *-DeviceName* to the *-Id* and *-Name* parameters to make them inline with other cmdlets. Also fixed bug causing an issue when trying to retrieve instances with special characters in the name.
429+
- **Get-LMDeviceDatasourceInstanceGroup**: Added aliases *-DeviceId* and *-DeviceName* to the *-Id* and *-Name* parameters to make them inline with other cmdlets.
430+
- **Remove-LMDeviceDatasourceInstance**: Fixed bug that would prevent a datasource instance from being delete due to missing instance id.
431+
424432

425433
[Previous Release Notes](RELEASENOTES.md)
426434

0 commit comments

Comments
 (0)