Insight

class Insight : KotlinCustomResource

Insight resource Uses Azure REST API version 2024-05-01-preview. In version 2.x of the Azure Native provider, it used API version 2024-05-01-preview.

Example Usage

Creating an insight

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var insight = new AzureNative.Impact.Insight("insight", new()
{
InsightName = "insightId12",
Properties = new AzureNative.Impact.Inputs.InsightPropertiesArgs
{
Category = "repair",
Content = new AzureNative.Impact.Inputs.ContentArgs
{
Description = "At 2018-11-08T00:00:00Z UTC, your services dependent on these resources <link href=”…”>VM1</link> may have experienced an issue. <br/><div>We have identified an outage that affected these resources(s). You can look at outage information on <link href=\"https:// portal.azure.com/#view/Microsoft_Azure_Health/AzureHealthBrowseBlade/~/serviceIssues/trackingId/NL2W-VCZ\">NL2W-VCZ</link> link.<div>",
Title = "Impact Has been correlated to an outage",
},
EventTime = "2023-06-15T04:00:00.009223Z",
Impact = new AzureNative.Impact.Inputs.ImpactDetailsArgs
{
ImpactId = "/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.Impact/workloadImpacts/impactid22",
ImpactedResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-rg/providers/Microsoft.Sql/sqlserver/dbservername",
StartTime = "2023-06-15T01:00:00.009223Z",
},
InsightUniqueId = "00000000-0000-0000-0000-000000000000",
Status = "resolved",
},
WorkloadImpactName = "impactid22",
});
});
package main
import (
impact "github.com/pulumi/pulumi-azure-native-sdk/impact/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := impact.NewInsight(ctx, "insight", &impact.InsightArgs{
InsightName: pulumi.String("insightId12"),
Properties: &impact.InsightPropertiesArgs{
Category: pulumi.String("repair"),
Content: &impact.ContentArgs{
Description: pulumi.String("At 2018-11-08T00:00:00Z UTC, your services dependent on these resources <link href=”…”>VM1</link> may have experienced an issue. <br/><div>We have identified an outage that affected these resources(s). You can look at outage information on <link href=\"https:// portal.azure.com/#view/Microsoft_Azure_Health/AzureHealthBrowseBlade/~/serviceIssues/trackingId/NL2W-VCZ\">NL2W-VCZ</link> link.<div>"),
Title: pulumi.String("Impact Has been correlated to an outage"),
},
EventTime: pulumi.String("2023-06-15T04:00:00.009223Z"),
Impact: &impact.ImpactDetailsArgs{
ImpactId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.Impact/workloadImpacts/impactid22"),
ImpactedResourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-rg/providers/Microsoft.Sql/sqlserver/dbservername"),
StartTime: pulumi.String("2023-06-15T01:00:00.009223Z"),
},
InsightUniqueId: pulumi.String("00000000-0000-0000-0000-000000000000"),
Status: pulumi.String("resolved"),
},
WorkloadImpactName: pulumi.String("impactid22"),
})
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.impact.Insight;
import com.pulumi.azurenative.impact.InsightArgs;
import com.pulumi.azurenative.impact.inputs.InsightPropertiesArgs;
import com.pulumi.azurenative.impact.inputs.ContentArgs;
import com.pulumi.azurenative.impact.inputs.ImpactDetailsArgs;
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 insight = new Insight("insight", InsightArgs.builder()
.insightName("insightId12")
.properties(InsightPropertiesArgs.builder()
.category("repair")
.content(ContentArgs.builder()
.description("At 2018-11-08T00:00:00Z UTC, your services dependent on these resources <link href=”…”>VM1</link> may have experienced an issue. <br/><div>We have identified an outage that affected these resources(s). You can look at outage information on <link href=\"https:// portal.azure.com/#view/Microsoft_Azure_Health/AzureHealthBrowseBlade/~/serviceIssues/trackingId/NL2W-VCZ\">NL2W-VCZ</link> link.<div>")
.title("Impact Has been correlated to an outage")
.build())
.eventTime("2023-06-15T04:00:00.009223Z")
.impact(ImpactDetailsArgs.builder()
.impactId("/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.Impact/workloadImpacts/impactid22")
.impactedResourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-rg/providers/Microsoft.Sql/sqlserver/dbservername")
.startTime("2023-06-15T01:00:00.009223Z")
.build())
.insightUniqueId("00000000-0000-0000-0000-000000000000")
.status("resolved")
.build())
.workloadImpactName("impactid22")
.build());
}
}

Import

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

$ pulumi import azure-native:impact:Insight insightId12 /subscriptions/{subscriptionId}/providers/Microsoft.Impact/workloadImpacts/{workloadImpactName}/insights/{insightName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

The resource-specific properties for this resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>