columns.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. import i18n from '@/locales'
  2. export const healthCheckTypeColumn = () => {
  3. return {
  4. field: 'health_check_type',
  5. title: i18n.t('network.text_420'),
  6. formatter: ({ row }) => {
  7. return row.health_check_type || '-'
  8. },
  9. }
  10. }
  11. export const healthCheckUriColumn = () => {
  12. return {
  13. field: 'health_check_uri',
  14. title: i18n.t('network.waf.rate_limit_rule_type.http.request.uri.path'),
  15. formatter: ({ row }) => {
  16. return row.health_check_uri || '-'
  17. },
  18. }
  19. }
  20. export const healthCheckPortColumn = () => {
  21. return {
  22. field: 'health_check_port',
  23. title: i18n.t('network.text_165'),
  24. formatter: ({ row }) => {
  25. return row.health_check_port || '-'
  26. },
  27. }
  28. }
  29. export const healthCheckDomainColumn = () => {
  30. return {
  31. field: 'health_check_domain',
  32. title: i18n.t('network.text_156'),
  33. formatter: ({ row }) => {
  34. return row.health_check_domain || '-'
  35. },
  36. }
  37. }
  38. export const healthCheckMethodColumn = () => {
  39. return {
  40. field: 'health_check_method',
  41. title: i18n.t('network.health_check.method'),
  42. formatter: ({ row }) => {
  43. return row.health_check_method || '-'
  44. },
  45. }
  46. }
  47. export const healthCheckHttpCodeColumn = () => {
  48. return {
  49. field: 'health_check_http_code',
  50. title: i18n.t('network.health_check.http_code'),
  51. formatter: ({ row }) => {
  52. return row.health_check_http_code || '-'
  53. },
  54. }
  55. }
  56. export const healthCheckIntervalColumn = () => {
  57. return {
  58. field: 'health_check_interval',
  59. title: i18n.t('network.health_check.interval'),
  60. formatter: ({ row }) => {
  61. return row.health_check_interval || '-'
  62. },
  63. }
  64. }
  65. export const healthCheckTimeoutColumn = () => {
  66. return {
  67. field: 'health_check_timeout',
  68. title: i18n.t('network.health_check.timeout'),
  69. formatter: ({ row }) => {
  70. return row.health_check_timeout || '-'
  71. },
  72. }
  73. }
  74. export const healthCheckHealthyThresholdColumn = () => {
  75. return {
  76. field: 'health_check_rise',
  77. title: i18n.t('network.health_check.healthy_threshold'),
  78. formatter: ({ row }) => {
  79. return row.health_check_rise || '-'
  80. },
  81. }
  82. }
  83. export const healthCheckUnhealthyThresholdColumn = () => {
  84. return {
  85. field: 'health_check_fall',
  86. title: i18n.t('network.health_check.unhealthy_threshold'),
  87. formatter: ({ row }) => {
  88. return row.health_check_fall || '-'
  89. },
  90. }
  91. }