struct_rule.go 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package edas
  2. //Licensed under the Apache License, Version 2.0 (the "License");
  3. //you may not use this file except in compliance with the License.
  4. //You may obtain a copy of the License at
  5. //
  6. //http://www.apache.org/licenses/LICENSE-2.0
  7. //
  8. //Unless required by applicable law or agreed to in writing, software
  9. //distributed under the License is distributed on an "AS IS" BASIS,
  10. //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. //See the License for the specific language governing permissions and
  12. //limitations under the License.
  13. //
  14. // Code generated by Alibaba Cloud SDK Code Generator.
  15. // Changes may cause incorrect behavior and will be lost if the code is regenerated.
  16. // Rule is a nested struct in edas response
  17. type Rule struct {
  18. Step int `json:"Step" xml:"Step"`
  19. TemplateId string `json:"TemplateId" xml:"TemplateId"`
  20. TemplateVersion int `json:"TemplateVersion" xml:"TemplateVersion"`
  21. CreateTime int64 `json:"CreateTime" xml:"CreateTime"`
  22. RuleId string `json:"RuleId" xml:"RuleId"`
  23. State int `json:"State" xml:"State"`
  24. Threshold int `json:"Threshold" xml:"Threshold"`
  25. Mode string `json:"Mode" xml:"Mode"`
  26. ConsumerAppId string `json:"ConsumerAppId" xml:"ConsumerAppId"`
  27. Strategy string `json:"Strategy" xml:"Strategy"`
  28. Duration int `json:"Duration" xml:"Duration"`
  29. LoadNum int `json:"LoadNum" xml:"LoadNum"`
  30. GroupId string `json:"GroupId" xml:"GroupId"`
  31. Id string `json:"Id" xml:"Id"`
  32. VpcId string `json:"VpcId" xml:"VpcId"`
  33. Rt int `json:"Rt" xml:"Rt"`
  34. Resource string `json:"Resource" xml:"Resource"`
  35. MetricType string `json:"MetricType" xml:"MetricType"`
  36. RuleType string `json:"RuleType" xml:"RuleType"`
  37. UpdateTime int64 `json:"UpdateTime" xml:"UpdateTime"`
  38. Granularity string `json:"Granularity" xml:"Granularity"`
  39. SpecId string `json:"SpecId" xml:"SpecId"`
  40. VSwitchIds string `json:"VSwitchIds" xml:"VSwitchIds"`
  41. AppId string `json:"AppId" xml:"AppId"`
  42. ResourceFrom string `json:"ResourceFrom" xml:"ResourceFrom"`
  43. Enable bool `json:"Enable" xml:"Enable"`
  44. InstNum int `json:"InstNum" xml:"InstNum"`
  45. RtThreshold int `json:"RtThreshold" xml:"RtThreshold"`
  46. Cond string `json:"Cond" xml:"Cond"`
  47. Cpu int `json:"Cpu" xml:"Cpu"`
  48. MultiAzPolicy string `json:"MultiAzPolicy" xml:"MultiAzPolicy"`
  49. }