Sdílet prostřednictvím


WebTest Class

Definition

An Application Insights WebTest definition.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.WebTestTypeConverter))]
public class WebTest : Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.WebTestTypeConverter))>]
type WebTest = class
    interface IWebTest
    interface IJsonSerializable
    interface IWebtestsResource
    interface IValidates
Public Class WebTest
Implements IValidates, IWebTest
Inheritance
WebTest
Attributes
Implements

Constructors

WebTest()

Creates an new WebTest instance.

Properties

ConfigurationWebTest

The XML specification of a WebTest to run against an application.

ContentValidationContentMatch

Content to look for in the return of the WebTest. Must not be null or empty.

ContentValidationIgnoreCase

When set, this value makes the ContentMatch validation case insensitive.

ContentValidationPassIfTextFound

When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match

Description

User defined description for this WebTest.

Enabled

Is the test actively being monitored.

Frequency

Interval in seconds between test runs for this WebTest. Default value is 300.

Id

Azure resource Id

Kind

The kind of WebTest that this web test watches. Choices are ping, multistep and standard.

Location

Resource location

Name

Azure resource name

PropertiesLocations

A list of where to physically run the tests from to give global coverage for accessibility of your application.

ProvisioningState

Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.

RequestBody

Base64 encoded string body to send with this web test.

RequestFollowRedirect

Follow redirects for this web test.

RequestHeader

List of headers and their values to add to the WebTest call.

RequestHttpVerb

Http verb to use for this web test.

RequestParseDependentRequest

Parse Dependent request for this WebTest.

RequestUrl

Url location to test.

ResourceGroupName

Gets the resource group name

RetryEnabled

Allow for retries should this WebTest fail.

SyntheticMonitorId

Unique ID of this WebTest. This is typically the same value as the Name field.

Tag

Resource tags

Timeout

Seconds until this WebTest will timeout and fail. Default value is 30.

Type

Azure resource type

ValidationRuleExpectedHttpStatusCode

Validate that the WebTest returns the http status code provided.

ValidationRuleIgnoreHttpsStatusCode

When set, validation will ignore the status code.

ValidationRuleSslCertRemainingLifetimeCheck

A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.

ValidationRuleSslCheck

Checks to see if the SSL cert is still valid.

WebTestKind

The kind of web test this is, valid choices are ping, multistep, and standard.

WebTestName

User defined name if this WebTest.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of WebTest.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of WebTest.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest.

FromJsonString(String)

Creates a new instance of WebTest, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of WebTest into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to