WebTestProperties Class
- java.
lang. Object - com.
azure. resourcemanager. applicationinsights. fluent. models. WebTestProperties
- com.
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 Web |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Web |
configuration()
Get the configuration property: An XML configuration specification for a Web |
| String |
description()
Get the description property: User defined description for this Web |
| 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 Web |
|
static
Web |
fromJson(JsonReader jsonReader)
Reads an instance of Web |
|
List<Web |
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 provisioning |
|
Web |
request()
Get the request property: The collection of request properties. |
| Boolean |
retryEnabled()
Get the retry |
| String |
syntheticMonitorId()
Get the synthetic |
| Integer |
timeout()
Get the timeout property: Seconds until this Web |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Web |
validationRules()
Get the validation |
|
Web |
webTestKind()
Get the web |
| String |
webTestName()
Get the web |
|
Web |
withConfiguration(WebTestPropertiesConfiguration configuration)
Set the configuration property: An XML configuration specification for a Web |
|
Web |
withDescription(String description)
Set the description property: User defined description for this Web |
|
Web |
withEnabled(Boolean enabled)
Set the enabled property: Is the test actively being monitored. |
|
Web |
withFrequency(Integer frequency)
Set the frequency property: Interval in seconds between test runs for this Web |
|
Web |
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. |
|
Web |
withRequest(WebTestPropertiesRequest request)
Set the request property: The collection of request properties. |
|
Web |
withRetryEnabled(Boolean retryEnabled)
Set the retry |
|
Web |
withSyntheticMonitorId(String syntheticMonitorId)
Set the synthetic |
|
Web |
withTimeout(Integer timeout)
Set the timeout property: Seconds until this Web |
|
Web |
withValidationRules(WebTestPropertiesValidationRules validationRules)
Set the validation |
|
Web |
withWebTestKind(WebTestKind webTestKind)
Set the web |
|
Web |
withWebTestName(String webTestName)
Set the web |
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:
description
public String description()
Get the description property: User defined description for this WebTest.
Returns:
enabled
public Boolean enabled()
Get the enabled property: Is the test actively being monitored.
Returns:
frequency
public Integer frequency()
Get the frequency property: Interval in seconds between test runs for this WebTest. Default value is 300.
Returns:
fromJson
public static WebTestProperties fromJson(JsonReader jsonReader)
Reads an instance of WebTestProperties from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
request
public WebTestPropertiesRequest request()
Get the request property: The collection of request properties.
Returns:
retryEnabled
public Boolean retryEnabled()
Get the retryEnabled property: Allow for retries should this WebTest fail.
Returns:
syntheticMonitorId
public String syntheticMonitorId()
Get the syntheticMonitorId property: Unique ID of this WebTest. This is typically the same value as the Name field.
Returns:
timeout
public Integer timeout()
Get the timeout property: Seconds until this WebTest will timeout and fail. Default value is 30.
Returns:
toJson
validate
public void validate()
Validates the instance.
validationRules
public WebTestPropertiesValidationRules validationRules()
Get the validationRules property: The collection of validation rule properties.
Returns:
webTestKind
public WebTestKind webTestKind()
Get the webTestKind property: The kind of web test this is, valid choices are ping, multistep and standard.
Returns:
webTestName
public String webTestName()
Get the webTestName property: User defined name if this WebTest.
Returns:
withConfiguration
public WebTestProperties withConfiguration(WebTestPropertiesConfiguration configuration)
Set the configuration property: An XML configuration specification for a WebTest.
Parameters:
Returns:
withDescription
public WebTestProperties withDescription(String description)
Set the description property: User defined description for this WebTest.
Parameters:
Returns:
withEnabled
public WebTestProperties withEnabled(Boolean enabled)
Set the enabled property: Is the test actively being monitored.
Parameters:
Returns:
withFrequency
public WebTestProperties withFrequency(Integer frequency)
Set the frequency property: Interval in seconds between test runs for this WebTest. Default value is 300.
Parameters:
Returns:
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:
Returns:
withRequest
public WebTestProperties withRequest(WebTestPropertiesRequest request)
Set the request property: The collection of request properties.
Parameters:
Returns:
withRetryEnabled
public WebTestProperties withRetryEnabled(Boolean retryEnabled)
Set the retryEnabled property: Allow for retries should this WebTest fail.
Parameters:
Returns:
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:
Returns:
withTimeout
public WebTestProperties withTimeout(Integer timeout)
Set the timeout property: Seconds until this WebTest will timeout and fail. Default value is 30.
Parameters:
Returns:
withValidationRules
public WebTestProperties withValidationRules(WebTestPropertiesValidationRules validationRules)
Set the validationRules property: The collection of validation rule properties.
Parameters:
Returns:
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:
Returns:
withWebTestName
public WebTestProperties withWebTestName(String webTestName)
Set the webTestName property: User defined name if this WebTest.
Parameters:
Returns: