import * as pulumi from "@pulumi/pulumi"; /** * Manages a Log Analytics (formally Operational Insights) Windows Performance Counter DataSource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", { * name: "example-law", * location: example.location, * resourceGroupName: example.name, * sku: "PerGB2018", * }); * const exampleDataSourceWindowsPerformanceCounter = new azure.loganalytics.DataSourceWindowsPerformanceCounter("example", { * name: "example-lad-wpc", * resourceGroupName: example.name, * workspaceName: exampleAnalyticsWorkspace.name, * objectName: "CPU", * instanceName: "*", * counterName: "CPU", * intervalSeconds: 10, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.OperationalInsights` - 2020-08-01 * * ## Import * * Log Analytics Windows Performance Counter DataSources can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:loganalytics/dataSourceWindowsPerformanceCounter:DataSourceWindowsPerformanceCounter example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/workspaces/workspace1/dataSources/datasource1 * ``` */ export declare class DataSourceWindowsPerformanceCounter extends pulumi.CustomResource { /** * Get an existing DataSourceWindowsPerformanceCounter resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: DataSourceWindowsPerformanceCounterState, opts?: pulumi.CustomResourceOptions): DataSourceWindowsPerformanceCounter; /** * Returns true if the given object is an instance of DataSourceWindowsPerformanceCounter. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is DataSourceWindowsPerformanceCounter; /** * The friendly name of the performance counter. */ readonly counterName: pulumi.Output; /** * The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a `*` will apply to all instances. */ readonly instanceName: pulumi.Output; /** * The time of sample interval in seconds. Supports values between 10 and 2147483647. */ readonly intervalSeconds: pulumi.Output; /** * 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. */ readonly name: pulumi.Output; /** * The object name of the Log Analytics Windows Performance Counter DataSource. */ readonly objectName: pulumi.Output; /** * 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. */ readonly resourceGroupName: pulumi.Output; /** * 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. */ readonly workspaceName: pulumi.Output; /** * Create a DataSourceWindowsPerformanceCounter resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: DataSourceWindowsPerformanceCounterArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DataSourceWindowsPerformanceCounter resources. */ export interface DataSourceWindowsPerformanceCounterState { /** * The friendly name of the performance counter. */ counterName?: pulumi.Input; /** * The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a `*` will apply to all instances. */ instanceName?: pulumi.Input; /** * The time of sample interval in seconds. Supports values between 10 and 2147483647. */ intervalSeconds?: pulumi.Input; /** * 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. */ name?: pulumi.Input; /** * The object name of the Log Analytics Windows Performance Counter DataSource. */ objectName?: pulumi.Input; /** * 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. */ resourceGroupName?: pulumi.Input; /** * 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. */ workspaceName?: pulumi.Input; } /** * The set of arguments for constructing a DataSourceWindowsPerformanceCounter resource. */ export interface DataSourceWindowsPerformanceCounterArgs { /** * The friendly name of the performance counter. */ counterName: pulumi.Input; /** * The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a `*` will apply to all instances. */ instanceName: pulumi.Input; /** * The time of sample interval in seconds. Supports values between 10 and 2147483647. */ intervalSeconds: pulumi.Input; /** * 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. */ name?: pulumi.Input; /** * The object name of the Log Analytics Windows Performance Counter DataSource. */ objectName: pulumi.Input; /** * 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. */ resourceGroupName: pulumi.Input; /** * 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. */ workspaceName: pulumi.Input; }