MyWorkbookArgs

data class MyWorkbookArgs(val category: Output<String>? = null, val displayName: Output<String>? = null, val id: Output<String>? = null, val identity: Output<MyWorkbookManagedIdentityArgs>? = null, val kind: Output<Either<String, Kind>>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null, val serializedData: Output<String>? = null, val sourceId: Output<String>? = null, val storageUri: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val type: Output<String>? = null, val version: Output<String>? = null) : ConvertibleToJava<MyWorkbookArgs>

An Application Insights private workbook definition. API Version: 2020-10-20.

Example Usage

WorkbookAdd

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var myWorkbook = new AzureNative.Insights.MyWorkbook("myWorkbook", new()
{
Category = "workbook",
DisplayName = "Blah Blah Blah",
Id = "c0deea5e-3344-40f2-96f8-6f8e1c3b5722",
Kind = "user",
Location = "west us",
Name = "deadb33f-8bee-4d3b-a059-9be8dac93960",
ResourceGroupName = "my-resource-group",
ResourceName = "deadb33f-8bee-4d3b-a059-9be8dac93960",
SerializedData = "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}",
SourceId = "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens",
Tags = new[]
{
"TagSample01",
"TagSample02",
},
});
});
package main
import (
insights "github.com/pulumi/pulumi-azure-native/sdk/go/azure/insights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := insights.NewMyWorkbook(ctx, "myWorkbook", &insights.MyWorkbookArgs{
Category: pulumi.String("workbook"),
DisplayName: pulumi.String("Blah Blah Blah"),
Id: pulumi.String("c0deea5e-3344-40f2-96f8-6f8e1c3b5722"),
Kind: pulumi.String("user"),
Location: pulumi.String("west us"),
Name: pulumi.String("deadb33f-8bee-4d3b-a059-9be8dac93960"),
ResourceGroupName: pulumi.String("my-resource-group"),
ResourceName: pulumi.String("deadb33f-8bee-4d3b-a059-9be8dac93960"),
SerializedData: pulumi.String("{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}"),
SourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens"),
Tags: pulumi.StringArray{
pulumi.String("TagSample01"),
pulumi.String("TagSample02"),
},
})
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.MyWorkbook;
import com.pulumi.azurenative.insights.MyWorkbookArgs;
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 myWorkbook = new MyWorkbook("myWorkbook", MyWorkbookArgs.builder()
.category("workbook")
.displayName("Blah Blah Blah")
.id("c0deea5e-3344-40f2-96f8-6f8e1c3b5722")
.kind("user")
.location("west us")
.name("deadb33f-8bee-4d3b-a059-9be8dac93960")
.resourceGroupName("my-resource-group")
.resourceName("deadb33f-8bee-4d3b-a059-9be8dac93960")
.serializedData("{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}")
.sourceId("/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens")
.tags(
"TagSample01",
"TagSample02")
.build());
}
}

Import

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

$ pulumi import azure-native:insights:MyWorkbook deadb33f-8bee-4d3b-a059-9be8dac93960 /subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/my-resource-group/providers/Microsoft.Insights/myworkbooks/deadb33f-8bee-4d3b-a059-9be8dac93960

Constructors

Link copied to clipboard
fun MyWorkbookArgs(category: Output<String>? = null, displayName: Output<String>? = null, id: Output<String>? = null, identity: Output<MyWorkbookManagedIdentityArgs>? = null, kind: Output<Either<String, Kind>>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null, serializedData: Output<String>? = null, sourceId: Output<String>? = null, storageUri: Output<String>? = null, tags: Output<Map<String, String>>? = null, type: Output<String>? = null, version: Output<String>? = null)

Functions

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

Properties

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

Workbook category, as defined by the user at creation time.

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

The user-defined name of the private workbook.

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

Azure resource Id

Link copied to clipboard

Identity used for BYOS

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

The kind of workbook. Choices are user and shared.

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

Resource location

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

Azure resource name

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 serializedData: Output<String>? = null

Configuration of this particular private workbook. Configuration data is a string containing valid JSON

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

Optional resourceId for a source resource.

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

BYOS Storage Account URI

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

Resource tags

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

Azure resource type

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

This instance's version of the data model. This can change as new features are added that can be marked private workbook.