
com.pulumi.awsnative.iotsitewise.kotlin.outputs.AssetModelMetric.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.iotsitewise.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property expression The mathematical expression that defines the metric aggregation function. You can specify up to 10 functions per expression.
* @property variables The list of variables used in the expression.
* @property window The window (time interval) over which AWS IoT SiteWise computes the metric's aggregation expression
*/
public data class AssetModelMetric(
public val expression: String,
public val variables: List,
public val window: AssetModelMetricWindow,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iotsitewise.outputs.AssetModelMetric): AssetModelMetric = AssetModelMetric(
expression = javaType.expression(),
variables = javaType.variables().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iotsitewise.kotlin.outputs.AssetModelExpressionVariable.Companion.toKotlin(args0)
})
}),
window = javaType.window().let({ args0 ->
com.pulumi.awsnative.iotsitewise.kotlin.outputs.AssetModelMetricWindow.Companion.toKotlin(args0)
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy