package com.zd.forward.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

/**
 * @author Administrator
 */
@ConfigurationProperties("fire")
@RefreshScope
@Validated
@Data
public class FireProperties {

    @NotNull(message = "算法ID不能为空")
    private Integer algoId;
    /**
     * did 数据ID
     */
    @NotNull (message = "数据ID不能为空")
    private String did;

    /**
     * 实验室ID，和设备编号二选一即可
     */
    private Integer labId;

    /**
     * 设备编号，和实验室ID二选一即可
     */
    private String hardwareNum;
    /**
     * 算法名称
     */
    private String algorithmName;

    /**
     * 视频流地址
     */
    private String streamUrl;

    /**
     * 间隔时间
     */
    private Integer waitTime=1;

}
