package com.yeejoin.amos.api.alarm.dto;
import lombok.Data;

import java.util.List;

/**
 * @description:
 * @author: tw
 * @createDate: 2023/6/19
 */
@Data
public class WarningDto {

    private BizInfo bizInfo;
    private String indexKey;
    private String indexValue;
    private String traceId;

    public WarningDto( String indexKey, String indexValue, String traceId,
                      String sourceAttributionDesc,
                      String sourceAttribution,
                      List<DynamicDetails> dynamicDetails,
                      String warningObjectCode,
                      String warningTime,
                      String warningObjectName

    ) {
        this.bizInfo = new BizInfo( sourceAttributionDesc, sourceAttribution, dynamicDetails, warningObjectCode, warningTime, warningObjectName);
        this.indexKey = indexKey;
        this.indexValue = indexValue;
        this.traceId = traceId;
    }
}
