All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.lookoutmetrics.kotlin.outputs.AnomalyDetectorMetric.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.lookoutmetrics.kotlin.outputs

import com.pulumi.awsnative.lookoutmetrics.kotlin.enums.AnomalyDetectorMetricAggregationFunction
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property aggregationFunction Operator used to aggregate metric values
 * @property metricName The name of the metric.
 * @property namespace The namespace for the metric.
 */
public data class AnomalyDetectorMetric(
    public val aggregationFunction: AnomalyDetectorMetricAggregationFunction,
    public val metricName: String,
    public val namespace: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.lookoutmetrics.outputs.AnomalyDetectorMetric): AnomalyDetectorMetric = AnomalyDetectorMetric(
            aggregationFunction = javaType.aggregationFunction().let({ args0 ->
                com.pulumi.awsnative.lookoutmetrics.kotlin.enums.AnomalyDetectorMetricAggregationFunction.Companion.toKotlin(args0)
            }),
            metricName = javaType.metricName(),
            namespace = javaType.namespace().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy