SpendAlert

@Serializable
data class SpendAlert(val id: String, val thresholdAmount: Long, val currency: String, val interval: String, val notificationChannel: SpendAlertEmailChannel, val objectType: String)

Organization or project spend alert metadata.

Constructors

Link copied to clipboard
constructor(id: String, thresholdAmount: Long, currency: String, interval: String, notificationChannel: SpendAlertEmailChannel, objectType: String)

Properties

Link copied to clipboard

Threshold currency.

Link copied to clipboard
val id: String

Alert identifier.

Link copied to clipboard

Evaluation interval.

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

Email notification configuration, including any subject prefix.

Link copied to clipboard
@SerialName(value = "object")
val objectType: String

Scope discriminator: organization.spend_alert or project.spend_alert.

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

Alert threshold, in cents.