List notification rules¶
Get the current user’s notification rule states, priorities, thresholds, and delivery channels.
GET https://billing.moi.matrixorigin.cn/api/v1/taas/notification-rules
Before you begin¶
Prepare a personal access token. For creation and management, see Manage personal access tokens.
Results are scoped to data accessible to the current user.
Request example¶
Replace $MOI_PERSONAL_ACCESS_TOKEN in the example with your personal access token.
curl --get "https://billing.moi.matrixorigin.cn/api/v1/taas/notification-rules" \
-H "X-API-Key: $MOI_PERSONAL_ACCESS_TOKEN"
Successful response¶
Returns HTTP 200 with notification rule settings for the current user.
{
"items": [
{
"rule_key": "usage_warning",
"category": "usage",
"title": "Usage warning",
"description": "Usage threshold warning.",
"enabled": true,
"priority": "important",
"threshold_value": "90",
"threshold_unit": "percent",
"threshold_readonly": true,
"delivery_channels": [
"in_app"
],
"config_version": 1,
"updated_at": 1788710400
}
]
}
Field |
Type |
Description |
|---|---|---|
|
array of object |
Notification rules. |
|
string |
Rule identifier. |
|
string |
Rule category. |
|
string |
Rule title. |
|
string |
Rule description. |
|
boolean |
Whether the rule is enabled. |
|
string |
Notification priority. |
|
string |
Threshold as a decimal string; omitted when not applicable. |
|
string |
Threshold unit; omitted when not applicable. |
|
boolean |
Whether the threshold is read-only. |
|
object |
Rule-specific scope properties; omitted when unset. |
|
array of string |
Identifiers of currently available delivery channels. |
|
string |
Rule hint, when present. |
|
integer |
Rule configuration version. |
|
integer |
Update time, Unix seconds. |
In field paths, [] denotes each array item.