Query the alert threshold for an account

Updated at:
Copy as MD

API name

QueryUserAlarmThreshold

Description

Queries the credit control alert threshold of an account.

Request parameters

NameTypeRequiredDescription
UidLongYesThe UID of the virtual operator's Alibaba Cloud account.
BidStringYesThe business ID (BID) of the user.

For lightweight virtual operator customers, use 26842.

For BID-based virtual operator customers, use their assigned BID.

AlarmTypeStringYesThe alert type.
AlarmThresholdsStringNoThis parameter is not used for queries.

Response parameters

NameTypeDescription
ThresholdAmountStringCondition and Threshold
NumeratorIntegerThe numerator if the threshold is a percentage.
DenominatorIntegerThe denominator if the threshold is a percentage.
ThresholdTypeIntegerThe threshold type. 0 indicates a specific value. 1 indicates a percentage.

Error codes

Error codeDescriptionHTTP status codeSemantics
Missing_Must_Parametermissing the must parameter xx !-101Input parameter verification failed.
Database_Inner_ErrorDatabase inner error xx!-310An internal error occurred during a database operation.

Request example

&Action=QueryUserAlarmThreshold
&Uid=22227
&Bid=22222
&AlarmType=quato_userup_policy

Response example

{
Code:200,
RequestId: "22222",
Message:  "successful",
Success:true,
Count:1  
"Datas": {
     "Data": [
       {
         "ThresholdAmount": "1",
         "Numerator": "89",
         "Denominator": "100 ",
         "ThresholdType": “1”
       }
     ]
}
}

Data dictionary

commodity_codeChinese Name
can_use_quota_not_enough_policyLow quota alert
quato_userup_policyQuota exhaustion alert
month_consum_too_big_policyHigh monthly spending alert
creditpay_low_balance_policyLow available credit balance alert
creditpay_userup_policyAvailable credit overdraft alert
creditpay_month_consump_high_warn_policyHigh monthly spending alert for credit payment users
credit_userupAvailable credit exhaustion alert
intl_credit_user_month_high_warn_policyHigh monthly spending alert policy for international credit control users
intl_user_low_balance_warn_policyLow balance alert policy for international credit control users
warn_virtual_policyLow balance alert policy for China site credit control users
internal_user_month_high_warn_policyHigh monthly spending alert policy for China site credit control users