com.pulumi.alicloud.cms.kotlin.HybridMonitorSlsTaskArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-alicloud-kotlin Show documentation
Show all versions of pulumi-alicloud-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.alicloud.cms.kotlin
import com.pulumi.alicloud.cms.HybridMonitorSlsTaskArgs.builder
import com.pulumi.alicloud.cms.kotlin.inputs.HybridMonitorSlsTaskAttachLabelArgs
import com.pulumi.alicloud.cms.kotlin.inputs.HybridMonitorSlsTaskAttachLabelArgsBuilder
import com.pulumi.alicloud.cms.kotlin.inputs.HybridMonitorSlsTaskSlsProcessConfigArgs
import com.pulumi.alicloud.cms.kotlin.inputs.HybridMonitorSlsTaskSlsProcessConfigArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Provides a Cloud Monitor Service Hybrid Monitor Sls Task resource.
* For information about Cloud Monitor Service Hybrid Monitor Sls Task and how to use it, see [What is Hybrid Monitor Sls Task](https://www.alibabacloud.com/help/en/cloudmonitor/latest/createhybridmonitortask).
* > **NOTE:** Available since v1.179.0.
* ## Import
* Cloud Monitor Service Hybrid Monitor Sls Task can be imported using the id, e.g.
* ```sh
* $ pulumi import alicloud:cms/hybridMonitorSlsTask:HybridMonitorSlsTask example
* ```
* @property attachLabels The label of the monitoring task. See `attach_labels` below.
* @property collectInterval The interval at which metrics are collected. Valid values: `15`, `60`(default value). Unit: seconds.
* @property collectTargetType The type of the collection target, enter the name of the Logstore group.
* @property description The description of the metric import task.
* @property namespace The name of the namespace.
* @property slsProcessConfig The configurations of the logs that are imported from Log Service. See `sls_process_config` below.
* @property taskName The name of the metric import task, enter the name of the metric for logs imported from Log Service.
*/
public data class HybridMonitorSlsTaskArgs(
public val attachLabels: Output>? = null,
public val collectInterval: Output? = null,
public val collectTargetType: Output? = null,
public val description: Output? = null,
public val namespace: Output? = null,
public val slsProcessConfig: Output? = null,
public val taskName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.alicloud.cms.HybridMonitorSlsTaskArgs =
com.pulumi.alicloud.cms.HybridMonitorSlsTaskArgs.builder()
.attachLabels(
attachLabels?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.collectInterval(collectInterval?.applyValue({ args0 -> args0 }))
.collectTargetType(collectTargetType?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.namespace(namespace?.applyValue({ args0 -> args0 }))
.slsProcessConfig(slsProcessConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.taskName(taskName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [HybridMonitorSlsTaskArgs].
*/
@PulumiTagMarker
public class HybridMonitorSlsTaskArgsBuilder internal constructor() {
private var attachLabels: Output>? = null
private var collectInterval: Output? = null
private var collectTargetType: Output? = null
private var description: Output? = null
private var namespace: Output? = null
private var slsProcessConfig: Output? = null
private var taskName: Output? = null
/**
* @param value The label of the monitoring task. See `attach_labels` below.
*/
@JvmName("qppuuetyvfyepqsn")
public suspend fun attachLabels(`value`: Output>) {
this.attachLabels = value
}
@JvmName("serpsvelfptwgplm")
public suspend fun attachLabels(vararg values: Output) {
this.attachLabels = Output.all(values.asList())
}
/**
* @param values The label of the monitoring task. See `attach_labels` below.
*/
@JvmName("ylulykxklvukkwtt")
public suspend fun attachLabels(values: List