Eventarc mengirimkan peristiwa, terlepas dari penyedia, ke tujuan
target dalam format CloudEvents (cloudevents.io)
dalam mode konten biner.
CloudEvents adalah spesifikasi standar terbuka Cloud Native Computing Foundation untuk mendeskripsikan metadata peristiwa dengan cara yang umum. Menggunakan cara standar untuk mendeskripsikan metadata peristiwa memastikan konsistensi, aksesibilitas, dan portabilitas.
CloudEvent dalam mode konten biner memiliki atribut konteksnya yang dideskripsikan sebagai header HTTP. Nama header HTTP adalah nama atribut konteks yang diawali dengan ce-. Header Content-Type mencerminkan jenis media tempat data peristiwa dienkode.
Untuk tujuan Workflows, layanan Workflows mengonversi peristiwa menjadi objek JSON, dan meneruskan peristiwa ke eksekusi alur kerja sebagai argumen runtime.
Menentukan binding pesan (Eventarc Advanced)
Anda dapat menentukan pengikatan pesan dan membuat permintaan HTTP baru. Untuk mengetahui informasi selengkapnya, lihat Mengubah peristiwa yang diterima.
Memformat peristiwa yang diterima (Eventarc Advanced)
Anda dapat mengonfigurasi pipeline untuk mengharapkan data peristiwa dalam format tertentu atau, sebelum peristiwa dikirimkan ke tujuan, Anda dapat mengonversi data peristiwa dari satu format yang didukung ke format lainnya. Misalnya, Anda mungkin perlu merutekan peristiwa ke
endpoint yang hanya menerima data Avro atau Protobuf. Konversi format berikut didukung:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-18 UTC."],[[["\u003cp\u003eEventarc delivers events in CloudEvents format, which is an open standard for describing event metadata, ensuring consistency, accessibility, and portability.\u003c/p\u003e\n"],["\u003cp\u003eEvent data in binary content mode has context attributes described as HTTP headers prefixed with \u003ccode\u003ece-\u003c/code\u003e, and the \u003ccode\u003eContent-Type\u003c/code\u003e header reflects the media type.\u003c/p\u003e\n"],["\u003cp\u003eTarget destinations receive events using an HTTP protocol binding, while Workflows destinations receive a JSON object representation of the event.\u003c/p\u003e\n"],["\u003cp\u003eEventarc Advanced allows users to define a message binding to construct a new HTTP request, enabling transformations of received events.\u003c/p\u003e\n"],["\u003cp\u003eEventarc Advanced supports format conversions between Avro, JSON, and Protobuf, allowing events to be delivered in various formats to meet endpoint requirements.\u003c/p\u003e\n"]]],[],null,["# Event format\n\n[Advanced](/eventarc/advanced/docs/overview) [Standard](/eventarc/standard/docs/overview)\n\nEventarc delivers events, regardless of provider, to the target\ndestination in a CloudEvents ([cloudevents.io](http://cloudevents.io/)) format\nin binary content mode.\n\nCloudEvents is the Cloud Native Computing Foundation's\n[open standard specification](https://github.com/cloudevents/spec) for\ndescribing event metadata in a common way. Using a standard way to describe\nevent metadata ensures consistency, accessibility, and portability.\n\nA CloudEvent in binary content mode has its context attributes described as HTTP\nheaders. The names of the HTTP headers are the context attribute names prefixed\nwith `ce-`. The `Content-Type` header reflects the media type in which the event\ndata is encoded.\n\nTarget destinations consume events using an\n[HTTP protocol binding](/eventarc/docs/cloudevents).\n\nFor Workflows destinations, the Workflows service\nconverts the event to a [JSON object](/eventarc/docs/cloudevents-json), and\npasses the event into the workflow execution as a runtime argument.\n\nDefine a message binding (Eventarc Advanced)\n--------------------------------------------\n\nYou can define a message binding and construct a new HTTP request. For more\ninformation, see\n[Transform received events](/eventarc/advanced/docs/receive-events/transform-events#message-binding).\n\nFormat received events (Eventarc Advanced)\n------------------------------------------\n\nYou can configure a pipeline to expect event data in a specific format or,\nbefore events are delivered to a destination, you can convert event data from\none supported format to another. For example, you might need to route events to\nan endpoint that only accepts Avro or Protobuf data. The following format\nconversions are supported:\n\n- Avro to JSON\n- Avro to Protobuf\n- JSON to Avro\n- JSON to Protobuf\n- Protobuf to Avro\n- Protobuf to JSON\n\nFor more information, see\n[Format received events](/eventarc/advanced/docs/receive-events/configure-format-events)."]]