Get-LMWebsiteData
Syntax
Id (Default)
Get-LMWebsiteData -Id <Int32> [-StartDate <DateTime>] [-EndDate <DateTime>] [-CheckpointId <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Name
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
#Retrieve website data by IDGet-LMWebsiteData -Id 123
Example 2
#Retrieve website data with custom date rangeGet-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: Int32Parameter Sets: IdAliases:
Required: TruePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: False
-Name
The name of the website to retrieve data from. Required for Name parameter set.
Type: StringParameter Sets: NameAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-StartDate
The start date for retrieving website data. Defaults to 60 minutes ago if not specified.
Type: DateTimeParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-EndDate
The end date for retrieving website data. Defaults to current time if not specified.
Type: DateTimeParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-CheckpointId
The ID of the specific checkpoint to retrieve data from. Defaults to 0.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: False
-ProgressAction
Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept 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.