WebTestInner Class

public final class WebTestInner
extends WebtestsResource

An Application Insights web test definition.

Constructor Summary

Constructor Description
WebTestInner()

Method Summary

Modifier and Type Method and Description
WebTestPropertiesConfiguration configuration()

Get the configuration property: An XML configuration specification for a WebTest.

String description()

Get the description property: Purpose/user defined descriptive test for this WebTest.

Boolean enabled()

Get the enabled property: Is the test actively being monitored.

Integer frequency()

Get the frequency property: Interval in seconds between test runs for this WebTest.

WebTestKind kind()

Get the kind property: The kind of web test that this web test watches.

List<WebTestGeolocation> locations()

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

String provisioningState()

Get the provisioningState property: Current state of this component, whether or not is has been provisioned within the resource group it is defined.

Boolean retryEnabled()

Get the retryEnabled property: Allow for retries should this WebTest fail.

String syntheticMonitorId()

Get the syntheticMonitorId property: Unique ID of this WebTest.

Integer timeout()

Get the timeout property: Seconds until this WebTest will timeout and fail.

void validate()

Validates the instance.

WebTestKind webTestKind()

Get the webTestKind property: The kind of web test this is, valid choices are ping and multistep.

String webTestName()

Get the webTestName property: User defined name if this WebTest.

WebTestInner withConfiguration(WebTestPropertiesConfiguration configuration)

Set the configuration property: An XML configuration specification for a WebTest.

WebTestInner withDescription(String description)

Set the description property: Purpose/user defined descriptive test for this WebTest.

WebTestInner withEnabled(Boolean enabled)

Set the enabled property: Is the test actively being monitored.

WebTestInner withFrequency(Integer frequency)

Set the frequency property: Interval in seconds between test runs for this WebTest.

WebTestInner withKind(WebTestKind kind)

Set the kind property: The kind of web test that this web test watches.

WebTestInner withLocation(String location)
WebTestInner withLocations(List<WebTestGeolocation> locations)

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

WebTestInner withRetryEnabled(Boolean retryEnabled)

Set the retryEnabled property: Allow for retries should this WebTest fail.

WebTestInner withSyntheticMonitorId(String syntheticMonitorId)

Set the syntheticMonitorId property: Unique ID of this WebTest.

WebTestInner withTags(Map<String,String> tags)
WebTestInner withTimeout(Integer timeout)

Set the timeout property: Seconds until this WebTest will timeout and fail.

WebTestInner withWebTestKind(WebTestKind webTestKind)

Set the webTestKind property: The kind of web test this is, valid choices are ping and multistep.

WebTestInner withWebTestName(String webTestName)

Set the webTestName property: User defined name if this WebTest.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from WebtestsResource

Methods inherited from java.lang.Object

Constructor Details

WebTestInner

public WebTestInner()

Method Details

configuration

public WebTestPropertiesConfiguration configuration()

Get the configuration property: An XML configuration specification for a WebTest.

Returns:

the configuration value.

description

public String description()

Get the description property: Purpose/user defined descriptive test for this WebTest.

Returns:

the description value.

enabled

public Boolean enabled()

Get the enabled property: Is the test actively being monitored.

Returns:

the enabled value.

frequency

public Integer frequency()

Get the frequency property: Interval in seconds between test runs for this WebTest. Default value is 300.

Returns:

the frequency value.

kind

public WebTestKind kind()

Get the kind property: The kind of web test that this web test watches. Choices are ping and multistep.

Returns:

the kind value.

locations

public List locations()

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

Returns:

the locations value.

provisioningState

public String provisioningState()

Get the provisioningState property: 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.

Returns:

the provisioningState value.

retryEnabled

public Boolean retryEnabled()

Get the retryEnabled property: Allow for retries should this WebTest fail.

Returns:

the retryEnabled value.

syntheticMonitorId

public String syntheticMonitorId()

Get the syntheticMonitorId property: Unique ID of this WebTest. This is typically the same value as the Name field.

Returns:

the syntheticMonitorId value.

timeout

public Integer timeout()

Get the timeout property: Seconds until this WebTest will timeout and fail. Default value is 30.

Returns:

the timeout value.

validate

public void validate()

Validates the instance.

Overrides:

WebTestInner.validate()

webTestKind

public WebTestKind webTestKind()

Get the webTestKind property: The kind of web test this is, valid choices are ping and multistep.

Returns:

the webTestKind value.

webTestName

public String webTestName()

Get the webTestName property: User defined name if this WebTest.

Returns:

the webTestName value.

withConfiguration

public WebTestInner withConfiguration(WebTestPropertiesConfiguration configuration)

Set the configuration property: An XML configuration specification for a WebTest.

Parameters:

configuration - the configuration value to set.

Returns:

the WebTestInner object itself.

withDescription

public WebTestInner withDescription(String description)

Set the description property: Purpose/user defined descriptive test for this WebTest.

Parameters:

description - the description value to set.

Returns:

the WebTestInner object itself.

withEnabled

public WebTestInner withEnabled(Boolean enabled)

Set the enabled property: Is the test actively being monitored.

Parameters:

enabled - the enabled value to set.

Returns:

the WebTestInner object itself.

withFrequency

public WebTestInner withFrequency(Integer frequency)

Set the frequency property: Interval in seconds between test runs for this WebTest. Default value is 300.

Parameters:

frequency - the frequency value to set.

Returns:

the WebTestInner object itself.

withKind

public WebTestInner withKind(WebTestKind kind)

Set the kind property: The kind of web test that this web test watches. Choices are ping and multistep.

Parameters:

kind - the kind value to set.

Returns:

the WebTestInner object itself.

withLocation

public WebTestInner withLocation(String location)

Overrides:

WebTestInner.withLocation(String location)

Parameters:

location

withLocations

public WebTestInner withLocations(List locations)

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

Parameters:

locations - the locations value to set.

Returns:

the WebTestInner object itself.

withRetryEnabled

public WebTestInner withRetryEnabled(Boolean retryEnabled)

Set the retryEnabled property: Allow for retries should this WebTest fail.

Parameters:

retryEnabled - the retryEnabled value to set.

Returns:

the WebTestInner object itself.

withSyntheticMonitorId

public WebTestInner withSyntheticMonitorId(String syntheticMonitorId)

Set the syntheticMonitorId property: Unique ID of this WebTest. This is typically the same value as the Name field.

Parameters:

syntheticMonitorId - the syntheticMonitorId value to set.

Returns:

the WebTestInner object itself.

withTags

public WebTestInner withTags(Map tags)

Overrides:

WebTestInner.withTags(Map<String,String> tags)

Parameters:

tags

withTimeout

public WebTestInner withTimeout(Integer timeout)

Set the timeout property: Seconds until this WebTest will timeout and fail. Default value is 30.

Parameters:

timeout - the timeout value to set.

Returns:

the WebTestInner object itself.

withWebTestKind

public WebTestInner withWebTestKind(WebTestKind webTestKind)

Set the webTestKind property: The kind of web test this is, valid choices are ping and multistep.

Parameters:

webTestKind - the webTestKind value to set.

Returns:

the WebTestInner object itself.

withWebTestName

public WebTestInner withWebTestName(String webTestName)

Set the webTestName property: User defined name if this WebTest.

Parameters:

webTestName - the webTestName value to set.

Returns:

the WebTestInner object itself.

Applies to