Set-LMLogAlertGroup
Syntax
Section titled “Syntax”Id (Default)
Section titled “Id (Default)”Set-LMLogAlertGroup -Id <int> [-NewName <string>] [-Description <string>] [-Query <string>] [-Partitions <string[]>] [-WhatIf] [-Confirm] [<CommonParameters>]Set-LMLogAlertGroup -Name <string> [-NewName <string>] [-Description <string>] [-Query <string>] [-Partitions <string[]>] [-WhatIf] [-Confirm] [<CommonParameters>]InputObject
Section titled “InputObject”Set-LMLogAlertGroup -InputObject <psobject> [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The Set-LMLogAlertGroup function modifies an existing log alert group (log pipeline) in LogicMonitor. You can specify individual parameters or provide a complete configuration object using InputObject.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”Set-LMLogAlertGroup -Id 10 -Description "Updated description"EXAMPLE 2
Section titled “EXAMPLE 2”$config = Get-LMLogAlertGroup -Id 10$config.description = "Updated via InputObject"Set-LMLogAlertGroup -InputObject $configParameters
Section titled “Parameters”-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- cfParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Description
Section titled “-Description”Specifies the description for the log alert group.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''Specifies the ID of the log alert group to modify.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: Id Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: true ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-InputObject
Section titled “-InputObject”A PSCustomObject containing the complete log alert group configuration. Must include id or name.
Type: System.Management.Automation.PSObjectDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: InputObject Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''Specifies the current name of the log alert group.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-NewName
Section titled “-NewName”Specifies the new name for the log alert group.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Partitions
Section titled “-Partitions”Specifies an array of partition names associated with the log alert group.
Type: System.String[]DefaultValue: ''SupportsWildcards: falseAliases:- PartitionParameterSets:- Name: Name Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Query
Section titled “-Query”Specifies the query associated with the log alert group.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-WhatIf
Section titled “-WhatIf”Runs the command in a mode that only reports what would happen without performing the actions.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- wiParameterSets:- Name: (All) Position: Named IsRequired: false 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.