WorkspaceTableArgs

data class WorkspaceTableArgs(val name: Output<String>? = null, val plan: Output<String>? = null, val retentionInDays: Output<Int>? = null, val totalRetentionInDays: Output<Int>? = null, val workspaceId: Output<String>? = null) : ConvertibleToJava<WorkspaceTableArgs>

Manages a Table in a Log Analytics (formally Operational Insights) Workspace.

Note: This resource does not create or destroy tables. This resource is used to update attributes (currently only retention_in_days) of the tables created when a Log Analytics Workspace is created. Deleting an azure.loganalytics.WorkspaceTable resource will not delete the table. Instead, the table's retention_in_days field will be set to the value of azure.operationalinsights.AnalyticsWorkspace retention_in_days

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspace;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspaceArgs;
import com.pulumi.azure.loganalytics.WorkspaceTable;
import com.pulumi.azure.loganalytics.WorkspaceTableArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
.name("example")
.location(example.location())
.resourceGroupName(example.name())
.sku("PerGB2018")
.retentionInDays(30)
.build());
var exampleWorkspaceTable = new WorkspaceTable("exampleWorkspaceTable", WorkspaceTableArgs.builder()
.workspaceId(exampleAnalyticsWorkspace.id())
.name("AppMetrics")
.retentionInDays(60)
.totalRetentionInDays(180)
.build());
}
}

Constructors

Link copied to clipboard
fun WorkspaceTableArgs(name: Output<String>? = null, plan: Output<String>? = null, retentionInDays: Output<Int>? = null, totalRetentionInDays: Output<Int>? = null, workspaceId: Output<String>? = null)

Functions

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

Properties

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

Specifies the name of a table in a Log Analytics Workspace.

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

Specify the system how to handle and charge the logs ingested to the table. Possible values are Analytics and Basic. Defaults to Analytics.

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

The table's retention in days. Possible values are either 7 (Free Tier only) or range between 30 and 730.

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

The table's total retention in days. Possible values range between 30 and 4383.

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

The object ID of the Log Analytics Workspace that contains the table.