import * as pulumi from "@pulumi/pulumi";
/**
* Manages an Application Insights WebTest.
*
* > **Note:** Despite the discrepancy in its name, this Terraform resource corresponds to the Azure resource 'Application Insights Classic Web Test'. Azure changed the name, but we retained the original name in Terraform to avoid disruption and ensure backward compatibility.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
*
* const example = new azure.core.ResourceGroup("example", {
* name: "tf-test",
* location: "West Europe",
* });
* const exampleInsights = new azure.appinsights.Insights("example", {
* name: "tf-test-appinsights",
* location: example.location,
* resourceGroupName: example.name,
* applicationType: "web",
* });
* const exampleWebTest = new azure.appinsights.WebTest("example", {
* name: "tf-test-appinsights-webtest",
* location: exampleInsights.location,
* resourceGroupName: example.name,
* applicationInsightsId: exampleInsights.id,
* kind: "ping",
* frequency: 300,
* timeout: 60,
* enabled: true,
* geoLocations: [
* "us-tx-sn1-azr",
* "us-il-ch1-azr",
* ],
* configuration: `
*
*
*
*
* `,
* });
* export const webtestId = exampleWebTest.id;
* export const webtestsSyntheticId = exampleWebTest.syntheticMonitorId;
* ```
*
* ## API Providers
*
*
* This resource uses the following Azure API Providers:
*
* * `Microsoft.Insights` - 2022-06-15
*
* ## Import
*
* Application Insights Web Tests can be imported using the `resource id`, e.g.
*
* ```sh
* $ pulumi import azure:appinsights/webTest:WebTest my_test /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Insights/webTests/my_test
* ```
*/
export declare class WebTest extends pulumi.CustomResource {
/**
* Get an existing WebTest resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input, state?: WebTestState, opts?: pulumi.CustomResourceOptions): WebTest;
/**
* Returns true if the given object is an instance of WebTest. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is WebTest;
/**
* The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
*/
readonly applicationInsightsId: pulumi.Output;
/**
* An XML configuration specification for a WebTest ([see here for more information](https://docs.microsoft.com/rest/api/application-insights/webtests/createorupdate/)).
*/
readonly configuration: pulumi.Output;
/**
* Purpose/user defined descriptive test for this WebTest.
*/
readonly description: pulumi.Output;
/**
* Is the test actively being monitored.
*/
readonly enabled: pulumi.Output;
/**
* Interval in seconds between test runs for this WebTest. Valid options are `300`, `600` and `900`. Defaults to `300`.
*/
readonly frequency: pulumi.Output;
/**
* A list of where to physically run the tests from to give global coverage for accessibility of your application.
*
* > **Note:** [Valid options for geo locations are described here](https://docs.microsoft.com/azure/azure-monitor/app/monitor-web-app-availability#location-population-tags)
*/
readonly geoLocations: pulumi.Output;
/**
* The kind of web test that this web test watches. Choices are `ping` and `multistep`. Changing this forces a new resource to be created.
*/
readonly kind: pulumi.Output;
/**
* Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
*/
readonly location: pulumi.Output;
/**
* Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
*/
readonly name: pulumi.Output;
/**
* The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
*/
readonly resourceGroupName: pulumi.Output;
/**
* Allow for retries should this WebTest fail.
*/
readonly retryEnabled: pulumi.Output;
readonly syntheticMonitorId: pulumi.Output;
/**
* A mapping of tags to assign to the resource.
*/
readonly tags: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* Seconds until this WebTest will timeout and fail. Default is `30`.
*/
readonly timeout: pulumi.Output;
/**
* Create a WebTest resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: WebTestArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering WebTest resources.
*/
export interface WebTestState {
/**
* The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
*/
applicationInsightsId?: pulumi.Input;
/**
* An XML configuration specification for a WebTest ([see here for more information](https://docs.microsoft.com/rest/api/application-insights/webtests/createorupdate/)).
*/
configuration?: pulumi.Input;
/**
* Purpose/user defined descriptive test for this WebTest.
*/
description?: pulumi.Input;
/**
* Is the test actively being monitored.
*/
enabled?: pulumi.Input;
/**
* Interval in seconds between test runs for this WebTest. Valid options are `300`, `600` and `900`. Defaults to `300`.
*/
frequency?: pulumi.Input;
/**
* A list of where to physically run the tests from to give global coverage for accessibility of your application.
*
* > **Note:** [Valid options for geo locations are described here](https://docs.microsoft.com/azure/azure-monitor/app/monitor-web-app-availability#location-population-tags)
*/
geoLocations?: pulumi.Input[]>;
/**
* The kind of web test that this web test watches. Choices are `ping` and `multistep`. Changing this forces a new resource to be created.
*/
kind?: pulumi.Input;
/**
* Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
*/
location?: pulumi.Input;
/**
* Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
*/
name?: pulumi.Input;
/**
* The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
*/
resourceGroupName?: pulumi.Input;
/**
* Allow for retries should this WebTest fail.
*/
retryEnabled?: pulumi.Input;
syntheticMonitorId?: pulumi.Input;
/**
* A mapping of tags to assign to the resource.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input;
}>;
/**
* Seconds until this WebTest will timeout and fail. Default is `30`.
*/
timeout?: pulumi.Input;
}
/**
* The set of arguments for constructing a WebTest resource.
*/
export interface WebTestArgs {
/**
* The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
*/
applicationInsightsId: pulumi.Input;
/**
* An XML configuration specification for a WebTest ([see here for more information](https://docs.microsoft.com/rest/api/application-insights/webtests/createorupdate/)).
*/
configuration: pulumi.Input;
/**
* Purpose/user defined descriptive test for this WebTest.
*/
description?: pulumi.Input;
/**
* Is the test actively being monitored.
*/
enabled?: pulumi.Input;
/**
* Interval in seconds between test runs for this WebTest. Valid options are `300`, `600` and `900`. Defaults to `300`.
*/
frequency?: pulumi.Input;
/**
* A list of where to physically run the tests from to give global coverage for accessibility of your application.
*
* > **Note:** [Valid options for geo locations are described here](https://docs.microsoft.com/azure/azure-monitor/app/monitor-web-app-availability#location-population-tags)
*/
geoLocations: pulumi.Input[]>;
/**
* The kind of web test that this web test watches. Choices are `ping` and `multistep`. Changing this forces a new resource to be created.
*/
kind: pulumi.Input;
/**
* Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
*/
location?: pulumi.Input;
/**
* Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
*/
name?: pulumi.Input;
/**
* The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
*/
resourceGroupName: pulumi.Input;
/**
* Allow for retries should this WebTest fail.
*/
retryEnabled?: pulumi.Input;
/**
* A mapping of tags to assign to the resource.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input;
}>;
/**
* Seconds until this WebTest will timeout and fail. Default is `30`.
*/
timeout?: pulumi.Input;
}