alertquery_const.go 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. // Copyright 2019 Yunion
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package monitor
  15. var (
  16. UnionTags = []string{
  17. "host",
  18. "host_id",
  19. "id",
  20. "ips",
  21. "name",
  22. "zone",
  23. "zone_id",
  24. "zone_ext_id",
  25. "os_type",
  26. "status",
  27. "cloudregion",
  28. "cloudregion_id",
  29. "region_ext_id",
  30. "tenant",
  31. "tenant_id",
  32. "brand",
  33. "vm_scaling_group_id",
  34. "domain_id",
  35. "project_domain",
  36. }
  37. ServerTags = map[string]string{
  38. "host": "host",
  39. "host_id": "host_id",
  40. "vm_id": "id",
  41. "vm_ip": "ips",
  42. "vm_name": "name",
  43. "zone": "zone",
  44. "zone_id": "zone_id",
  45. "zone_ext_id": "zone_ext_id",
  46. "os_type": "os_type",
  47. "status": "status",
  48. "cloudregion": "cloudregion",
  49. "cloudregion_id": "cloudregion_id",
  50. "region_ext_id": "region_ext_id",
  51. "tenant": "tenant",
  52. "tenant_id": "tenant_id",
  53. "brand": "brand",
  54. "scaling_group_id": "vm_scaling_group_id",
  55. "domain_id": "domain_id",
  56. "project_domain": "project_domain",
  57. "account": "account",
  58. "account_id": "account_id",
  59. "external_id": "external_id",
  60. "eip": "eip",
  61. "eip_mode": "eip_mode",
  62. "ips": "ips",
  63. "vips": "vips",
  64. "vip": "vip",
  65. "vip_eip": "vip_eip",
  66. }
  67. HostTags = map[string]string{
  68. "host_id": "id",
  69. "host_ip": "ips",
  70. "host": "name",
  71. "zone": "zone",
  72. "zone_id": "zone_id",
  73. "zone_ext_id": "zone_ext_id",
  74. "os_type": "os_type",
  75. "status": "status",
  76. "cloudregion": "cloudregion",
  77. "cloudregion_id": "cloudregion_id",
  78. "region_ext_id": "region_ext_id",
  79. "tenant": "tenant",
  80. "tenant_id": "tenant_id",
  81. "brand": "brand",
  82. "domain_id": "domain_id",
  83. "project_domain": "project_domain",
  84. "access_ip": "access_ip",
  85. "account": "account",
  86. "account_id": "account_id",
  87. }
  88. RdsTags = map[string]string{
  89. "host": "host",
  90. "host_id": "host_id",
  91. "rds_id": "id",
  92. "rds_ip": "ips",
  93. "rds_name": "name",
  94. "zone": "zone",
  95. "zone_id": "zone_id",
  96. "zone_ext_id": "zone_ext_id",
  97. "os_type": "os_type",
  98. "status": "status",
  99. "cloudregion": "cloudregion",
  100. "cloudregion_id": "cloudregion_id",
  101. "region_ext_id": "region_ext_id",
  102. "tenant": "tenant",
  103. "tenant_id": "tenant_id",
  104. "brand": "brand",
  105. "domain_id": "domain_id",
  106. "project_domain": "project_domain",
  107. "external_id": "external_id",
  108. "ip_addrs": "ip_addrs",
  109. "connection_str": "connection_str",
  110. "internal_connection_str": "internal_connection_str",
  111. }
  112. RedisTags = map[string]string{
  113. "host": "host",
  114. "host_id": "host_id",
  115. "redis_id": "id",
  116. "redis_ip": "ips",
  117. "redis_name": "name",
  118. "zone": "zone",
  119. "zone_id": "zone_id",
  120. "zone_ext_id": "zone_ext_id",
  121. "os_type": "os_type",
  122. "status": "status",
  123. "cloudregion": "cloudregion",
  124. "cloudregion_id": "cloudregion_id",
  125. "region_ext_id": "region_ext_id",
  126. "tenant": "tenant",
  127. "tenant_id": "tenant_id",
  128. "brand": "brand",
  129. "domain_id": "domain_id",
  130. "project_domain": "project_domain",
  131. }
  132. OssTags = map[string]string{
  133. "host": "host",
  134. "host_id": "host_id",
  135. "oss_id": "id",
  136. "oss_ip": "ips",
  137. "oss_name": "name",
  138. "zone": "zone",
  139. "zone_id": "zone_id",
  140. "zone_ext_id": "zone_ext_id",
  141. "os_type": "os_type",
  142. "status": "status",
  143. "cloudregion": "cloudregion",
  144. "cloudregion_id": "cloudregion_id",
  145. "region_ext_id": "region_ext_id",
  146. "tenant": "tenant",
  147. "tenant_id": "tenant_id",
  148. "brand": "brand",
  149. "domain_id": "domain_id",
  150. "project_domain": "project_domain",
  151. }
  152. ElbTags = map[string]string{
  153. "host": "host",
  154. "host_id": "host_id",
  155. "elb_id": "id",
  156. "elb_ip": "ips",
  157. "elb_name": "name",
  158. "zone": "zone",
  159. "zone_id": "zone_id",
  160. "zone_ext_id": "zone_ext_id",
  161. "os_type": "os_type",
  162. "status": "status",
  163. "region": "region",
  164. "cloudregion": "cloudregion",
  165. "cloudregion_id": "cloudregion_id",
  166. "tenant": "tenant",
  167. "tenant_id": "tenant_id",
  168. "brand": "brand",
  169. "domain_id": "domain_id",
  170. "project_domain": "project_domain",
  171. }
  172. CloudAccountTags = map[string]string{
  173. "cloudaccount_id": "id",
  174. "cloudaccount_name": "name",
  175. "brand": "brand",
  176. "domain_id": "domain_id",
  177. "project_domain": "project_domain",
  178. }
  179. TenantTags = map[string]string{
  180. "tenant_id": "id",
  181. "tenant": "name",
  182. "domain_id": "domain_id",
  183. "project_domain": "project_domain",
  184. }
  185. DomainTags = map[string]string{
  186. "domain_id": "id",
  187. "project_domain": "name",
  188. }
  189. StorageTags = map[string]string{
  190. "storage_id": "id",
  191. "storage_name": "name",
  192. "zone": "zone",
  193. "zone_id": "zone_id",
  194. "zone_ext_id": "zone_ext_id",
  195. "status": "status",
  196. "cloudregion": "cloudregion",
  197. "cloudregion_id": "cloudregion_id",
  198. "region_ext_id": "region_ext_id",
  199. "brand": "brand",
  200. "domain_id": "domain_id",
  201. "project_domain": "project_domain",
  202. }
  203. )