commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyGroupStatistics.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lookoutmetrics-jvm Show documentation
Show all versions of lookoutmetrics-jvm Show documentation
The AWS SDK for Kotlin client for LookoutMetrics
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lookoutmetrics.model
/**
* Aggregated statistics for a group of anomalous metrics.
*/
public class AnomalyGroupStatistics private constructor(builder: Builder) {
/**
* The start of the time range that was searched.
*/
public val evaluationStartDate: kotlin.String? = builder.evaluationStartDate
/**
* Statistics for individual metrics within the group.
*/
public val itemizedMetricStatsList: List? = builder.itemizedMetricStatsList
/**
* The number of groups found.
*/
public val totalCount: kotlin.Int = builder.totalCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyGroupStatistics = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AnomalyGroupStatistics(")
append("evaluationStartDate=$evaluationStartDate,")
append("itemizedMetricStatsList=$itemizedMetricStatsList,")
append("totalCount=$totalCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = evaluationStartDate?.hashCode() ?: 0
result = 31 * result + (itemizedMetricStatsList?.hashCode() ?: 0)
result = 31 * result + (totalCount)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as AnomalyGroupStatistics
if (evaluationStartDate != other.evaluationStartDate) return false
if (itemizedMetricStatsList != other.itemizedMetricStatsList) return false
if (totalCount != other.totalCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyGroupStatistics = Builder(this).apply(block).build()
public class Builder {
/**
* The start of the time range that was searched.
*/
public var evaluationStartDate: kotlin.String? = null
/**
* Statistics for individual metrics within the group.
*/
public var itemizedMetricStatsList: List? = null
/**
* The number of groups found.
*/
public var totalCount: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyGroupStatistics) : this() {
this.evaluationStartDate = x.evaluationStartDate
this.itemizedMetricStatsList = x.itemizedMetricStatsList
this.totalCount = x.totalCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyGroupStatistics = AnomalyGroupStatistics(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy