Skip to content

New-LMCollectorGroup

Syntax

Terminal window
New-LMCollectorGroup [-Name] <String> [[-Description] <String>] [[-Properties] <Hashtable>]
[[-AutoBalance] <Boolean>] [[-AutoBalanceInstanceCountThreshold] <Int32>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]

Description

The New-LMCollectorGroup function creates a new collector group in LogicMonitor with specified configuration settings.

Examples

Example 1

Terminal window
#Create a new collector group with properties
New-LMCollectorGroup -Name "MyCollectorGroup" -Description "Production collectors" -Properties @{"location"="datacenter1"}

Parameters

-Name

The name of the collector group. This parameter is mandatory.

Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Description

The description of the collector group.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Properties

A hashtable of custom properties for the collector group.

Type: Hashtable
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-AutoBalance

Specifies whether to enable auto-balancing for the collector group. Defaults to $false.

Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-AutoBalanceInstanceCountThreshold

The threshold for auto-balancing the collector group. Defaults to 10000.

Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: 10000
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Fill ProgressAction Description

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None. You cannot pipe objects to this command.

Outputs

Returns LogicMonitor.CollectorGroup object.

Notes

You must run Connect-LMAccount before running this command.