2026-06-16 17:39:13 +08:00
|
|
|
package com.xuqm.bugcollect.dto;
|
2026-06-16 12:10:58 +08:00
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
|
import jakarta.validation.constraints.NotBlank;
|
|
|
|
|
import jakarta.validation.constraints.NotEmpty;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
public record EventBatchRequest(
|
2026-06-17 15:30:05 +08:00
|
|
|
@JsonProperty("sentAt") String sentAt,
|
|
|
|
|
@JsonProperty("sdk") IssueBatchRequest.SdkInfo sdk,
|
2026-06-16 12:10:58 +08:00
|
|
|
@JsonProperty("events") @NotEmpty List<EventItem> events
|
|
|
|
|
) {
|
|
|
|
|
public record EventItem(
|
2026-06-17 15:30:05 +08:00
|
|
|
@JsonProperty("eventId") String eventId,
|
2026-06-16 12:10:58 +08:00
|
|
|
@NotBlank @JsonProperty("appKey") String appKey,
|
|
|
|
|
@NotBlank String name,
|
2026-06-17 15:30:05 +08:00
|
|
|
long timestamp,
|
|
|
|
|
@JsonProperty("properties") Object properties,
|
2026-06-16 12:10:58 +08:00
|
|
|
String platform,
|
2026-06-17 15:30:05 +08:00
|
|
|
String release,
|
|
|
|
|
String environment,
|
|
|
|
|
@JsonProperty("user") IssueBatchRequest.UserInfo user,
|
|
|
|
|
@JsonProperty("device") IssueBatchRequest.DeviceInfo device,
|
|
|
|
|
@JsonProperty("sdk") IssueBatchRequest.SdkInfo sdk
|
2026-06-16 12:10:58 +08:00
|
|
|
) {}
|
|
|
|
|
}
|