Skip to content

Get-LMWebsiteData

Syntax

Id (Default)

Terminal window
Get-LMWebsiteData -Id <Int32> [-StartDate <DateTime>] [-EndDate <DateTime>] [-CheckpointId <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]

Name

Terminal window
Get-LMWebsiteData -Name <String> [-StartDate <DateTime>] [-EndDate <DateTime>] [-CheckpointId <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

The Get-LMWebsiteData function retrieves monitoring data for a specified website and checkpoint in LogicMonitor. The website can be identified by either ID or name.

Examples

Example 1

Terminal window
#Retrieve website data by ID
Get-LMWebsiteData -Id 123

Example 2

Terminal window
#Retrieve website data with custom date range
Get-LMWebsiteData -Name "www.example.com" -StartDate (Get-Date).AddDays(-1)

Parameters

-Id

The ID of the website to retrieve data from. Required for Id parameter set.

Type: Int32
Parameter Sets: Id
Aliases:
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-Name

The name of the website to retrieve data from. Required for Name parameter set.

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

-StartDate

The start date for retrieving website data. Defaults to 60 minutes ago if not specified.

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

-EndDate

The end date for retrieving website data. Defaults to current time if not specified.

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

-CheckpointId

The ID of the specific checkpoint to retrieve data from. Defaults to 0.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
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 website monitoring data objects.

Notes

You must run Connect-LMAccount before running this command.