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

126 lines (125 loc) 4.43 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get a specific Application Insights web test 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 function getWebTest(args: GetWebTestArgs, opts?: pulumi.InvokeOptions): Promise<GetWebTestResult>; export interface GetWebTestArgs { /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; /** * The name of the Application Insights WebTest resource. */ webTestName: string; } /** * An Application Insights WebTest definition. */ export interface GetWebTestResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * An XML configuration specification for a WebTest. */ readonly configuration?: outputs.applicationinsights.WebTestPropertiesResponseConfiguration; /** * User defined description for this WebTest. */ readonly description?: string; /** * Is the test actively being monitored. */ readonly enabled?: boolean; /** * Interval in seconds between test runs for this WebTest. Default value is 300. */ readonly frequency?: number; /** * Azure resource Id */ readonly id: string; /** * The kind of WebTest that this web test watches. Choices are ping, multistep and standard. */ readonly kind?: string; /** * Resource location */ readonly location: string; /** * A list of where to physically run the tests from to give global coverage for accessibility of your application. */ readonly locations: outputs.applicationinsights.WebTestGeolocationResponse[]; /** * Azure resource name */ readonly name: 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: string; /** * The collection of request properties */ readonly request?: outputs.applicationinsights.WebTestPropertiesResponseRequest; /** * Allow for retries should this WebTest fail. */ readonly retryEnabled?: boolean; /** * Unique ID of this WebTest. This is typically the same value as the Name field. */ readonly syntheticMonitorId: string; /** * Resource tags */ readonly tags?: { [key: string]: string; }; /** * Seconds until this WebTest will timeout and fail. Default value is 30. */ readonly timeout?: number; /** * Azure resource type */ readonly type: string; /** * The collection of validation rule properties */ readonly validationRules?: outputs.applicationinsights.WebTestPropertiesResponseValidationRules; /** * The kind of web test this is, valid choices are ping, multistep and standard. */ readonly webTestKind: string; /** * User defined name if this WebTest. */ readonly webTestName: string; } /** * Get a specific Application Insights web test 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 function getWebTestOutput(args: GetWebTestOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetWebTestResult>; export interface GetWebTestOutputArgs { /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; /** * The name of the Application Insights WebTest resource. */ webTestName: pulumi.Input<string>; }