Skip to content

New-LMDatasourceOverviewGraph

Syntax

dsId

Terminal window
New-LMDatasourceOverviewGraph -RawObject <Object> -DatasourceId <Object> [-ProgressAction <ActionPreference>]
[<CommonParameters>]

dsName

Terminal window
New-LMDatasourceOverviewGraph -RawObject <Object> -DatasourceName <Object> [-ProgressAction <ActionPreference>]
[<CommonParameters>]

Description

The New-LMDatasourceOverviewGraph function creates a new overview graph for a specified datasource in LogicMonitor.

Examples

Example 1

Terminal window
#Create overview graph using datasource ID
New-LMDatasourceOverviewGraph -RawObject $graphConfig -DatasourceId 123

Example 2

Terminal window
#Create overview graph using datasource name
New-LMDatasourceOverviewGraph -RawObject $graphConfig -DatasourceName "MyDatasource"

Parameters

-RawObject

The raw object representing the graph configuration. Use Get-LMDatasourceOverviewGraph to see the expected format.

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

-DatasourceId

The ID of the datasource for which to create the overview graph. Required for dsId parameter set.

Type: Object
Parameter Sets: dsId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DatasourceName

The name of the datasource for which to create the overview graph. Required for dsName parameter set.

Type: Object
Parameter Sets: dsName
Aliases:
Required: True
Position: Named
Default value: None
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.DatasourceGraph object.

Notes

You must run Connect-LMAccount before running this command.