package io.wdd.rpc.agent;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder(toBuilder = true)
public class AgentOperationMessage {

    /**
     * 执行Agent Operation操作的类型
     */
    private AgentOperationType opType;

    /**
     * 需要执行的目标时间,
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime operationTime;


    /**
     * 期望升级到的目标版本
     */
    private String updateVersion;

}
