You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Public/Get-LMDeviceDataSourceList.ps1
+53Lines changed: 53 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,64 @@
1
+
<#
2
+
.SYNOPSIS
3
+
Retrieves a list of device data sources from LogicMonitor.
4
+
5
+
.DESCRIPTION
6
+
The Get-LMDeviceDatasourceList function retrieves a list of device data sources from LogicMonitor based on the specified parameters. It supports filtering by device ID or device name, and allows customization of the batch size for pagination.
7
+
8
+
.PARAMETERId
9
+
Specifies the ID of the device for which to retrieve the data sources. This parameter is mandatory when using the 'Id' parameter set.
10
+
11
+
.PARAMETERName
12
+
Specifies the name of the device for which to retrieve the data sources. This parameter is mandatory when using the 'Name' parameter set.
13
+
14
+
.PARAMETERFilter
15
+
Specifies additional filters to apply to the data sources. This parameter accepts an object representing the filter criteria.
16
+
17
+
.PARAMETERBatchSize
18
+
Specifies the number of data sources to retrieve per batch. The default value is 1000.
19
+
20
+
.EXAMPLE
21
+
Get-LMDeviceDatasourceList -Id 1234
22
+
Retrieves the data sources for the device with ID 1234.
23
+
24
+
.EXAMPLE
25
+
Get-LMDeviceDatasourceList -Name "MyDevice"
26
+
Retrieves the data sources for the device with the name "MyDevice".
Copy file name to clipboardExpand all lines: Public/Get-LMDeviceDatasourceInstance.ps1
+46-10Lines changed: 46 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,39 @@
1
+
<#
2
+
.SYNOPSIS
3
+
Retrieves instances of a LogicMonitor device datasource.
4
+
5
+
.DESCRIPTION
6
+
The Get-LMDeviceDatasourceInstance function retrieves instances of a LogicMonitor device datasource based on the specified parameters. It requires a valid API authentication and authorization.
7
+
8
+
.PARAMETERDatasourceName
9
+
Specifies the name of the datasource. This parameter is mandatory when using the 'Id-dsName' or 'Name-dsName' parameter sets.
10
+
11
+
.PARAMETERDatasourceId
12
+
Specifies the ID of the datasource. This parameter is mandatory when using the 'Id-dsId' or 'Name-dsId' parameter sets.
13
+
14
+
.PARAMETERId
15
+
Specifies the ID of the device. This parameter is mandatory when using the 'Id-dsId' or 'Id-dsName' parameter sets. It can also be specified using the 'DeviceId' alias.
16
+
17
+
.PARAMETERName
18
+
Specifies the name of the device. This parameter is mandatory when using the 'Name-dsName' or 'Name-dsId' parameter sets. It can also be specified using the 'DeviceName' alias.
19
+
20
+
.PARAMETERFilter
21
+
Specifies additional filters to apply to the instances. This parameter accepts an object representing the filter criteria.
22
+
23
+
.PARAMETERBatchSize
24
+
Specifies the number of instances to retrieve per batch. The default value is 1000.
Retrieves the alert recipients for a specific data point in a LogicMonitor device datasource instance.
4
+
5
+
.DESCRIPTION
6
+
The Get-LMDeviceDatasourceInstanceAlertRecipients function retrieves the alert recipients for a specific data point in a LogicMonitor device datasource instance. It requires valid API credentials and a logged-in session.
7
+
8
+
.PARAMETERDatasourceName
9
+
Specifies the name of the datasource. This parameter is mandatory when using the 'Id-dsName' or 'Name-dsName' parameter sets.
10
+
11
+
.PARAMETERDatasourceId
12
+
Specifies the ID of the datasource. This parameter is mandatory when using the 'Id-dsId' or 'Name-dsId' parameter sets.
13
+
14
+
.PARAMETERId
15
+
Specifies the ID of the device. This parameter is mandatory when using the 'Id-dsId' or 'Id-dsName' parameter sets. It can also be specified using the 'DeviceId' alias.
16
+
17
+
.PARAMETERName
18
+
Specifies the name of the device. This parameter is mandatory when using the 'Name-dsName' or 'Name-dsId' parameter sets. It can also be specified using the 'DeviceName' alias.
19
+
20
+
.PARAMETERInstanceName
21
+
Specifies the name of the datasource instance. This parameter is mandatory.
2
22
23
+
.PARAMETERDataPointName
24
+
Specifies the name of the data point. This parameter is mandatory.
Copy file name to clipboardExpand all lines: Public/Get-LMDeviceDatasourceInstanceAlertSetting.ps1
+42Lines changed: 42 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,43 @@
1
+
<#
2
+
.SYNOPSIS
3
+
Retrieves the alert settings for a specific LogicMonitor device datasource instance.
4
+
5
+
.DESCRIPTION
6
+
The Get-LMDeviceDatasourceInstanceAlertSetting function retrieves the alert settings for a specific LogicMonitor device datasource instance. It requires the device name or ID, datasource name or ID, and instance name as input parameters. Optionally, you can also provide a filter to narrow down the results. The function returns an array of alert settings for the specified instance.
7
+
8
+
.PARAMETERDatasourceName
9
+
Specifies the name of the datasource. This parameter is mandatory when using the 'Id-dsName' or 'Name-dsName' parameter set.
10
+
11
+
.PARAMETERDatasourceId
12
+
Specifies the ID of the datasource. This parameter is mandatory when using the 'Id-dsId' or 'Name-dsId' parameter set.
13
+
14
+
.PARAMETERId
15
+
Specifies the ID of the device. This parameter is mandatory when using the 'Id-dsId' or 'Id-dsName' parameter set. This parameter can also be specified using the 'DeviceId' alias.
16
+
17
+
.PARAMETERName
18
+
Specifies the name of the device. This parameter is mandatory when using the 'Name-dsName' or 'Name-dsId' parameter set. This parameter can also be specified using the 'DeviceName' alias.
19
+
20
+
.PARAMETERInstanceName
21
+
Specifies the name of the instance for which to retrieve the alert settings. This parameter is mandatory.
22
+
23
+
.PARAMETERFilter
24
+
Specifies a filter to narrow down the results. This parameter is optional.
25
+
26
+
.PARAMETERBatchSize
27
+
Specifies the number of results to retrieve per batch. The default value is 1000. This parameter is optional.
Retrieves the alert settings for the instance named "MyInstance" of the datasource with ID 456 on the device with ID 123, applying the specified filter.
36
+
37
+
.NOTES
38
+
This function requires a valid LogicMonitor API authentication. Make sure you are logged in before running any commands by using the Connect-LMAccount function.
Copy file name to clipboardExpand all lines: Public/Get-LMDeviceDatasourceInstanceGroup.ps1
+44Lines changed: 44 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,45 @@
1
+
<#
2
+
.SYNOPSIS
3
+
Retrieves the instance groups associated with a LogicMonitor device datasource.
4
+
5
+
.DESCRIPTION
6
+
The Get-LMDeviceDatasourceInstanceGroup function retrieves the instance groups associated with a LogicMonitor device datasource. It requires valid API credentials and a logged-in session.
7
+
8
+
.PARAMETERDatasourceName
9
+
Specifies the name of the datasource. This parameter is mandatory when using the 'Id-dsName' or 'Name-dsName' parameter sets.
10
+
11
+
.PARAMETERDatasourceId
12
+
Specifies the ID of the datasource. This parameter is mandatory when using the 'Id-dsId' or 'Name-dsId' parameter sets.
13
+
14
+
.PARAMETERId
15
+
Specifies the ID of the device. This parameter is mandatory when using the 'Id-dsId', 'Id-dsName', or 'Id-HdsId' parameter sets. This parameter is also aliased as 'DeviceId'.
16
+
17
+
.PARAMETERName
18
+
Specifies the name of the device. This parameter is mandatory when using the 'Name-dsName', 'Name-dsId', or 'Name-HdsId' parameter sets. This parameter is also aliased as 'DeviceName'.
19
+
20
+
.PARAMETERHdsId
21
+
Specifies the ID of the device datasource. This parameter is mandatory when using the 'Id-HdsId' or 'Name-HdsId' parameter sets.
22
+
23
+
.PARAMETERFilter
24
+
Specifies an optional filter to apply to the results.
25
+
26
+
.PARAMETERBatchSize
27
+
Specifies the number of results to retrieve per batch. The default value is 1000.
0 commit comments