UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

185 lines (184 loc) 7 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; import * as enums from "../types/enums"; /** * An Application Insights WebTest definition. * * Uses Azure REST API version 2022-06-15. * * Other available API versions: 2015-05-01, 2018-05-01-preview, 2020-10-05-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native applicationinsights [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, 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 Azure API version of the resource. */ readonly azureApiVersion: pulumi.Output<string>; /** * An XML configuration specification for a WebTest. */ readonly configuration: pulumi.Output<outputs.applicationinsights.WebTestPropertiesResponseConfiguration | undefined>; /** * User defined description for this WebTest. */ readonly description: pulumi.Output<string | undefined>; /** * Is the test actively being monitored. */ readonly enabled: pulumi.Output<boolean | undefined>; /** * Interval in seconds between test runs for this WebTest. Default value is 300. */ readonly frequency: pulumi.Output<number | undefined>; /** * The kind of WebTest that this web test watches. Choices are ping, multistep and standard. */ readonly kind: pulumi.Output<string | undefined>; /** * Resource location */ readonly location: pulumi.Output<string>; /** * A list of where to physically run the tests from to give global coverage for accessibility of your application. */ readonly locations: pulumi.Output<outputs.applicationinsights.WebTestGeolocationResponse[]>; /** * Azure resource name */ readonly name: pulumi.Output<string>; /** * 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. */ readonly provisioningState: pulumi.Output<string>; /** * The collection of request properties */ readonly request: pulumi.Output<outputs.applicationinsights.WebTestPropertiesResponseRequest | undefined>; /** * Allow for retries should this WebTest fail. */ readonly retryEnabled: pulumi.Output<boolean | undefined>; /** * Unique ID of this WebTest. This is typically the same value as the Name field. */ readonly syntheticMonitorId: pulumi.Output<string>; /** * Resource tags */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Seconds until this WebTest will timeout and fail. Default value is 30. */ readonly timeout: pulumi.Output<number | undefined>; /** * Azure resource type */ readonly type: pulumi.Output<string>; /** * The collection of validation rule properties */ readonly validationRules: pulumi.Output<outputs.applicationinsights.WebTestPropertiesResponseValidationRules | undefined>; /** * The kind of web test this is, valid choices are ping, multistep and standard. */ readonly webTestKind: pulumi.Output<string>; /** * User defined name if this WebTest. */ readonly webTestName: pulumi.Output<string>; /** * 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); } /** * The set of arguments for constructing a WebTest resource. */ export interface WebTestArgs { /** * An XML configuration specification for a WebTest. */ configuration?: pulumi.Input<inputs.applicationinsights.WebTestPropertiesConfigurationArgs>; /** * User defined description for this WebTest. */ description?: pulumi.Input<string>; /** * Is the test actively being monitored. */ enabled?: pulumi.Input<boolean>; /** * Interval in seconds between test runs for this WebTest. Default value is 300. */ frequency?: pulumi.Input<number>; /** * The kind of WebTest that this web test watches. Choices are ping, multistep and standard. */ kind?: pulumi.Input<enums.applicationinsights.WebTestKind>; /** * Resource location */ location?: pulumi.Input<string>; /** * A list of where to physically run the tests from to give global coverage for accessibility of your application. */ locations: pulumi.Input<pulumi.Input<inputs.applicationinsights.WebTestGeolocationArgs>[]>; /** * The collection of request properties */ request?: pulumi.Input<inputs.applicationinsights.WebTestPropertiesRequestArgs>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; /** * Allow for retries should this WebTest fail. */ retryEnabled?: pulumi.Input<boolean>; /** * Unique ID of this WebTest. This is typically the same value as the Name field. */ syntheticMonitorId: pulumi.Input<string>; /** * Resource tags */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * Seconds until this WebTest will timeout and fail. Default value is 30. */ timeout?: pulumi.Input<number>; /** * The collection of validation rule properties */ validationRules?: pulumi.Input<inputs.applicationinsights.WebTestPropertiesValidationRulesArgs>; /** * The kind of web test this is, valid choices are ping, multistep and standard. */ webTestKind: pulumi.Input<enums.applicationinsights.WebTestKind>; /** * User defined name if this WebTest. */ webTestName?: pulumi.Input<string>; }