Aracılığıyla paylaş


WebTestProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.applicationinsights.fluent.models.WebTestProperties

Implements

public final class WebTestProperties
implements JsonSerializable<WebTestProperties>

Metadata describing a web test for an Azure resource.

Constructor Summary

Constructor Description
WebTestProperties()

Creates an instance of WebTestProperties class.

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: User defined description 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.

static WebTestProperties fromJson(JsonReader jsonReader)

Reads an instance of WebTestProperties from the JsonReader.

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.

WebTestPropertiesRequest request()

Get the request property: The collection of request properties.

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WebTestPropertiesValidationRules validationRules()

Get the validationRules property: The collection of validation rule properties.

WebTestKind webTestKind()

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

String webTestName()

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

WebTestProperties withConfiguration(WebTestPropertiesConfiguration configuration)

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

WebTestProperties withDescription(String description)

Set the description property: User defined description for this WebTest.

WebTestProperties withEnabled(Boolean enabled)

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

WebTestProperties withFrequency(Integer frequency)

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

WebTestProperties 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.

WebTestProperties withRequest(WebTestPropertiesRequest request)

Set the request property: The collection of request properties.

WebTestProperties withRetryEnabled(Boolean retryEnabled)

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

WebTestProperties withSyntheticMonitorId(String syntheticMonitorId)

Set the syntheticMonitorId property: Unique ID of this WebTest.

WebTestProperties withTimeout(Integer timeout)

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

WebTestProperties withValidationRules(WebTestPropertiesValidationRules validationRules)

Set the validationRules property: The collection of validation rule properties.

WebTestProperties withWebTestKind(WebTestKind webTestKind)

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

WebTestProperties withWebTestName(String webTestName)

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

Methods inherited from java.lang.Object

Constructor Details

WebTestProperties

public WebTestProperties()

Creates an instance of WebTestProperties class.

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: User defined description 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.

fromJson

public static WebTestProperties fromJson(JsonReader jsonReader)

Reads an instance of WebTestProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WebTestProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

locations

public 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.

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.

request

public WebTestPropertiesRequest request()

Get the request property: The collection of request properties.

Returns:

the request 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

validationRules

public WebTestPropertiesValidationRules validationRules()

Get the validationRules property: The collection of validation rule properties.

Returns:

the validationRules value.

webTestKind

public WebTestKind webTestKind()

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

Returns:

the webTestKind value.

webTestName

public String webTestName()

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

Returns:

the webTestName value.

withConfiguration

public WebTestProperties withConfiguration(WebTestPropertiesConfiguration configuration)

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

Parameters:

configuration - the configuration value to set.

Returns:

the WebTestProperties object itself.

withDescription

public WebTestProperties withDescription(String description)

Set the description property: User defined description for this WebTest.

Parameters:

description - the description value to set.

Returns:

the WebTestProperties object itself.

withEnabled

public WebTestProperties withEnabled(Boolean enabled)

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

Parameters:

enabled - the enabled value to set.

Returns:

the WebTestProperties object itself.

withFrequency

public WebTestProperties 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 WebTestProperties object itself.

withLocations

public WebTestProperties 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.

Parameters:

locations - the locations value to set.

Returns:

the WebTestProperties object itself.

withRequest

public WebTestProperties withRequest(WebTestPropertiesRequest request)

Set the request property: The collection of request properties.

Parameters:

request - the request value to set.

Returns:

the WebTestProperties object itself.

withRetryEnabled

public WebTestProperties withRetryEnabled(Boolean retryEnabled)

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

Parameters:

retryEnabled - the retryEnabled value to set.

Returns:

the WebTestProperties object itself.

withSyntheticMonitorId

public WebTestProperties 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 WebTestProperties object itself.

withTimeout

public WebTestProperties 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 WebTestProperties object itself.

withValidationRules

public WebTestProperties withValidationRules(WebTestPropertiesValidationRules validationRules)

Set the validationRules property: The collection of validation rule properties.

Parameters:

validationRules - the validationRules value to set.

Returns:

the WebTestProperties object itself.

withWebTestKind

public WebTestProperties withWebTestKind(WebTestKind webTestKind)

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

Parameters:

webTestKind - the webTestKind value to set.

Returns:

the WebTestProperties object itself.

withWebTestName

public WebTestProperties withWebTestName(String webTestName)

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

Parameters:

webTestName - the webTestName value to set.

Returns:

the WebTestProperties object itself.

Applies to