// 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 TemplateRulesVoV2 struct {

    /* 监控项单位 (Optional) */
    CalculateUnit string `json:"calculateUnit"`

    /* 统计方法：平均值=avg、最大值=max、最小值=min (Optional) */
    Calculation string `json:"calculation"`

    /*  (Optional) */
    CreateTime string `json:"createTime"`

    /* 是否删除 1正常，0删除 (Optional) */
    Deleted int64 `json:"deleted"`

    /* downSample (Optional) */
    DownSample string `json:"downSample"`

    /* 触发条件ID (Optional) */
    Id int64 `json:"id"`

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

    /* 监控项ID (Optional) */
    MetricId int64 `json:"metricId"`

    /* 监控项名称 (Optional) */
    MetricName string `json:"metricName"`

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

    /* 通知周期 (Optional) */
    NoticePeriod int64 `json:"noticePeriod"`

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

    /* 统计周期（单位：分钟） (Optional) */
    Period int64 `json:"period"`

    /* 规则类型 (Optional) */
    RuleType int64 `json:"ruleType"`

    /* 规则所属资源类型 (Optional) */
    ServiceCode string `json:"serviceCode"`

    /* 监控项附属信息 (Optional) */
    Tag string `json:"tag"`

    /* 多值标签 (Optional) */
    Tags interface{} `json:"tags"`

    /* 阈值 (Optional) */
    Threshold float64 `json:"threshold"`

    /* 连续多少次后报警 (Optional) */
    Times int64 `json:"times"`

    /*  (Optional) */
    UpdateTime string `json:"updateTime"`

    /* 触发条件UUID (Optional) */
    Uuid string `json:"uuid"`
}
