
com.pulumi.awsnative.logs.kotlin.outputs.GetLogAnomalyDetectorResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.logs.kotlin.outputs
import com.pulumi.awsnative.logs.kotlin.enums.LogAnomalyDetectorEvaluationFrequency
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property anomalyDetectorArn ARN of LogAnomalyDetector
* @property anomalyDetectorStatus Current status of detector.
* @property anomalyVisibilityTime The number of days to have visibility on an anomaly. After this time period has elapsed for an anomaly, it will be automatically baselined and the anomaly detector will treat new occurrences of a similar anomaly as normal. Therefore, if you do not correct the cause of an anomaly during the time period specified in `AnomalyVisibilityTime` , it will be considered normal going forward and will not be detected as an anomaly.
* @property creationTimeStamp When detector was created.
* @property detectorName Name of detector
* @property evaluationFrequency How often log group is evaluated
* @property filterPattern You can use this parameter to limit the anomaly detection model to examine only log events that match the pattern you specify here. For more information, see [Filter and Pattern Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html) .
* @property kmsKeyId The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
* @property lastModifiedTimeStamp When detector was lsat modified.
* @property logGroupArnList List of Arns for the given log group
*/
public data class GetLogAnomalyDetectorResult(
public val anomalyDetectorArn: String? = null,
public val anomalyDetectorStatus: String? = null,
public val anomalyVisibilityTime: Double? = null,
public val creationTimeStamp: Double? = null,
public val detectorName: String? = null,
public val evaluationFrequency: LogAnomalyDetectorEvaluationFrequency? = null,
public val filterPattern: String? = null,
public val kmsKeyId: String? = null,
public val lastModifiedTimeStamp: Double? = null,
public val logGroupArnList: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.logs.outputs.GetLogAnomalyDetectorResult): GetLogAnomalyDetectorResult = GetLogAnomalyDetectorResult(
anomalyDetectorArn = javaType.anomalyDetectorArn().map({ args0 -> args0 }).orElse(null),
anomalyDetectorStatus = javaType.anomalyDetectorStatus().map({ args0 -> args0 }).orElse(null),
anomalyVisibilityTime = javaType.anomalyVisibilityTime().map({ args0 -> args0 }).orElse(null),
creationTimeStamp = javaType.creationTimeStamp().map({ args0 -> args0 }).orElse(null),
detectorName = javaType.detectorName().map({ args0 -> args0 }).orElse(null),
evaluationFrequency = javaType.evaluationFrequency().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.logs.kotlin.enums.LogAnomalyDetectorEvaluationFrequency.Companion.toKotlin(args0)
})
}).orElse(null),
filterPattern = javaType.filterPattern().map({ args0 -> args0 }).orElse(null),
kmsKeyId = javaType.kmsKeyId().map({ args0 -> args0 }).orElse(null),
lastModifiedTimeStamp = javaType.lastModifiedTimeStamp().map({ args0 -> args0 }).orElse(null),
logGroupArnList = javaType.logGroupArnList().map({ args0 -> args0 }),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy