函数服务
参数 | 类型 | 说明 |
id | string | cloudevent 自有字段:请求 id,每个请求都有一个唯一 id。 |
source | string | cloudevent自有字段:Timer 触发器的取值为/faas/event/timer/{timer_id} 。 |
specversion | string | cloudevent自有字段:cloudevent 版本。 |
time | string | 消息触发时间,时间格式为 ISO 8601 格式的时间戳。 |
type | string | cloudevent自有字段:事件类型,Timer 触发器的取值为 faas.timer.event。 |
datacontenttype | string | cloudevent自有字段:消息类型,均为 application/octet-stream。 |
data | string | 消息内容。 |
参数 | 说明 |
httpMethod | HTTP 请求方法,包括 POST、GET、PUT、DELETE、HEAD、OPTIONS。 |
path | HTTP 请求路径。 |
pathParameters | HTTP 请求路径的参数。 |
queryStringParameters | HTTP 请求路径的 query 参数。 |
headers | HTTP 请求头。子参数说明,请参见下方 headers 参数说明。 |
body | HTTP 请求 payload。 |
参数 | 说明 |
Host | 函数实例的地址,格式为实例 IP:port。 |
User-Agent | 浏览器身份标识的字符串。 |
Accept | 浏览器可接受的文件类型。 |
Accept-Encoding | 浏览器可接受的编码方式。 |
X-Faas-Request-Id | 函数请求的唯一标识符。 |
参数 | 类型 | 说明 |
id | string | cloudevent 自有字段:请求 id,每个请求都有一个唯一 id。 |
source | string | cloudevent 自有字段:Kafka 触发器的取值为/faas/event/kafka/{trigger_id} 。 |
type | string | cloudevent 自有字段:事件类型,Kafka 触发器的取值为 faas.kafka.event。 |
specversion | string | cloudevent 自有字段:cloudevent 版本。 |
datacontenttype | string | cloudevent 自有字段:消息类型,均为application/octet-stream。 |
time | string | 消息触发时间,时间格式为 ISO 8601 格式的时间戳。 |
data | string | 消息内容。 |
extensions | - | event 的扩展信息。子参数说明,请参见下方 extensions 参数说明。 |
参数 | 类型 | 说明 |
topic | string | 消息来源 Topic。 |
partition | string | 消息来源的分区。 |
consumergroup | string | 消息来源的消费组。 |
offset | string | 消费位点。 |
key | string | 消息 Key。 |
参数 | 类型 | 说明 |
id | string | cloudevent 自有字段:请求 id,每个请求都有一个唯一 id。 |
source | string | cloudevent 自有字段:BMQ 触发器的取值为/faas/event/bmq/{trigger_id} 。 |
type | string | cloudevent 自有字段:事件类型,BMQ 触发器的取值为 faas.bmq.event。 |
specversion | string | cloudevent 自有字段:cloudevent 版本。 |
datacontenttype | string | cloudevent 自有字段:消息类型,均为application/octet-stream。 |
time | string | 消息触发时间,时间格式为 ISO 8601 格式的时间戳。 |
data | string | 消息内容。 |
extensions | - | event 的扩展信息。子参数说明,请参见下方 extensions 参数说明。 |
参数 | 类型 | 说明 |
topic | string | 消息来源 Topic。 |
partition | string | 消息来源的分区。 |
consumergroup | string | 消息来源的消费组。 |
offset | string | 消费位点。 |
key | string | 消息 Key。 |
参数 | 类型 | 说明 |
id | string | cloudevent 自有字段:请求 id,每个请求都有一个唯一 id。 |
source | string | cloudevent 自有字段:RocketMQ 触发器的取值为/faas/event/rocketmq/{trigger_id} 。 |
type | string | cloudevent 自有字段:事件类型,RocketMQ 触发器的取值为 faas.rocketmq.event。 |
specversion | string | cloudevent 自有字段:cloudevent 版本。 |
datacontenttype | string | cloudevent 自有字段:消息类型,均为application/octet-stream。 |
time | string | 消息触发时间,时间格式为 ISO 8601 格式的时间戳。 |
data | string | 消息内容。 |
extensions | - | event 的扩展信息。子参数说明,请参见下方 extensions 参数说明。 |
参数 | 类型 | 说明 |
topic | string | 消息来源 Topic。 |
queueid | string | 消息来源的队列 id。 |
consumergroup | string | 消息来源的消费组。 |
offset | string | 消费位点。 |
msgid | string | 消息 id。 |
tags | string | 消息的标签信息。 |
参数 | 类型 | 说明 |
specversion | string | cloudevent 自有字段:cloudevent 版本。 |
id | string | cloudevent 自有字段:请求 id,每个请求都有一个唯一 id。 |
source | string | cloudevent 自有字段:TOS 触发器的取值为/faas/event/tos/{bucket_name} 。 |
type | string | cloudevent 自有字段:事件类型,TOS 触发器的取值为 faas.tos.event。 |
datacontenttype | string | cloudevent 自有字段:消息类型,均为application/octet-stream。 |
time | string | 消息触发时间,时间格式为 ISO 8601 格式的时间戳。 |
data | string |
参数 | 类型 | 说明 |
id | string | cloudevent 自有字段:请求 id,每个请求都有一个唯一 id。 |
source | string | cloudevent 自有字段:TLS 触发器的取值为/faas/event/tls/{trigger_id} 。 |
type | string | cloudevent 自有字段:事件类型,TLS 触发器的取值为 faas.tls.event。 |
specversion | string | cloudevent 自有字段:cloudevent 版本。 |
datacontenttype | string | cloudevent 自有字段:消息类型,均为application/octet-stream。 |
time | string | 消息触发时间,时间格式为 ISO 8601 格式的时间戳。 |
data | json | TLS 日志消息内容。其中 __path__, __source__, __tag____client_ip__ 和 __tag____receive_time__ 是 TLS 自有字段。其它是用户输出日志指定的字段。 |
extensions | json | event 的扩展信息。子参数说明,请参见下方 extensions 参数说明。 |
参数 | 类型 | 说明 |
topic | string | 消息来源 Topic。 |
partition | string | 消息来源的分区。 |
consumergroup | string | 消息来源的消费组。 |
offset | string | 消费位点。 |
key | string | 消息 Key。 |
retriesforbadstatusrequests | string | 消息重试数。n 代表重试第 n 次。 |
maxretrynum | string | 消息最大重试次数。 |