
com.pulumi.awsnative.applicationsignals.kotlin.outputs.ServiceLevelObjectiveMetricStat.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.applicationsignals.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
* A metric to be used directly for the SLO, or to be used in the math expression that will be used for the SLO. Within one MetricDataQuery object, you must specify either Expression or MetricStat but not both.
* @property metric
* @property period The granularity, in seconds, to be used for the metric.
* @property stat The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended statistic.
* @property unit If you omit Unit then all data that was collected with any unit is returned, along with the corresponding units that were specified when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.
*/
public data class ServiceLevelObjectiveMetricStat(
public val metric: ServiceLevelObjectiveMetric,
public val period: Int,
public val stat: String,
public val unit: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.applicationsignals.outputs.ServiceLevelObjectiveMetricStat): ServiceLevelObjectiveMetricStat = ServiceLevelObjectiveMetricStat(
metric = javaType.metric().let({ args0 ->
com.pulumi.awsnative.applicationsignals.kotlin.outputs.ServiceLevelObjectiveMetric.Companion.toKotlin(args0)
}),
period = javaType.period(),
stat = javaType.stat(),
unit = javaType.unit().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy