Get the list of alarm strategies - ListAlertStrategy
Overview
Get the list of alarm strategies
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is ListAlertStrategy . | Yes |
PublicKey | string | The user’s public key can be obtained from Console | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
ProjectId | string | Project ID | Yes |
Fuzzy | string | Fuzzy query (supports fuzzy search of alarm strategy names) | No |
ProductTypes.N | int | Product type, accurately search for corresponding alarm strategies based on product type | No |
Status.N | int | Alarm strategy status, accurately search for the corresponding alarm strategy based on the alarm strategy status | No |
Limit | int | The query returns the number of items,default value is 300, maximum value: 300. | No |
Offset | int | Data Offset (Default 0) | No |
Response Field
Field Name | Type | Description Information | Required |
---|---|---|---|
RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
Action | string | Operation command name. | Yes |
Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
Data | array[AlertStrategy] | alarm strategy set | No |
TotalCount | int | Total number of alarm strategy | No |
TraceId | string | trace ID | No |
Data Model
AlertStrategy
Field Name | Type | Description Information | Required |
---|---|---|---|
RuleSet | array[AlertRule] | Alarm Rule Set | No |
AlertStrategyID | int | Alert Strategy Id | No |
Name | string | Alarm Strategy Name | No |
ProductType | int | Resource Type | No |
ProductKey | string | Resource Type Name | No |
ConfigMode | int | Alarm rule configuration type (based on template configuration, based on manual configuration) | No |
TemplateId | int | Template Id | No |
NotifyType | string | Notification Method (Notification Group: group, Notified Person: user) | No |
NotifyUserIDs | array[int] | Notifier User ID Collection | No |
NotifyGroupIDs | array[int] | Notification group ID collection | No |
NotifyChannelDs | array[string] | Notification Channels (‘email’, ‘sms’, ‘webhook’) | No |
CallbackLanguage | string | Callback Language (cn, en) | No |
CallbackUrls | array[string] | Callback URL | No |
Status | int | Alarm Strategy Status | No |
Remark | string | Alarm Strategy Remarks | No |
CreatedBy | string | Creator | No |
UpdatedBy | string | Updater | No |
CreatedAt | int | Creation Time | No |
UpdatedAt | int | Update Time | No |
AlertRule
Field Name | Type | Description Information | Required |
---|---|---|---|
RuleID | int | Rule ID | No |
MetricID | int | Metric ID | No |
MetricName | string | Metric Name | No |
ThresholdCompare | int | Threshold Comparison Method | No |
ThresholdValue | float | Threshold | No |
TriggerCount | int | Trigger Count | No |
SendPeriodType | string | Trigger Cycle | No |
SendInterval | int | Send Interval | No |
Level | string | Alarm Level | No |
Status | int | Alarm Status | No |
Example
Request Example
https://api.dezai.com/?Action=ListAlertStrategy
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=tDITIKFv
&Fuzzy=lDkAENja
&Filter.ProductTypes.N=9
&Filter.Status.N=5
&Limit=7
&Offset=3
Response Example
{
"Action": "ListAlertStrategyResponse",
"Data": [
{
"AlertStrategyID": 2,
"Name": "WrrLsCAx",
"ProductKey": "LItkrkrT",
"Remark": "fahqZEBZ",
"Status": 5
}
],
"Message": "CqypVzgP",
"RetCode": 0,
"TotalCount": 1,
"TraceId": "GpMNsXck"
}