package arms

//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.
//
// Code generated by Alibaba Cloud SDK Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

// AlertRule is a nested struct in arms response
type AlertRule struct {
	Extend                string            `json:"Extend" xml:"Extend"`
	AlertId               float64           `json:"AlertId" xml:"AlertId"`
	AlertGroup            int64             `json:"AlertGroup" xml:"AlertGroup"`
	Operator              string            `json:"Operator" xml:"Operator"`
	RegionId              string            `json:"RegionId" xml:"RegionId"`
	CreatedTime           int64             `json:"CreatedTime" xml:"CreatedTime"`
	UserId                string            `json:"UserId" xml:"UserId"`
	AlertType             string            `json:"AlertType" xml:"AlertType"`
	AlertName             string            `json:"AlertName" xml:"AlertName"`
	NotifyStrategy        string            `json:"NotifyStrategy" xml:"NotifyStrategy"`
	ClusterId             string            `json:"ClusterId" xml:"ClusterId"`
	Message               string            `json:"Message" xml:"Message"`
	AlertStatus           string            `json:"AlertStatus" xml:"AlertStatus"`
	Level                 string            `json:"Level" xml:"Level"`
	AutoAddNewApplication bool              `json:"AutoAddNewApplication" xml:"AutoAddNewApplication"`
	MetricsType           string            `json:"MetricsType" xml:"MetricsType"`
	Duration              string            `json:"Duration" xml:"Duration"`
	UpdatedTime           int64             `json:"UpdatedTime" xml:"UpdatedTime"`
	PromQL                string            `json:"PromQL" xml:"PromQL"`
	AlertCheckType        string            `json:"AlertCheckType" xml:"AlertCheckType"`
	Pids                  []string          `json:"Pids" xml:"Pids"`
	Filters               Filters           `json:"Filters" xml:"Filters"`
	AlertRuleContent      AlertRuleContent  `json:"AlertRuleContent" xml:"AlertRuleContent"`
	Annotations           []AnnotationsItem `json:"Annotations" xml:"Annotations"`
	Tags                  []Tag             `json:"Tags" xml:"Tags"`
	Labels                []LabelsItem      `json:"Labels" xml:"Labels"`
	Rules                 []Rule            `json:"Rules" xml:"Rules"`
}
