Parameters | Type | Required | Sample value | Description |
Action | String | Yes | ListEventRules | The name of the API. The API name is ListEventRules. |
Version | String | Yes | 2018-01-01 | The API version. The API version is 2018-01-01. |
RuleName | String | No | rule-01 | Event rule name. Fuzzy search by name is applied.
|
Source | Array of String | No | ecs | Event source. |
Status | Array of String | No | enable | Rule status.
|
PageSize | Integer | No | 30 | The number of rows per page for a pagination query. Default value: 30. |
PageNumber | Integer | No | 1 | The page number for a pagination query. Default value: 1.
|
OrderBy | String | No | UpdatedAt | Rule sorting field.
|
Asc | Boolean | No | false | Rule sorting order.
|
Parameters | Type | Sample value | Description |
Asc | Boolean | false | Sorting order of the returned event rules. |
Data | - | Details about rules that meet the criteria. | |
OrderBy | String | HappenTime | The sorting condition. |
TotalCount | Integer | 2 | Total number of event rules that meet the criteria. |
Parameters | Type | Sample value | Description |
RuleId | String | 168*****4352 | Event rule ID. |
Source | String | vke | Event source. |
RuleName | String | test-kafka | Rule name. |
Description | String | This is test rule 01 | Rule description. |
EventBusName | String | default | Event bus name. Only default is supported. |
AccountId | String | 210****168 | Volcano Engine root user ID. |
Region | String | cn-beijign | The region. |
Level | String | critical | Severity level of the alert. |
EnableState | String | enable | Rule status.
|
EffectStartAt | String | 12:00 | The start of the time period during which the rule is active. |
EffectEndAt | String | 20:00 | The end of the time period during which the rule is active. |
EventType | Array of String | ["vke:Addon:AddonStatus.Failed"] | Event type. |
FilterPattern | JSON Map | - | Filter pattern, also known as an event matching rule. Custom matching rules are not supported. |
ContactMethods | Array of String | [ "Webhook", "Email", "MQ", "SMS" ] | Alert notification method.
|
Endpoint | String | http://example.com/alert | The callback address when the alert notification method is alert callback. |
TLSTarget | - | TLS configuration. This is triggered when TLS is the alert method. | |
ContactGroupIds | Array of String | ["166*****7680"] | A list of alert contact group IDs. When the ContactMethods parameter is Email, Phone, or SMS, this parameter cannot be empty. |
MessageQueue | - | The message queue used when the alert notification method is Message Queue for Kafka. | |
UpdatedAt | Integer | 1666686791 | Update time of the event rule. |
CreatedAt | Integer | 1666668613 | Creation time of the event rule. |
WebhookIds | Array of String | - | A list of alert callback IDs. |
NotifyTemplates | - | Notification template configuration. |
Parameters | Type | Sample value | Description |
key | String | "Type": [ "vke:Addon:AddonStatus.Failed" ] | A list of event types for pattern matching. Any matching is supported. |
value | Any | "Source": "vke" | Event source in pattern matching. |
Parameters | Type | Sample value | Description |
TopicId | String | 6a6****67c7 | Topic ID. |
ProjectId | String | 79fe****122f | Project ID. |
ProjectName | String | default | The project name. |
RegionNameCN | String | Beijing | Chinese name of the region. |
RegionNameEN | String | cn-beijing | Region name in English. |
Parameters | Type | Sample value | Description |
Type | String | kafka | Alert notification method. |
Topic | String | testkafka | Topic of the message queue. |
VpcId | String | vpc-2bzq*****pm22 | VPC ID. |
Region | String | cn-beijing | Region where the MQ instance is located. |
Password | String | - | MQ instance password. |
Endpoints | String | - | Cluster address, which is only returned for rule_engine. |
InstanceId | String | kafka-cno*****5hc | MQ instance ID. |
AuthEncrypt | Array of Integer | - | Encrypted account password, which is only returned for rule_engine. |
Parameters | Type | Sample value | Description |
Channel | String | email | Notification channel. Values:
|
NotifyTemplateId | String | 189828***00 | Notification template ID. warning Only one notification template ID can be specified for each notification channel. |