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.Getter;
import lombok.Setter;

/**
 * @Company: 博云 www.bocloud.com
 * @ClassName: MetricCriteria
 * @Description:度量值规则
 * @author: zhenpingLi/李振平
 * @date: 2021/1/8 14:27
 */
@Table("metric_criteria")
@Data
public class MetricCriteria {

    @PK(value = PKStrategy.AUTO)
    private Long id; // ID
    @Column("name")
    private String name;
    @Column("metric_name")
    private String metricName;
    @Column("metric_namespace")
    private String metricNamespace;
    @Column("operator")
    private String operator;//条件运算符。Equals、GreaterThan、GreaterThanOrEqual、LessThan、LessThanOrEqual、NotEquals
    @Column("time_aggregation")
    private String timeAggregation;//条件时间聚合类型。Average、Count、Maximum、Minimum、Total
    @Column("threshold")
    private Integer threshold;//激活警报的条件阈值。
    @Column("metric_alert_id")
    private Long metricAlertId;
    @Column("criterion_type")
    private String criterionType;

}