Get-LMDeviceGroupDatasourceAlertSetting
Syntax
Section titled “Syntax”All (Default)
Section titled “All (Default)”Get-LMDeviceGroupDatasourceAlertSetting [-Filter <Object>] [-BatchSize <int>] [<CommonParameters>]Name-dsName
Section titled “Name-dsName”Get-LMDeviceGroupDatasourceAlertSetting -DatasourceName <string> -Name <string> [-Filter <Object>] [-BatchSize <int>] [<CommonParameters>]Id-dsName
Section titled “Id-dsName”Get-LMDeviceGroupDatasourceAlertSetting -DatasourceName <string> -Id <int> [-Filter <Object>] [-BatchSize <int>] [<CommonParameters>]Name-dsId
Section titled “Name-dsId”Get-LMDeviceGroupDatasourceAlertSetting -DatasourceId <int> -Name <string> [-Filter <Object>] [-BatchSize <int>] [<CommonParameters>]Id-dsId
Section titled “Id-dsId”Get-LMDeviceGroupDatasourceAlertSetting -DatasourceId <int> -Id <int> [-Filter <Object>] [-BatchSize <int>] [<CommonParameters>]Description
Section titled “Description”The Get-LMDeviceGroupDatasourceAlertSetting function retrieves the alert settings for a specific datasource within a device group. It supports identifying both the group and datasource by either ID or name.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”#Retrieve alert settings using namesGet-LMDeviceGroupDatasourceAlertSetting -Name "Production Servers" -DatasourceName "CPU"EXAMPLE 2
Section titled “EXAMPLE 2”#Retrieve alert settings using IDsGet-LMDeviceGroupDatasourceAlertSetting -Id 123 -DatasourceId 456Parameters
Section titled “Parameters”-BatchSize
Section titled “-BatchSize”The number of results to return per request. Must be between 1 and 1000. Defaults to 1000.
Type: System.Int32DefaultValue: 1000SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DatasourceId
Section titled “-DatasourceId”The ID of the datasource. Required for Id-dsId and Name-dsId parameter sets.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: Name-dsId Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id-dsId Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DatasourceName
Section titled “-DatasourceName”The name of the datasource. Required for Id-dsName and Name-dsName parameter sets.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name-dsName Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id-dsName Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Filter
Section titled “-Filter”A filter object to apply when retrieving alert settings. This parameter is optional.
Type: System.ObjectDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''The ID of the device group. Required for Id-dsId and Id-dsName parameter sets.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-dsName Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id-dsId Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''The name of the device group. Required for Name-dsName and Name-dsId parameter sets.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name-dsId Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-dsName Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''CommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.