// Copyright 2018 JDCLOUD.COM
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// NOTE: This class is auto generated by the jdcloud code generator program.

package models


type BasicCustomRule struct {

    /* 统计方法，必须与定义的metric一致，可选值列表：avg,sum,max,min  */
    Calculation string `json:"calculation"`

    /* 监控项metric  */
    Metric string `json:"metric"`

    /*  (Optional) */
    NoticeLevel NoticeLevel `json:"noticeLevel"`

    /* 报警比较符，只能为以下几种lte(<=),lt(<),gt(>),gte(>=),eq(==),ne(!=)  */
    Operation string `json:"operation"`

    /* 查询指标的周期，单位为分钟,目前支持的取值：1,2，5，10,15，30，60  */
    Period int64 `json:"period"`

    /* 报警阈值，目前只开放数值类型功能  */
    Threshold float64 `json:"threshold"`

    /* 连续探测几次都满足阈值条件时报警，可选值:1,2,3,5,10,15,30,60  */
    Times int64 `json:"times"`
}
