TenantConsumptionAlert
Stores a record each time a utilization signal is reached for your org’s consumption-based products. Each record captures the signal type, the resource that triggered it, and the condition that was met.
Introduced in API version 67.0.
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()
- Type: string
- Properties: Create, Filter, Group, Sort
- Description: Required. Identifies the top-level resource or component that the alert applies to.
AlertScope,AlertSubScope1, andAlertSubScope2together identify the exact target of the alert, from broadest to most specific.
- Type: picklist
- Properties: Create, Filter, Group, Restricted picklist, Sort, Update
- Description: Required. Indicates whether the alert condition is still active or has resolved (Active or Cleared).
Activesuppresses duplicate alerts while the condition persists.Clearedresets the alert so it can fire again. - Possible values:
- Active — Active
- Cleared — Cleared
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort
- Description: Identifies a sub-resource or sub-component beneath the alert scope. Can be empty if no further refinement is required.
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort
- Description: Identifies a sub-resource or sub-component that further refines AlertSubScope1. Can be empty if no further refinement is required. However, if you set AlertSubScope2, we recommend that you also set AlertSubScope1.
- Type: datetime
- Properties: Create, Filter, Sort
- Description: Required. The date and time the alert was triggered.
- Type: string
- Properties: Create, Filter, Group, Sort
- Description: Required. Identifies the type of signal that triggered the alert. Salesforce-managed alert types are prefixed with
sf__.
- Type: boolean
- Properties: Create, Defaulted on create, Filter, Group, Sort, Update
- Description: Required. Indicates whether a platform notification has been sent for this alert record (true) or not (false).
- Default value: false
- Type: string
- Properties: Create, Filter, Group, Sort
- Description: Required. The unit or measurement type of the value that triggered the alert, such as a percentage or unit count. Use this field to interpret the numeric value in
TriggerValue. Values are:ThresholdPercentorThresholdUnits.
- Type: int
- Properties: Create, Filter, Group, Sort
- Description: Required. The numeric value that triggered the alert, which is interpreted in the context of
TriggerType.
TenantConsumptionAlert stores a record each time a utilization signal is reached for your org’s consumption-based products or license utilization. Each record represents a single triggered signal and is structured hierarchically:
AlertType identifies the high-level signal category.
- AlertScope (and its sub-scopes) identifies the specific resource that triggered the signal.
- TriggerType and TriggerValue define the condition that was met.
There are two types of alerts: Salesforce-managed and user-defined.
- Salesforce-managed alerts are created by Salesforce processes via invocable actions. Alert types for these alerts are prefixed with
sf__. Salesforce validates that the triggering condition is correct on creation and provides out-of-the-box features, including flow templates and invocable actions, to manage the alert lifecycle. Lifecycle fields such as AlertStatus and IsNotificationSent are updated automatically. - User-defined alerts offer the flexibility to define any signal that meets your use case. However, all fields must be set manually. Lifecycle fields like AlertStatus and IsNotificationSent aren’t updated automatically.
Consumption Threshold alerts are triggered when consumption of a Digital Wallet consumption card reaches a specified threshold. For setup information, see Salesforce Help: Get Digital Wallet Notifications about Your Usage.
This table illustrates an alert for when the Data Services Credits consumption card exceeds 70% of its credits consumption based on its entitlements.
For this object, consumption cards are identified by their card definition developer name, which often differs from their display name in Digital Wallet. To determine the developer name for a consumption card, see “Find the Card Definition Developer Name” in Salesforce Help: Change a Consumption Threshold for a Specific Card.
| Field | Value |
|---|---|
| AlertType | sf__ConsumptionThreshold |
| AlertStatus | Active |
| AlertScope | The developer name for the consumption card, for example, PlatformServicesCard. |
| AlertSubScope1 | Business environment (always Production) |
| AlertSubScope2 | PrePurchased. Buying models include PrePurchased, PreCommitted, or PayGo, but not all consumption cards support all buying models. |
| TriggerType | ThresholdPercent |
| TriggerValue | 70 |
| AlertTimestamp | Date and time alert was triggered. |
| IsNotificationSent | true |
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version.