
commonMain.aws.sdk.kotlin.services.applicationsignals.model.MonitoredRequestCountMetricDataQueries.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.applicationsignals.model
/**
* This structure defines the metric that is used as the "good request" or "bad request" value for a request-based SLO. This value observed for the metric defined in `TotalRequestCountMetric` is divided by the number found for `MonitoredRequestCountMetric` to determine the percentage of successful requests that this SLO tracks.
*/
public sealed class MonitoredRequestCountMetricDataQueries {
/**
* If you want to count "bad requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "bad requests" in this structure.
*/
public data class BadCountMetric(val value: List) : aws.sdk.kotlin.services.applicationsignals.model.MonitoredRequestCountMetricDataQueries() {
}
/**
* If you want to count "good requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "good requests" in this structure.
*/
public data class GoodCountMetric(val value: List) : aws.sdk.kotlin.services.applicationsignals.model.MonitoredRequestCountMetricDataQueries() {
}
public object SdkUnknown : aws.sdk.kotlin.services.applicationsignals.model.MonitoredRequestCountMetricDataQueries() {
}
/**
* Casts this [MonitoredRequestCountMetricDataQueries] as a [BadCountMetric] and retrieves its [List] value. Throws an exception if the [MonitoredRequestCountMetricDataQueries] is not a
* [BadCountMetric].
*/
public fun asBadCountMetric(): List = (this as MonitoredRequestCountMetricDataQueries.BadCountMetric).value
/**
* Casts this [MonitoredRequestCountMetricDataQueries] as a [BadCountMetric] and retrieves its [List] value. Returns null if the [MonitoredRequestCountMetricDataQueries] is not a [BadCountMetric].
*/
public fun asBadCountMetricOrNull(): List? = (this as? MonitoredRequestCountMetricDataQueries.BadCountMetric)?.value
/**
* Casts this [MonitoredRequestCountMetricDataQueries] as a [GoodCountMetric] and retrieves its [List] value. Throws an exception if the [MonitoredRequestCountMetricDataQueries] is not a
* [GoodCountMetric].
*/
public fun asGoodCountMetric(): List = (this as MonitoredRequestCountMetricDataQueries.GoodCountMetric).value
/**
* Casts this [MonitoredRequestCountMetricDataQueries] as a [GoodCountMetric] and retrieves its [List] value. Returns null if the [MonitoredRequestCountMetricDataQueries] is not a [GoodCountMetric].
*/
public fun asGoodCountMetricOrNull(): List? = (this as? MonitoredRequestCountMetricDataQueries.GoodCountMetric)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy