java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.applicationinsights.models.WebtestsResource
com.azure.resourcemanager.applicationinsights.fluent.models.WebTestInner

public final class WebTestInner extends WebtestsResource
An Application Insights web test definition.
  • Constructor Details

    • WebTestInner

      public WebTestInner()
  • Method Details

    • 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.
    • 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:
      withLocation in class WebtestsResource
    • withTags

      public WebTestInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class WebtestsResource
    • 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.
    • 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.
    • webTestName

      public String webTestName()
      Get the webTestName property: User defined name if this WebTest.
      Returns:
      the webTestName value.
    • 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.
    • description

      public String description()
      Get the description property: Purpose/user defined descriptive test for this WebTest.
      Returns:
      the description value.
    • 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.
    • enabled

      public Boolean enabled()
      Get the enabled property: Is the test actively being monitored.
      Returns:
      the enabled value.
    • 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.
    • 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.
    • 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.
    • timeout

      public Integer timeout()
      Get the timeout property: Seconds until this WebTest will timeout and fail. Default value is 30.
      Returns:
      the timeout value.
    • 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.
    • 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.
    • 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.
    • retryEnabled

      public Boolean retryEnabled()
      Get the retryEnabled property: Allow for retries should this WebTest fail.
      Returns:
      the retryEnabled value.
    • 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.
    • 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.
    • withLocations

      public 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.
      Parameters:
      locations - the locations value to set.
      Returns:
      the WebTestInner object itself.
    • configuration

      public WebTestPropertiesConfiguration configuration()
      Get the configuration property: An XML configuration specification for a WebTest.
      Returns:
      the configuration 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class WebtestsResource
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.