CloudWatch Log Event Model (model/LogEvent.java)

floci · src/main/java/io/github/hectorvent/floci/services/cloudwatch/logs/model/LogEvent.java · java · MIT
infra, lang:java, tag:cloudwatch, tag:json

A data model representing a CloudWatch log event. Use this for deserializing log data in Java applications, particularly with Quarkus.

// Source: https://github.com/diegosouzapw/floci | License: MIT | Copyright 2025 Hector Ventura
// Provided via justclaw.it.com; keep this notice with the code.
package io.github.hectorvent.floci.services.cloudwatch.logs.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.quarkus.runtime.annotations.RegisterForReflection;

@RegisterForReflection
@JsonIgnoreProperties(ignoreUnknown = true)
public class LogEvent {

    private String eventId;
    private long timestamp;
    private String message;
    private long ingestionTime;
    /**
     * Monotonically increasing ingestion sequence number, used to preserve ingestion
     * order as a tie-breaker when multiple events share the same millisecond timestamp.
     * Matches CloudWatch Logs, which returns same-times

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key