All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.castled.dtos.PipelineRunDetails Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package io.castled.dtos;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.castled.models.Pipeline;
import io.castled.models.PipelineRun;
import lombok.Data;
import org.apache.commons.collections4.CollectionUtils;

import java.util.List;

@Data
public class PipelineRunDetails {

    private List lastRuns;
    private Long lastRunTs;

    public PipelineRunDetails(List lastRuns) {
        this.lastRuns = lastRuns;
        if (!CollectionUtils.isEmpty(lastRuns)) {
            this.lastRunTs = lastRuns.get(0).getProcessedTs();
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy