import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Application Insights Standard WebTest. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "rg-example", * location: "West Europe", * }); * const exampleInsights = new azure.appinsights.Insights("example", { * name: "example", * location: example.location, * resourceGroupName: example.name, * applicationType: "web", * }); * const exampleStandardWebTest = new azure.appinsights.StandardWebTest("example", { * name: "example-test", * resourceGroupName: example.name, * location: "West Europe", * applicationInsightsId: exampleInsights.id, * geoLocations: ["example"], * request: { * url: "http://www.example.com", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Insights` - 2022-06-15 * * ## Import * * Application Insights Standard WebTests can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:appinsights/standardWebTest:StandardWebTest example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Insights/webTests/appinsightswebtest * ``` */ export declare class StandardWebTest extends pulumi.CustomResource { /** * Get an existing StandardWebTest 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?: StandardWebTestState, opts?: pulumi.CustomResourceOptions): StandardWebTest; /** * Returns true if the given object is an instance of StandardWebTest. 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 StandardWebTest; /** * The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created. */ readonly applicationInsightsId: pulumi.Output; /** * Purpose/user defined descriptive test for this WebTest. */ readonly description: pulumi.Output; /** * Should the WebTest be enabled? */ 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; /** * Specifies 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 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) */ readonly location: pulumi.Output; /** * The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created. */ readonly name: pulumi.Output; /** * A `request` block as defined below. */ readonly request: pulumi.Output; /** * 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. */ readonly resourceGroupName: pulumi.Output; /** * Should the retry on WebTest failure be enabled? */ readonly retryEnabled: pulumi.Output; /** * Unique ID of this WebTest. This is typically the same value as the Name field. */ readonly syntheticMonitorId: pulumi.Output; /** * A mapping of tags which should be assigned to the Application Insights Standard WebTest. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Seconds until this WebTest will timeout and fail. Default is `30`. */ readonly timeout: pulumi.Output; /** * A `validationRules` block as defined below. */ readonly validationRules: pulumi.Output; /** * Create a StandardWebTest 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: StandardWebTestArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering StandardWebTest resources. */ export interface StandardWebTestState { /** * The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created. */ applicationInsightsId?: pulumi.Input; /** * Purpose/user defined descriptive test for this WebTest. */ description?: pulumi.Input; /** * Should the WebTest be enabled? */ 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; /** * Specifies 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 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) */ location?: pulumi.Input; /** * The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created. */ name?: pulumi.Input; /** * A `request` block as defined below. */ request?: pulumi.Input; /** * 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. */ resourceGroupName?: pulumi.Input; /** * Should the retry on WebTest failure be enabled? */ retryEnabled?: pulumi.Input; /** * Unique ID of this WebTest. This is typically the same value as the Name field. */ syntheticMonitorId?: pulumi.Input; /** * A mapping of tags which should be assigned to the Application Insights Standard WebTest. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Seconds until this WebTest will timeout and fail. Default is `30`. */ timeout?: pulumi.Input; /** * A `validationRules` block as defined below. */ validationRules?: pulumi.Input; } /** * The set of arguments for constructing a StandardWebTest resource. */ export interface StandardWebTestArgs { /** * The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created. */ applicationInsightsId: pulumi.Input; /** * Purpose/user defined descriptive test for this WebTest. */ description?: pulumi.Input; /** * Should the WebTest be enabled? */ 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; /** * Specifies 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 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) */ location?: pulumi.Input; /** * The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created. */ name?: pulumi.Input; /** * A `request` block as defined below. */ request: pulumi.Input; /** * 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. */ resourceGroupName: pulumi.Input; /** * Should the retry on WebTest failure be enabled? */ retryEnabled?: pulumi.Input; /** * A mapping of tags which should be assigned to the Application Insights Standard WebTest. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Seconds until this WebTest will timeout and fail. Default is `30`. */ timeout?: pulumi.Input; /** * A `validationRules` block as defined below. */ validationRules?: pulumi.Input; }