public class EventUtils extends Object
Constructor and Description |
---|
EventUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
protoToBytes(com.google.protobuf.Message data,
String dataContentType) |
static io.cloudevents.CloudEvent |
toCloudEvent(io.confluent.telemetry.api.events.Event e) |
static String |
toJson(io.cloudevents.CloudEvent event) |
static String |
toJson(io.confluent.telemetry.api.events.Event event) |
public static io.cloudevents.CloudEvent toCloudEvent(io.confluent.telemetry.api.events.Event e)
public static String toJson(io.confluent.telemetry.api.events.Event event)
public static String toJson(io.cloudevents.CloudEvent event)
public static byte[] protoToBytes(com.google.protobuf.Message data, String dataContentType)