Get-LMWebsiteData
Syntax
Section titled “Syntax”Id (Default)
Section titled “Id (Default)”Get-LMWebsiteData -Id <int> [-StartDate <datetime>] [-EndDate <datetime>] [-CheckpointId <string>] [-BatchSize <int>] [<CommonParameters>]Get-LMWebsiteData -Name <string> [-StartDate <datetime>] [-EndDate <datetime>] [-CheckpointId <string>] [-BatchSize <int>] [<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”-BatchSize
Section titled “-BatchSize”Type: System.Int32DefaultValue: 1000SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-CheckpointId
Section titled “-CheckpointId”The ID of the specific checkpoint to retrieve data from. Defaults to 0.
Type: System.StringDefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-EndDate
Section titled “-EndDate”The end date for retrieving website data. Defaults to current time if not specified.
Type: System.DateTimeDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''The ID of the website to retrieve data from. Required for Id parameter set.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: Id Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''The name of the website to retrieve data from. Required for Name parameter set.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-StartDate
Section titled “-StartDate”The start date for retrieving website data. Defaults to 60 minutes ago if not specified.
Type: System.DateTimeDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''CommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.