Web Test Args
data class WebTestArgs(val applicationInsightsId: Output<String>? = null, val configuration: 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 kind: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val retryEnabled: Output<Boolean>? = null, val tags: Output<Map<String, String>>? = null, val timeout: Output<Int>? = null) : ConvertibleToJava<WebTestArgs>
Manages an Application Insights 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.WebTest;
import com.pulumi.azure.appinsights.WebTestArgs;
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 exampleWebTest = new WebTest("exampleWebTest", WebTestArgs.builder()
.location(exampleInsights.location())
.resourceGroupName(exampleResourceGroup.name())
.applicationInsightsId(exampleInsights.id())
.kind("ping")
.frequency(300)
.timeout(60)
.enabled(true)
.geoLocations(
"us-tx-sn1-azr",
"us-il-ch1-azr")
.configuration("""
<WebTest Name="WebTest1" Id="ABD48585-0831-40CB-9069-682EA6BB3583" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="0" WorkItemIds="" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010" Description="" CredentialUserName="" CredentialPassword="" PreAuthenticate="True" Proxy="default" StopOnError="False" RecordedResultFile="" ResultsLocale="">
<Items>
<Request Method="GET" Guid="a5f10126-e4cd-570d-961c-cea43999a200" Version="1.1" Url="http://microsoft.com" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="200" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
</Items>
</WebTest>
""")
.build());
ctx.export("webtestId", exampleWebTest.id());
ctx.export("webtestsSyntheticId", exampleWebTest.syntheticMonitorId());
}
}
Content copied to clipboard
Import
Application Insights Web Tests can be imported using the resource id
, e.g.
$ pulumi import azure:appinsights/webTest:WebTest my_test /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Insights/webTests/my_test
Content copied to clipboard
Constructors
Link copied to clipboard
fun WebTestArgs(applicationInsightsId: Output<String>? = null, configuration: Output<String>? = null, description: Output<String>? = null, enabled: Output<Boolean>? = null, frequency: Output<Int>? = null, geoLocations: Output<List<String>>? = null, kind: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, retryEnabled: Output<Boolean>? = null, tags: Output<Map<String, String>>? = null, timeout: Output<Int>? = null)
Functions
Properties
Link copied to clipboard
An XML configuration specification for a WebTest (see here for more information).
Link copied to clipboard
Link copied to clipboard