StandardWebTestArgs

data class StandardWebTestArgs(val applicationInsightsId: Output<String>? = null, val description: Output<String>? = null, val enabled: Output<Boolean>? = null, val frequency: Output<Int>? = null, val geoLocations: Output<List<String>>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val request: Output<StandardWebTestRequestArgs>? = null, val resourceGroupName: Output<String>? = null, val retryEnabled: Output<Boolean>? = null, val tags: Output<Map<String, String>>? = null, val timeout: Output<Int>? = null, val validationRules: Output<StandardWebTestValidationRulesArgs>? = null) : ConvertibleToJava<StandardWebTestArgs>

Manages a Application Insights Standard WebTest.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.appinsights.Insights;
import com.pulumi.azure.appinsights.InsightsArgs;
import com.pulumi.azure.appinsights.StandardWebTest;
import com.pulumi.azure.appinsights.StandardWebTestArgs;
import com.pulumi.azure.appinsights.inputs.StandardWebTestRequestArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.applicationType("web")
.build());
var exampleStandardWebTest = new StandardWebTest("exampleStandardWebTest", StandardWebTestArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location("West Europe")
.applicationInsightsId(exampleInsights.id())
.geoLocations("example")
.request(StandardWebTestRequestArgs.builder()
.url("http://www.example.com")
.build())
.build());
}
}

Import

Application Insights Standard WebTests can be imported using the resource id, e.g.

$ pulumi import azure:appinsights/standardWebTest:StandardWebTest example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Insights/webTests/appinsightswebtest

Constructors

Link copied to clipboard
fun StandardWebTestArgs(applicationInsightsId: Output<String>? = null, description: Output<String>? = null, enabled: Output<Boolean>? = null, frequency: Output<Int>? = null, geoLocations: Output<List<String>>? = null, location: Output<String>? = null, name: Output<String>? = null, request: Output<StandardWebTestRequestArgs>? = null, resourceGroupName: Output<String>? = null, retryEnabled: Output<Boolean>? = null, tags: Output<Map<String, String>>? = null, timeout: Output<Int>? = null, validationRules: Output<StandardWebTestValidationRulesArgs>? = null)

Functions

Link copied to clipboard
open override fun toJava(): StandardWebTestArgs

Properties

Link copied to clipboard
val applicationInsightsId: Output<String>? = null

The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created.

Link copied to clipboard
val description: Output<String>? = null

Purpose/user defined descriptive test for this WebTest.

Link copied to clipboard
val enabled: Output<Boolean>? = null

Should the WebTest be enabled?

Link copied to clipboard
val frequency: Output<Int>? = null

Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.

Link copied to clipboard
val geoLocations: Output<List<String>>? = null

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

Link copied to clipboard
val location: Output<String>? = null

The Azure Region where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created. It needs to correlate with location of the parent resource (azurerm_application_insights)

Link copied to clipboard
val name: Output<String>? = null

The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created.

Link copied to clipboard
val request: Output<StandardWebTestRequestArgs>? = null

A request block as defined below.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the Resource Group where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created.

Link copied to clipboard
val retryEnabled: Output<Boolean>? = null

Should the retry on WebTest failure be enabled?

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags which should be assigned to the Application Insights Standard WebTest.

Link copied to clipboard
val timeout: Output<Int>? = null

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

Link copied to clipboard

A validation_rules block as defined below.