InsertInterveneRule
Insert an intervention rule.
Debug
You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.
Authorization information
The following table describes the authorization information for this API. You can use it in the Action element of RAM permission policy statements to grant RAM users or RAM roles the permission to call this API. Details are as follows:
-
Action: the specific permission point.
-
Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization in the operation. Details are as follows:
- Required resource types are marked with a preceding asterisk (*).
- For operations that do not support resource-level authorization,
All resourcesis used.
-
Condition key: the condition keys defined by the cloud service itself.
-
Dependent action: the other permissions required to successfully perform the operation. The caller must have the permissions of the dependent actions for the operation to succeed.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| aimiaobi:InsertInterveneRule | create | *All resources * |
| None |
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| AgentKey | string | Yes | Unique identifier of the workspace: AgentKey | xxxxx_p_efm |
| InterveneRuleConfig | object | No | Intervention rule configuration | |
| AnswerConfig | array<object> | No | Answer configuration | |
| AnswerConfig | object | No | Answer configuration item | |
| AnswerType | integer | No | Answer type Valid values:
| 0 |
| Message | string | No | Answer content | Sorry, I cannot answer |
| Namespace | string | No | Namespace Valid values:
| namespace_qa_query |
| EffectConfig | object | No | Activation configuration | |
| EffectType | integer | No | Activation type Valid values:
| 0 |
| EndTime | string | No | End time | 2023-03-28 06:04:29 |
| StartTime | string | No | Start time | 2023-03-28 06:04:29 |
| InterveneConfigList | array<object> | No | Intervention configuration list | |
| InterveneConfigList | object | No | ||
| Id | string | No | id | 37249 |
| OperationType | integer | No | Operation type Valid values:
| 0 |
| Query | string | No | Intervention query configuration | Good morning |
| InterveneType | integer | No | Intervention type Valid values:
| 0 |
| NamespaceList | array | No | Namespace list | |
| NamespaceList | string | No | Intervention dimension Valid values:
| namespace_qa_query (Q&A input intervention) |
| RuleId | long | No | Rule ID | 2 |
| RuleName | string | No | Rule name | tf-test-rule |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | PlainResult | ||
| Code | string | Status code | success |
| Data | object | Business data | |
| RuleId | long | Rule ID | 12345 |
| Code | integer | Status code returned by the intervention service | 200 |
| HttpStatusCode | integer | HTTP status code | 200 |
| Message | string | Error message | successful |
| RequestId | string | Unique request identifier | DD656AF9-0839-521A-A3D2-F320009F9C87 |
| Success | boolean | Indicates whether the request is successful: true for success, false for failure | true |
Examples
Success response
JSON format
{
"Code": "success",
"Data": {
"RuleId": 12345,
"Code": 200
},
"HttpStatusCode": 200,
"Message": "successful",
"RequestId": "DD656AF9-0839-521A-A3D2-F320009F9C87",
"Success": true
}
Error codes
Visit the Error Center to view more error codes.