com.pulumi.googlenative.integrations.v1alpha.kotlin.outputs.EnterpriseCrmEventbusProtoTaskAlertConfigResponse.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.integrations.v1alpha.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
* Message to be used to configure alerting in the {@code TaskConfig} protos for tasks in an event.
* @property aggregationPeriod The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week).
* @property alertDisabled Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this workflow alert.
* @property alertName A name to identify this alert. This will be displayed in the alert subject. If set, this name should be unique in within the scope of the containing workflow.
* @property clientId Client associated with this alert configuration. Must be a client enabled in one of the containing workflow's triggers.
* @property durationThresholdMs Should be specified only for TASK_AVERAGE_DURATION and TASK_PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger.
* @property errorEnumList
* @property metricType
* @property numAggregationPeriods For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired.
* @property onlyFinalAttempt Only count final task attempts, not retries.
* @property playbookUrl Link to a playbook for resolving the issue that triggered this alert.
* @property thresholdType The threshold type for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired.
* @property thresholdValue The metric value, above or below which the alert should be triggered.
* @property warningEnumList
*/
public data class EnterpriseCrmEventbusProtoTaskAlertConfigResponse(
public val aggregationPeriod: String,
public val alertDisabled: Boolean,
public val alertName: String,
public val clientId: String,
public val durationThresholdMs: String,
public val errorEnumList: EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumListResponse,
public val metricType: String,
public val numAggregationPeriods: Int,
public val onlyFinalAttempt: Boolean,
public val playbookUrl: String,
public val thresholdType: String,
public val thresholdValue: EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValueResponse,
public val warningEnumList: EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumListResponse,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.googlenative.integrations.v1alpha.outputs.EnterpriseCrmEventbusProtoTaskAlertConfigResponse): EnterpriseCrmEventbusProtoTaskAlertConfigResponse =
EnterpriseCrmEventbusProtoTaskAlertConfigResponse(
aggregationPeriod = javaType.aggregationPeriod(),
alertDisabled = javaType.alertDisabled(),
alertName = javaType.alertName(),
clientId = javaType.clientId(),
durationThresholdMs = javaType.durationThresholdMs(),
errorEnumList = javaType.errorEnumList().let({ args0 ->
com.pulumi.googlenative.integrations.v1alpha.kotlin.outputs.EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumListResponse.Companion.toKotlin(args0)
}),
metricType = javaType.metricType(),
numAggregationPeriods = javaType.numAggregationPeriods(),
onlyFinalAttempt = javaType.onlyFinalAttempt(),
playbookUrl = javaType.playbookUrl(),
thresholdType = javaType.thresholdType(),
thresholdValue = javaType.thresholdValue().let({ args0 ->
com.pulumi.googlenative.integrations.v1alpha.kotlin.outputs.EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValueResponse.Companion.toKotlin(args0)
}),
warningEnumList = javaType.warningEnumList().let({ args0 ->
com.pulumi.googlenative.integrations.v1alpha.kotlin.outputs.EnterpriseCrmEventbusProtoBaseAlertConfigErrorEnumListResponse.Companion.toKotlin(args0)
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy