commonMain.aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceComparisonValues.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devopsguru-jvm Show documentation
Show all versions of devopsguru-jvm Show documentation
The AWS SDK for Kotlin client for DevOps Guru
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devopsguru.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Reference scalar values and other metrics that DevOps Guru displays on a graph in its console along with the actual metrics it analyzed. Compare these reference values to your actual metrics to help you understand anomalous behavior that DevOps Guru detected.
*/
public class PerformanceInsightsReferenceComparisonValues private constructor(builder: Builder) {
/**
* A metric that DevOps Guru compares to actual metric values. This reference metric is used to determine if an actual metric should be considered anomalous.
*/
public val referenceMetric: aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceMetric? = builder.referenceMetric
/**
* A scalar value DevOps Guru for a metric that DevOps Guru compares to actual metric values. This reference value is used to determine if an actual metric value should be considered anomalous.
*/
public val referenceScalar: aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceScalar? = builder.referenceScalar
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceComparisonValues = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PerformanceInsightsReferenceComparisonValues(")
append("referenceMetric=$referenceMetric,")
append("referenceScalar=$referenceScalar")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = referenceMetric?.hashCode() ?: 0
result = 31 * result + (referenceScalar?.hashCode() ?: 0)
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 PerformanceInsightsReferenceComparisonValues
if (referenceMetric != other.referenceMetric) return false
if (referenceScalar != other.referenceScalar) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceComparisonValues = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A metric that DevOps Guru compares to actual metric values. This reference metric is used to determine if an actual metric should be considered anomalous.
*/
public var referenceMetric: aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceMetric? = null
/**
* A scalar value DevOps Guru for a metric that DevOps Guru compares to actual metric values. This reference value is used to determine if an actual metric value should be considered anomalous.
*/
public var referenceScalar: aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceScalar? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceComparisonValues) : this() {
this.referenceMetric = x.referenceMetric
this.referenceScalar = x.referenceScalar
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceComparisonValues = PerformanceInsightsReferenceComparisonValues(this)
/**
* construct an [aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceMetric] inside the given [block]
*/
public fun referenceMetric(block: aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceMetric.Builder.() -> kotlin.Unit) {
this.referenceMetric = aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceMetric.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceScalar] inside the given [block]
*/
public fun referenceScalar(block: aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceScalar.Builder.() -> kotlin.Unit) {
this.referenceScalar = aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceScalar.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy