
com.pulumi.azurenative.insights.kotlin.inputs.PerfCounterDataSourceArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.insights.kotlin.inputs
import com.pulumi.azurenative.insights.inputs.PerfCounterDataSourceArgs.builder
import com.pulumi.azurenative.insights.kotlin.enums.KnownPerfCounterDataSourceStreams
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Definition of which performance counters will be collected and how they will be collected by this data collection rule.
* Collected from both Windows and Linux machines where the counter is present.
* @property counterSpecifiers A list of specifier names of the performance counters you want to collect.
* Use a wildcard (*) to collect a counter for all instances.
* To get a list of performance counters on Windows, run the command 'typeperf'.
* @property name A friendly name for the data source.
* This name should be unique across all data sources (regardless of type) within the data collection rule.
* @property samplingFrequencyInSeconds The number of seconds between consecutive counter measurements (samples).
* @property streams List of streams that this data source will be sent to.
* A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
*/
public data class PerfCounterDataSourceArgs(
public val counterSpecifiers: Output>? = null,
public val name: Output? = null,
public val samplingFrequencyInSeconds: Output? = null,
public val streams: Output>>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.insights.inputs.PerfCounterDataSourceArgs =
com.pulumi.azurenative.insights.inputs.PerfCounterDataSourceArgs.builder()
.counterSpecifiers(counterSpecifiers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.name(name?.applyValue({ args0 -> args0 }))
.samplingFrequencyInSeconds(samplingFrequencyInSeconds?.applyValue({ args0 -> args0 }))
.streams(
streams?.applyValue({ args0 ->
args0.map({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
})
}),
).build()
}
/**
* Builder for [PerfCounterDataSourceArgs].
*/
@PulumiTagMarker
public class PerfCounterDataSourceArgsBuilder internal constructor() {
private var counterSpecifiers: Output>? = null
private var name: Output? = null
private var samplingFrequencyInSeconds: Output? = null
private var streams: Output>>? = null
/**
* @param value A list of specifier names of the performance counters you want to collect.
* Use a wildcard (*) to collect a counter for all instances.
* To get a list of performance counters on Windows, run the command 'typeperf'.
*/
@JvmName("isdaxchheywptjdd")
public suspend fun counterSpecifiers(`value`: Output>) {
this.counterSpecifiers = value
}
@JvmName("ccebbdsgrhdkggcf")
public suspend fun counterSpecifiers(vararg values: Output) {
this.counterSpecifiers = Output.all(values.asList())
}
/**
* @param values A list of specifier names of the performance counters you want to collect.
* Use a wildcard (*) to collect a counter for all instances.
* To get a list of performance counters on Windows, run the command 'typeperf'.
*/
@JvmName("otevrmpukajurcjh")
public suspend fun counterSpecifiers(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy