SpendAlertRequest

@Serializable
data class SpendAlertRequest(val thresholdAmount: Long, val notificationChannel: SpendAlertEmailChannel, val currency: String = "USD", val interval: String = "month")

Creates or replaces an organization or project spend alert.

Constructors

Link copied to clipboard
constructor(thresholdAmount: Long, notificationChannel: SpendAlertEmailChannel, currency: String = "USD", interval: String = "month")

Properties

Link copied to clipboard
@EncodeDefault
val currency: String

Threshold currency; currently only USD is supported.

Link copied to clipboard
@EncodeDefault
val interval: String

Evaluation interval; currently only month is supported.

Link copied to clipboard
@SerialName(value = "notification_channel")
val notificationChannel: SpendAlertEmailChannel

Complete email notification configuration for this alert.

Link copied to clipboard
@SerialName(value = "threshold_amount")
val thresholdAmount: Long

Nonnegative alert threshold, in cents.