Skip to content

Instantly share code, notes, and snippets.

@habutre
Last active January 16, 2022 12:12
CloudEvents payload format
 var event =
    CloudEventBuilder.v1()
        .withId(UUID.randomUUID().toString())
        .withType(payloadDataType)
        .withSource(URI.create("/origin-source"))
        .withTime(OffsetDateTime.now())
        .withExtension("partitionkey", keyValue)
        .withData(payloadInBytes)
        .build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment