import * as pulumi from "@pulumi/pulumi";
/**
 * Manages an Application Insights component.
 *
 * ## 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",
 * });
 * export const instrumentationKey = exampleInsights.instrumentationKey;
 * export const appId = exampleInsights.appId;
 * ```
 *
 * ### Workspace Mode
 *
 * ```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 exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", {
 *     name: "workspace-test",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     sku: "PerGB2018",
 *     retentionInDays: 30,
 * });
 * const exampleInsights = new azure.appinsights.Insights("example", {
 *     name: "tf-test-appinsights",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     workspaceId: exampleAnalyticsWorkspace.id,
 *     applicationType: "web",
 * });
 * export const instrumentationKey = exampleInsights.instrumentationKey;
 * export const appId = exampleInsights.appId;
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.AlertsManagement` - 2019-06-01
 *
 * * `Microsoft.Insights` - 2020-02-02, 2015-05-01
 *
 * ## Import
 *
 * Application Insights instances can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:appinsights/insights:Insights instance1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Insights/components/instance1
 * ```
 */
export declare class Insights extends pulumi.CustomResource {
    /**
     * Get an existing Insights 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<pulumi.ID>, state?: InsightsState, opts?: pulumi.CustomResourceOptions): Insights;
    /**
     * Returns true if the given object is an instance of Insights.  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 Insights;
    /**
     * The App ID associated with this Application Insights component.
     */
    readonly appId: pulumi.Output<string>;
    /**
     * Specifies the type of Application Insights to create. Valid values are `ios` for _iOS_, `java` for _Java web_, `MobileCenter` for _App Center_, `Node.JS` for _Node.js_, `other` for _General_, `phone` for _Windows Phone_, `store` for _Windows Store_ and `web` for _ASP.NET_. Please note these values are case sensitive; unmatched values are treated as _ASP.NET_ by Azure. Changing this forces a new resource to be created.
     */
    readonly applicationType: pulumi.Output<string>;
    /**
     * The Connection String for this Application Insights component. (Sensitive)
     */
    readonly connectionString: pulumi.Output<string>;
    /**
     * Specifies the Application Insights component daily data volume cap in GB. Defaults to `100`.
     */
    readonly dailyDataCapInGb: pulumi.Output<number | undefined>;
    /**
     * Specifies if a notification email will be sent when the daily data volume cap is met. Defaults to `false`.
     */
    readonly dailyDataCapNotificationsDisabled: pulumi.Output<boolean | undefined>;
    /**
     * By default the real client IP is masked as `0.0.0.0` in the logs. Use this argument to disable masking and log the real client IP. Defaults to `false`.
     */
    readonly disableIpMasking: pulumi.Output<boolean | undefined>;
    /**
     * Should the Application Insights component force users to create their own storage account for profiling? Defaults to `false`.
     */
    readonly forceCustomerStorageForProfiler: pulumi.Output<boolean | undefined>;
    /**
     * The Instrumentation Key for this Application Insights component. (Sensitive)
     */
    readonly instrumentationKey: pulumi.Output<string>;
    /**
     * Should the Application Insights component support ingestion over the Public Internet? Defaults to `true`.
     */
    readonly internetIngestionEnabled: pulumi.Output<boolean | undefined>;
    /**
     * Should the Application Insights component support querying over the Public Internet? Defaults to `true`.
     */
    readonly internetQueryEnabled: pulumi.Output<boolean | undefined>;
    /**
     * Disable Non-Azure AD based Auth. Defaults to `false`.
     */
    readonly localAuthenticationDisabled: pulumi.Output<boolean | undefined>;
    /**
     * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    readonly location: pulumi.Output<string>;
    /**
     * Specifies the name of the Application Insights component. Changing this forces a new resource to be created.
     */
    readonly name: pulumi.Output<string>;
    /**
     * The name of the resource group in which to create the Application Insights component. Changing this forces a new resource to be created.
     */
    readonly resourceGroupName: pulumi.Output<string>;
    /**
     * Specifies the retention period in days. Possible values are `30`, `60`, `90`, `120`, `180`, `270`, `365`, `550` or `730`. Defaults to `90`.
     */
    readonly retentionInDays: pulumi.Output<number | undefined>;
    /**
     * Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry. Defaults to `100`.
     */
    readonly samplingPercentage: pulumi.Output<number | undefined>;
    /**
     * A mapping of tags to assign to the resource.
     */
    readonly tags: pulumi.Output<{
        [key: string]: string;
    } | undefined>;
    /**
     * Specifies the id of a log analytics workspace resource.
     *
     * > **Note:** `workspaceId` cannot be removed after set. More details can be found at [Migrate to workspace-based Application Insights resources](https://docs.microsoft.com/azure/azure-monitor/app/convert-classic-resource#migration-process). If `workspaceId` is not specified but you encounter a diff, this might indicate a Microsoft initiated automatic migration from classic resources to workspace-based resources. If this is the case, please update `workspaceId` in the config file to the new value.
     */
    readonly workspaceId: pulumi.Output<string>;
    /**
     * Create a Insights 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: InsightsArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering Insights resources.
 */
export interface InsightsState {
    /**
     * The App ID associated with this Application Insights component.
     */
    appId?: pulumi.Input<string | undefined>;
    /**
     * Specifies the type of Application Insights to create. Valid values are `ios` for _iOS_, `java` for _Java web_, `MobileCenter` for _App Center_, `Node.JS` for _Node.js_, `other` for _General_, `phone` for _Windows Phone_, `store` for _Windows Store_ and `web` for _ASP.NET_. Please note these values are case sensitive; unmatched values are treated as _ASP.NET_ by Azure. Changing this forces a new resource to be created.
     */
    applicationType?: pulumi.Input<string | undefined>;
    /**
     * The Connection String for this Application Insights component. (Sensitive)
     */
    connectionString?: pulumi.Input<string | undefined>;
    /**
     * Specifies the Application Insights component daily data volume cap in GB. Defaults to `100`.
     */
    dailyDataCapInGb?: pulumi.Input<number | undefined>;
    /**
     * Specifies if a notification email will be sent when the daily data volume cap is met. Defaults to `false`.
     */
    dailyDataCapNotificationsDisabled?: pulumi.Input<boolean | undefined>;
    /**
     * By default the real client IP is masked as `0.0.0.0` in the logs. Use this argument to disable masking and log the real client IP. Defaults to `false`.
     */
    disableIpMasking?: pulumi.Input<boolean | undefined>;
    /**
     * Should the Application Insights component force users to create their own storage account for profiling? Defaults to `false`.
     */
    forceCustomerStorageForProfiler?: pulumi.Input<boolean | undefined>;
    /**
     * The Instrumentation Key for this Application Insights component. (Sensitive)
     */
    instrumentationKey?: pulumi.Input<string | undefined>;
    /**
     * Should the Application Insights component support ingestion over the Public Internet? Defaults to `true`.
     */
    internetIngestionEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * Should the Application Insights component support querying over the Public Internet? Defaults to `true`.
     */
    internetQueryEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * Disable Non-Azure AD based Auth. Defaults to `false`.
     */
    localAuthenticationDisabled?: pulumi.Input<boolean | undefined>;
    /**
     * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    location?: pulumi.Input<string | undefined>;
    /**
     * Specifies the name of the Application Insights component. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * The name of the resource group in which to create the Application Insights component. Changing this forces a new resource to be created.
     */
    resourceGroupName?: pulumi.Input<string | undefined>;
    /**
     * Specifies the retention period in days. Possible values are `30`, `60`, `90`, `120`, `180`, `270`, `365`, `550` or `730`. Defaults to `90`.
     */
    retentionInDays?: pulumi.Input<number | undefined>;
    /**
     * Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry. Defaults to `100`.
     */
    samplingPercentage?: pulumi.Input<number | undefined>;
    /**
     * A mapping of tags to assign to the resource.
     */
    tags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * Specifies the id of a log analytics workspace resource.
     *
     * > **Note:** `workspaceId` cannot be removed after set. More details can be found at [Migrate to workspace-based Application Insights resources](https://docs.microsoft.com/azure/azure-monitor/app/convert-classic-resource#migration-process). If `workspaceId` is not specified but you encounter a diff, this might indicate a Microsoft initiated automatic migration from classic resources to workspace-based resources. If this is the case, please update `workspaceId` in the config file to the new value.
     */
    workspaceId?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a Insights resource.
 */
export interface InsightsArgs {
    /**
     * Specifies the type of Application Insights to create. Valid values are `ios` for _iOS_, `java` for _Java web_, `MobileCenter` for _App Center_, `Node.JS` for _Node.js_, `other` for _General_, `phone` for _Windows Phone_, `store` for _Windows Store_ and `web` for _ASP.NET_. Please note these values are case sensitive; unmatched values are treated as _ASP.NET_ by Azure. Changing this forces a new resource to be created.
     */
    applicationType: pulumi.Input<string>;
    /**
     * Specifies the Application Insights component daily data volume cap in GB. Defaults to `100`.
     */
    dailyDataCapInGb?: pulumi.Input<number | undefined>;
    /**
     * Specifies if a notification email will be sent when the daily data volume cap is met. Defaults to `false`.
     */
    dailyDataCapNotificationsDisabled?: pulumi.Input<boolean | undefined>;
    /**
     * By default the real client IP is masked as `0.0.0.0` in the logs. Use this argument to disable masking and log the real client IP. Defaults to `false`.
     */
    disableIpMasking?: pulumi.Input<boolean | undefined>;
    /**
     * Should the Application Insights component force users to create their own storage account for profiling? Defaults to `false`.
     */
    forceCustomerStorageForProfiler?: pulumi.Input<boolean | undefined>;
    /**
     * Should the Application Insights component support ingestion over the Public Internet? Defaults to `true`.
     */
    internetIngestionEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * Should the Application Insights component support querying over the Public Internet? Defaults to `true`.
     */
    internetQueryEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * Disable Non-Azure AD based Auth. Defaults to `false`.
     */
    localAuthenticationDisabled?: pulumi.Input<boolean | undefined>;
    /**
     * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    location?: pulumi.Input<string | undefined>;
    /**
     * Specifies the name of the Application Insights component. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * The name of the resource group in which to create the Application Insights component. Changing this forces a new resource to be created.
     */
    resourceGroupName: pulumi.Input<string>;
    /**
     * Specifies the retention period in days. Possible values are `30`, `60`, `90`, `120`, `180`, `270`, `365`, `550` or `730`. Defaults to `90`.
     */
    retentionInDays?: pulumi.Input<number | undefined>;
    /**
     * Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry. Defaults to `100`.
     */
    samplingPercentage?: pulumi.Input<number | undefined>;
    /**
     * A mapping of tags to assign to the resource.
     */
    tags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * Specifies the id of a log analytics workspace resource.
     *
     * > **Note:** `workspaceId` cannot be removed after set. More details can be found at [Migrate to workspace-based Application Insights resources](https://docs.microsoft.com/azure/azure-monitor/app/convert-classic-resource#migration-process). If `workspaceId` is not specified but you encounter a diff, this might indicate a Microsoft initiated automatic migration from classic resources to workspace-based resources. If this is the case, please update `workspaceId` in the config file to the new value.
     */
    workspaceId?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=insights.d.ts.map