Get-LMWebsiteData
Syntax
Section titled “Syntax”Id (Default)
Section titled “Id (Default)”Get-LMWebsiteData -Id <Int32> [-StartDate <DateTime>] [-EndDate <DateTime>] [-CheckpointId <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Get-LMWebsiteData -Name <String> [-StartDate <DateTime>] [-EndDate <DateTime>] [-CheckpointId <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Section titled “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
Section titled “Examples”Example 1
Section titled “Example 1”#Retrieve website data by IDGet-LMWebsiteData -Id 123Example 2
Section titled “Example 2”#Retrieve website data with custom date rangeGet-LMWebsiteData -Name "www.example.com" -StartDate (Get-Date).AddDays(-1)Parameters
Section titled “Parameters”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: FalseThe 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
Section titled “-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
Section titled “-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
Section titled “-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
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 website monitoring data objects.
Section titled “Returns website monitoring data objects.”You must run Connect-LMAccount before running this command.