DataSourceWindowsPerformanceCounterArgs

data class DataSourceWindowsPerformanceCounterArgs(val counterName: Output<String>? = null, val instanceName: Output<String>? = null, val intervalSeconds: Output<Int>? = null, val name: Output<String>? = null, val objectName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<DataSourceWindowsPerformanceCounterArgs>

Manages a Log Analytics (formally Operational Insights) Windows Performance Counter DataSource.

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.DataSourceWindowsPerformanceCounter;
import com.pulumi.azure.loganalytics.DataSourceWindowsPerformanceCounterArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku("PerGB2018")
.build());
var exampleDataSourceWindowsPerformanceCounter = new DataSourceWindowsPerformanceCounter("exampleDataSourceWindowsPerformanceCounter", DataSourceWindowsPerformanceCounterArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.workspaceName(exampleAnalyticsWorkspace.name())
.objectName("CPU")
.instanceName("*")
.counterName("CPU")
.intervalSeconds(10)
.build());
}
}

Import

Log Analytics Windows Performance Counter DataSources can be imported using the resource id, e.g.

$ pulumi import azure:loganalytics/dataSourceWindowsPerformanceCounter:DataSourceWindowsPerformanceCounter example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/workspaces/workspace1/dataSources/datasource1

Constructors

Link copied to clipboard
fun DataSourceWindowsPerformanceCounterArgs(counterName: Output<String>? = null, instanceName: Output<String>? = null, intervalSeconds: Output<Int>? = null, name: Output<String>? = null, objectName: Output<String>? = null, resourceGroupName: Output<String>? = null, workspaceName: Output<String>? = null)

Functions

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

Properties

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

The friendly name of the performance counter.

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

The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a * will apply to all instances.

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

The time of sample interval in seconds. Supports values between 10 and 2147483647.

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

The Name which should be used for this Log Analytics Windows Performance Counter DataSource. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.

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

The object name of the Log Analytics Windows Performance Counter DataSource.

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

The name of the Resource Group where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.

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

The name of the Log Analytics Workspace where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.