package com.bocloud.ims.entity.resource.azure.monitor;

import com.bocloud.entity.annotations.Column;
import com.bocloud.entity.annotations.PK;
import com.bocloud.entity.annotations.Table;
import com.bocloud.entity.meta.PKStrategy;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Company: 博云 www.bocloud.com
 * @ClassName: MetricAlertResourceRelation
 * @Description:指标警报和资源绑定关系
 * @author: zhenpingLi/李振平
 * @date: 2021/3/12 15:26
 */
@Table("metric_alert_resource_relation")
@Data
@NoArgsConstructor
public class MetricAlertResourceRelation {

    @PK(value = PKStrategy.AUTO)
    private Long id;
    @Column("metric_alert_id")
    private Long metricAlertId;
    @Column("resource_id")
    private Long resourceId;
    @Column("resource_type")
    private String resourceType;

    public MetricAlertResourceRelation(Long metricAlertId, Long resourceId, String resourceType) {
        this.metricAlertId = metricAlertId;
        this.resourceId = resourceId;
        this.resourceType = resourceType;
    }
}