Class Insights
Manages an Application Insights component.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleInsights = new Azure.AppInsights.Insights("exampleInsights", new Azure.AppInsights.InsightsArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
ApplicationType = "web",
});
this.InstrumentationKey = exampleInsights.InstrumentationKey;
this.AppId = exampleInsights.AppId;
}
[Output("instrumentationKey")]
public Output<string> InstrumentationKey { get; set; }
[Output("appId")]
public Output<string> AppId { get; set; }
}
Inherited Members
Namespace: Pulumi.Azure.AppInsights
Assembly: Pulumi.Azure.dll
Syntax
public class Insights : CustomResource
Constructors
View SourceInsights(String, InsightsArgs, CustomResourceOptions)
Create a Insights resource with the given unique name, arguments, and options.
Declaration
public Insights(string name, InsightsArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| InsightsArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAppId
The App ID associated with this Application Insights component.
Declaration
public Output<string> AppId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ApplicationType
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.
Declaration
public Output<string> ApplicationType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DailyDataCapInGb
Specifies the Application Insights component daily data volume cap in GB.
Declaration
public Output<double> DailyDataCapInGb { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Double> |
DailyDataCapNotificationsDisabled
Specifies if a notification email will be send when the daily data volume cap is met.
Declaration
public Output<bool> DailyDataCapNotificationsDisabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
DisableIpMasking
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.
Declaration
public Output<bool?> DisableIpMasking { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
InstrumentationKey
The Instrumentation Key for this Application Insights component.
Declaration
public Output<string> InstrumentationKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Location
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Declaration
public Output<string> Location { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
Specifies the name of the Application Insights component. Changing this forces a new resource to be created.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupName
The name of the resource group in which to create the Application Insights component.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RetentionInDays
Specifies the retention period in days. Possible values are 30, 60, 90, 120, 180, 270, 365, 550 or 730. Defaults to 90.
Declaration
public Output<int?> RetentionInDays { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
SamplingPercentage
Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry.
Declaration
public Output<double?> SamplingPercentage { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Double>> |
Tags
A mapping of tags to assign to the resource.
Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
Methods
View SourceGet(String, Input<String>, InsightsState, CustomResourceOptions)
Get an existing Insights resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Insights Get(string name, Input<string> id, InsightsState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| InsightsState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Insights |