New-LMDatasourceOverviewGraph
Syntax
Section titled “Syntax”New-LMDatasourceOverviewGraph -RawObject <Object> -DatasourceId <Object> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]dsName
Section titled “dsName”New-LMDatasourceOverviewGraph -RawObject <Object> -DatasourceName <Object> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The New-LMDatasourceOverviewGraph function creates a new overview graph for a specified datasource in LogicMonitor.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”#Create overview graph using datasource IDNew-LMDatasourceOverviewGraph -RawObject $graphConfig -DatasourceId 123Example 2
Section titled “Example 2”#Create overview graph using datasource nameNew-LMDatasourceOverviewGraph -RawObject $graphConfig -DatasourceName "MyDatasource"Parameters
Section titled “Parameters”-RawObject
Section titled “-RawObject”The raw object representing the graph configuration. Use Get-LMDatasourceOverviewGraph to see the expected format.
Type: ObjectParameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-DatasourceId
Section titled “-DatasourceId”The ID of the datasource for which to create the overview graph. Required for dsId parameter set.
Type: ObjectParameter Sets: dsIdAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-DatasourceName
Section titled “-DatasourceName”The name of the datasource for which to create the overview graph. Required for dsName parameter set.
Type: ObjectParameter Sets: dsNameAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-WhatIf
Section titled “-WhatIf”Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameterParameter Sets: (All)Aliases: wi
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: SwitchParameterParameter Sets: (All)Aliases: cf
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “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
Section titled “Inputs”None. You cannot pipe objects to this command.
Section titled “None. You cannot pipe objects to this command.”Outputs
Section titled “Outputs”Returns LogicMonitor.DatasourceGraph object.
Section titled “Returns LogicMonitor.DatasourceGraph object.”You must run Connect-LMAccount before running this command.