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

com.pulumi.gcp.monitoring.kotlin.outputs.SloWindowsBasedSli.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.monitoring.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property goodBadMetricFilter A TimeSeries [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
 * with ValueType = BOOL. The window is good if any true values
 * appear in the window. One of `good_bad_metric_filter`,
 * `good_total_ratio_threshold`, `metric_mean_in_range`,
 * `metric_sum_in_range` must be set for `windows_based_sli`.
 * @property goodTotalRatioThreshold Criterion that describes a window as good if its performance is
 * high enough. One of `good_bad_metric_filter`,
 * `good_total_ratio_threshold`, `metric_mean_in_range`,
 * `metric_sum_in_range` must be set for `windows_based_sli`.
 * Structure is documented below.
 * @property metricMeanInRange Criterion that describes a window as good if the metric's value
 * is in a good range, *averaged* across returned streams.
 * One of `good_bad_metric_filter`,
 * `good_total_ratio_threshold`, `metric_mean_in_range`,
 * `metric_sum_in_range` must be set for `windows_based_sli`.
 * Average value X of `time_series` should satisfy
 * `range.min <= X <= range.max` for a good window.
 * Structure is documented below.
 * @property metricSumInRange Criterion that describes a window as good if the metric's value
 * is in a good range, *summed* across returned streams.
 * Summed value `X` of `time_series` should satisfy
 * `range.min <= X <= range.max` for a good window.
 * One of `good_bad_metric_filter`,
 * `good_total_ratio_threshold`, `metric_mean_in_range`,
 * `metric_sum_in_range` must be set for `windows_based_sli`.
 * Structure is documented below.
 * @property windowPeriod Duration over which window quality is evaluated, given as a
 * duration string "{X}s" representing X seconds. Must be an
 * integer fraction of a day and at least 60s.
 */
public data class SloWindowsBasedSli(
    public val goodBadMetricFilter: String? = null,
    public val goodTotalRatioThreshold: SloWindowsBasedSliGoodTotalRatioThreshold? = null,
    public val metricMeanInRange: SloWindowsBasedSliMetricMeanInRange? = null,
    public val metricSumInRange: SloWindowsBasedSliMetricSumInRange? = null,
    public val windowPeriod: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.monitoring.outputs.SloWindowsBasedSli): SloWindowsBasedSli = SloWindowsBasedSli(
            goodBadMetricFilter = javaType.goodBadMetricFilter().map({ args0 -> args0 }).orElse(null),
            goodTotalRatioThreshold = javaType.goodTotalRatioThreshold().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.monitoring.kotlin.outputs.SloWindowsBasedSliGoodTotalRatioThreshold.Companion.toKotlin(args0)
                })
            }).orElse(null),
            metricMeanInRange = javaType.metricMeanInRange().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.monitoring.kotlin.outputs.SloWindowsBasedSliMetricMeanInRange.Companion.toKotlin(args0)
                })
            }).orElse(null),
            metricSumInRange = javaType.metricSumInRange().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.monitoring.kotlin.outputs.SloWindowsBasedSliMetricSumInRange.Companion.toKotlin(args0)
                })
            }).orElse(null),
            windowPeriod = javaType.windowPeriod().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy