New-LMLogicModule
Syntax
Section titled “Syntax”__AllParameterSets
Section titled “__AllParameterSets”New-LMLogicModule [-LogicModule] <psobject> [-Type] <string> [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The New-LMLogicModule function creates a new Logic Module in LogicMonitor. It supports various types of modules including datasources, property rules, topology sources, event sources, log sources, and config sources.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”$config = @{ name = "MyLogicModule" # Additional configuration properties}New-LMLogicModule -LogicModule $config -Type "datasources"Parameters
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: ''-LogicModule
Section titled “-LogicModule”A PSCustomObject containing the Logic Module configuration. Must follow the schema model defined in LogicMonitor’s API documentation.
Type: System.Management.Automation.PSObjectDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 0 IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''The type of Logic Module to create. Valid values are: datasources, propertyrules, topologysources, eventsources, logsources, configsources
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: 1 IsRequired: true 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.