|
|
@@ -17,44 +17,42 @@ package cms
|
|
|
|
|
|
// Resource is a nested struct in cms response
|
|
|
type Resource struct {
|
|
|
- Category string `json:"Category" xml:"Category"`
|
|
|
- Name string `json:"Name" xml:"Name"`
|
|
|
- TemplateId string `json:"TemplateId" xml:"TemplateId"`
|
|
|
- NameDesc string `json:"NameDesc" xml:"NameDesc"`
|
|
|
- Unit string `json:"Unit" xml:"Unit"`
|
|
|
- RuleName string `json:"RuleName" xml:"RuleName"`
|
|
|
- Desc string `json:"Desc" xml:"Desc"`
|
|
|
- LastModifyTime string `json:"LastModifyTime" xml:"LastModifyTime"`
|
|
|
- Dimensions string `json:"Dimensions" xml:"Dimensions"`
|
|
|
- RuleId string `json:"RuleId" xml:"RuleId"`
|
|
|
- RetryTimes string `json:"RetryTimes" xml:"RetryTimes"`
|
|
|
- RegionId string `json:"RegionId" xml:"RegionId"`
|
|
|
- RestVersion string `json:"RestVersion" xml:"RestVersion"`
|
|
|
- InstanceId string `json:"InstanceId" xml:"InstanceId"`
|
|
|
- GroupId string `json:"GroupId" xml:"GroupId"`
|
|
|
- NetworkType string `json:"NetworkType" xml:"NetworkType"`
|
|
|
- Description string `json:"Description" xml:"Description"`
|
|
|
- Periods string `json:"Periods" xml:"Periods"`
|
|
|
- Resource string `json:"Resource" xml:"Resource"`
|
|
|
- Product string `json:"Product" xml:"Product"`
|
|
|
- MetricValues string `json:"MetricValues" xml:"MetricValues"`
|
|
|
- InstanceName string `json:"InstanceName" xml:"InstanceName"`
|
|
|
- Level string `json:"Level" xml:"Level"`
|
|
|
- Dimension string `json:"Dimension" xml:"Dimension"`
|
|
|
- Id int `json:"Id" xml:"Id"`
|
|
|
- Threshold string `json:"Threshold" xml:"Threshold"`
|
|
|
- StartTime string `json:"StartTime" xml:"StartTime"`
|
|
|
- EventType string `json:"EventType" xml:"EventType"`
|
|
|
- Namespace string `json:"Namespace" xml:"Namespace"`
|
|
|
- Enable string `json:"Enable" xml:"Enable"`
|
|
|
- LastAlertTime string `json:"LastAlertTime" xml:"LastAlertTime"`
|
|
|
- StatusDesc string `json:"StatusDesc" xml:"StatusDesc"`
|
|
|
- MetricName string `json:"MetricName" xml:"MetricName"`
|
|
|
- Status string `json:"Status" xml:"Status"`
|
|
|
- Labels string `json:"Labels" xml:"Labels"`
|
|
|
- Statistics string `json:"Statistics" xml:"Statistics"`
|
|
|
- Vpc Vpc `json:"Vpc" xml:"Vpc"`
|
|
|
- Region Region `json:"Region" xml:"Region"`
|
|
|
- Tags Tags `json:"Tags" xml:"Tags"`
|
|
|
- AlertTemplates AlertTemplates `json:"AlertTemplates" xml:"AlertTemplates"`
|
|
|
+ TemplateId string `json:"TemplateId" xml:"TemplateId"`
|
|
|
+ Name string `json:"Name" xml:"Name"`
|
|
|
+ Category string `json:"Category" xml:"Category"`
|
|
|
+ Unit string `json:"Unit" xml:"Unit"`
|
|
|
+ NameDesc string `json:"NameDesc" xml:"NameDesc"`
|
|
|
+ Desc string `json:"Desc" xml:"Desc"`
|
|
|
+ BindUrl string `json:"BindUrl" xml:"BindUrl"`
|
|
|
+ Dimensions string `json:"Dimensions" xml:"Dimensions"`
|
|
|
+ GroupName string `json:"GroupName" xml:"GroupName"`
|
|
|
+ ServiceId string `json:"ServiceId" xml:"ServiceId"`
|
|
|
+ RestVersion string `json:"RestVersion" xml:"RestVersion"`
|
|
|
+ RegionId string `json:"RegionId" xml:"RegionId"`
|
|
|
+ InstanceId string `json:"InstanceId" xml:"InstanceId"`
|
|
|
+ NetworkType string `json:"NetworkType" xml:"NetworkType"`
|
|
|
+ Description string `json:"Description" xml:"Description"`
|
|
|
+ Periods string `json:"Periods" xml:"Periods"`
|
|
|
+ Type string `json:"Type" xml:"Type"`
|
|
|
+ Product string `json:"Product" xml:"Product"`
|
|
|
+ InstanceName string `json:"InstanceName" xml:"InstanceName"`
|
|
|
+ Level string `json:"Level" xml:"Level"`
|
|
|
+ Dimension string `json:"Dimension" xml:"Dimension"`
|
|
|
+ Id int64 `json:"Id" xml:"Id"`
|
|
|
+ GmtCreate int64 `json:"GmtCreate" xml:"GmtCreate"`
|
|
|
+ EventType string `json:"EventType" xml:"EventType"`
|
|
|
+ Namespace string `json:"Namespace" xml:"Namespace"`
|
|
|
+ GroupId int64 `json:"GroupId" xml:"GroupId"`
|
|
|
+ GmtModified int64 `json:"GmtModified" xml:"GmtModified"`
|
|
|
+ MetricName string `json:"MetricName" xml:"MetricName"`
|
|
|
+ StatusDesc string `json:"StatusDesc" xml:"StatusDesc"`
|
|
|
+ Labels string `json:"Labels" xml:"Labels"`
|
|
|
+ Status string `json:"Status" xml:"Status"`
|
|
|
+ Statistics string `json:"Statistics" xml:"Statistics"`
|
|
|
+ Vpc Vpc `json:"Vpc" xml:"Vpc"`
|
|
|
+ Region Region `json:"Region" xml:"Region"`
|
|
|
+ Tags Tags `json:"Tags" xml:"Tags"`
|
|
|
+ AlertTemplates AlertTemplates `json:"AlertTemplates" xml:"AlertTemplates"`
|
|
|
+ ContactGroups ContactGroupsInDescribeMonitorGroups `json:"ContactGroups" xml:"ContactGroups"`
|
|
|
+ AlertResults []Result `json:"AlertResults" xml:"AlertResults"`
|
|
|
}
|