ComponentArgs

data class ComponentArgs(val applicationType: Output<Either<String, ApplicationType>>? = null, val disableIpMasking: Output<Boolean>? = null, val flowType: Output<Either<String, FlowType>>? = null, val hockeyAppId: Output<String>? = null, val immediatePurgeDataOn30Days: Output<Boolean>? = null, val ingestionMode: Output<Either<String, IngestionMode>>? = null, val kind: Output<String>? = null, val location: Output<String>? = null, val requestSource: Output<Either<String, RequestSource>>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null, val retentionInDays: Output<Int>? = null, val samplingPercentage: Output<Double>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ComponentArgs>

An Application Insights component definition. API Version: 2015-05-01.

Example Usage

ComponentCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var component = new AzureNative.Insights.Component("component", new()
{
ApplicationType = "web",
FlowType = "Bluefield",
Kind = "web",
Location = "South Central US",
RequestSource = "rest",
ResourceGroupName = "my-resource-group",
ResourceName = "my-component",
});
});
package main
import (
insights "github.com/pulumi/pulumi-azure-native-sdk/insights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := insights.NewComponent(ctx, "component", &insights.ComponentArgs{
ApplicationType: pulumi.String("web"),
FlowType: pulumi.String("Bluefield"),
Kind: pulumi.String("web"),
Location: pulumi.String("South Central US"),
RequestSource: pulumi.String("rest"),
ResourceGroupName: pulumi.String("my-resource-group"),
ResourceName: pulumi.String("my-component"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.Component;
import com.pulumi.azurenative.insights.ComponentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var component = new Component("component", ComponentArgs.builder()
.applicationType("web")
.flowType("Bluefield")
.kind("web")
.location("South Central US")
.requestSource("rest")
.resourceGroupName("my-resource-group")
.resourceName("my-component")
.build());
}
}

ComponentUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var component = new AzureNative.Insights.Component("component", new()
{
Kind = "web",
Location = "South Central US",
ResourceGroupName = "my-resource-group",
ResourceName = "my-component",
Tags =
{
{ "ApplicationGatewayType", "Internal-Only" },
{ "BillingEntity", "Self" },
},
});
});
package main
import (
insights "github.com/pulumi/pulumi-azure-native-sdk/insights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := insights.NewComponent(ctx, "component", &insights.ComponentArgs{
Kind: pulumi.String("web"),
Location: pulumi.String("South Central US"),
ResourceGroupName: pulumi.String("my-resource-group"),
ResourceName: pulumi.String("my-component"),
Tags: pulumi.StringMap{
"ApplicationGatewayType": pulumi.String("Internal-Only"),
"BillingEntity": pulumi.String("Self"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.Component;
import com.pulumi.azurenative.insights.ComponentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var component = new Component("component", ComponentArgs.builder()
.kind("web")
.location("South Central US")
.resourceGroupName("my-resource-group")
.resourceName("my-component")
.tags(Map.ofEntries(
Map.entry("ApplicationGatewayType", "Internal-Only"),
Map.entry("BillingEntity", "Self")
))
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:insights:Component my-component /subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component

Constructors

Link copied to clipboard
constructor(applicationType: Output<Either<String, ApplicationType>>? = null, disableIpMasking: Output<Boolean>? = null, flowType: Output<Either<String, FlowType>>? = null, hockeyAppId: Output<String>? = null, immediatePurgeDataOn30Days: Output<Boolean>? = null, ingestionMode: Output<Either<String, IngestionMode>>? = null, kind: Output<String>? = null, location: Output<String>? = null, requestSource: Output<Either<String, RequestSource>>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null, retentionInDays: Output<Int>? = null, samplingPercentage: Output<Double>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val applicationType: Output<Either<String, ApplicationType>>? = null

Type of application being monitored.

Link copied to clipboard
val disableIpMasking: Output<Boolean>? = null

Disable IP masking.

Link copied to clipboard
val flowType: Output<Either<String, FlowType>>? = null

Used by the Application Insights system to determine what kind of flow this component was created by. This is to be set to 'Bluefield' when creating/updating a component via the REST API.

Link copied to clipboard
val hockeyAppId: Output<String>? = null

The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.

Link copied to clipboard
val immediatePurgeDataOn30Days: Output<Boolean>? = null

Purge data immediately after 30 days.

Link copied to clipboard
val ingestionMode: Output<Either<String, IngestionMode>>? = null

Indicates the flow of the ingestion.

Link copied to clipboard
val kind: Output<String>? = null

The kind of application that this component refers to, used to customize UI. This value is a freeform string, values should typically be one of the following: web, ios, other, store, java, phone.

Link copied to clipboard
val location: Output<String>? = null

Resource location

Link copied to clipboard
val requestSource: Output<Either<String, RequestSource>>? = null

Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val resourceName: Output<String>? = null

The name of the Application Insights component resource.

Link copied to clipboard
val retentionInDays: Output<Int>? = null

Retention period in days.

Link copied to clipboard
val samplingPercentage: Output<Double>? = null

Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags

Functions

Link copied to clipboard
open override fun toJava(): ComponentArgs