TestEventPattern - 测试事件模式是否与提供的 JSON 格式事件匹配

更新时间:
复制为 MD 格式

测试事件模式是否与提供的 JSON 格式事件匹配。

接口说明

测试事件模式是否与提供的 JSON 格式事件匹配。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称

类型

必填

描述

示例值

Event

string

事件

{ "datacontenttype": "application/json;charset=utf-8", "aliyunaccountid": "*****", "aliyunpublishtime": "2023-04-****:54:57.939Z", "data": { "resourceEventType": "****", "resourceCreateTime": "****", "resourceId": "sls-code-***-debug", "captureTime": "***" }, "aliyunoriginalaccountid": "****", "specversion": "1.0", "aliyuneventbusname": "****", "id": "295e6bd2-bb72-4f70-****-204a0680ee41", "source": "acs.sls", "time": "2023-04-***:37:56Z", "aliyunregionid": "cn-***", "type": "sls:Config:****" }

EventPattern

string

事件模式

{"key1": "value1"}

返回参数

名称

类型

描述

示例值

object

Schema of Response

RequestId

string

请求 ID

96D7C0AB-DCE5-5E82-96B8-4725E1706BB1

Message

string

错误信息

Code

string

接口返回码:Success:表示成功。 其它:表示错误码。错误码详情,请参见错误码。

Success

Success

boolean

操作成功返回 true。

true

Data

object

返回结果。

Result

boolean

true 表示事件模式与提供的 JSON 格式事件匹配。false 表示不匹配。

true

示例

正常返回示例

JSON格式

{
  "RequestId": "96D7C0AB-DCE5-5E82-96B8-4725E1706BB1",
  "Message": "",
  "Code": "Success",
  "Success": true,
  "Data": {
    "Result": true
  }
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情