categories.js 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. var App = require('app');
  19. module.exports = [
  20. {
  21. value: Em.I18n.t('common.all'),
  22. isHealthStatus: true,
  23. healthStatus: '',
  24. healthClass: '',
  25. isActive: true,
  26. isVisible: false
  27. },
  28. {
  29. value: Em.I18n.t('hosts.host.healthStatusCategory.green'),
  30. isHealthStatus: true,
  31. class: App.healthIconClassGreen,
  32. healthStatus: 'HEALTHY',
  33. healthClass: 'health-status-LIVE'
  34. },
  35. {
  36. value: Em.I18n.t('hosts.host.healthStatusCategory.red'),
  37. isHealthStatus: true,
  38. class: App.healthIconClassRed,
  39. healthStatus: 'UNHEALTHY',
  40. healthClass: 'health-status-DEAD-RED'
  41. },
  42. {
  43. value: Em.I18n.t('hosts.host.healthStatusCategory.orange'),
  44. isHealthStatus: true,
  45. class: App.healthIconClassOrange,
  46. healthStatus: 'ALERT',
  47. healthClass: 'health-status-DEAD-ORANGE'
  48. },
  49. {
  50. value: Em.I18n.t('hosts.host.healthStatusCategory.yellow'),
  51. isHealthStatus: true,
  52. class: App.healthIconClassYellow,
  53. healthStatus: 'UNKNOWN',
  54. healthClass: 'health-status-DEAD-YELLOW'
  55. },
  56. {
  57. value: Em.I18n.t('hosts.host.alerts.label'),
  58. hostProperty: 'criticalAlertsCount',
  59. class: 'icon-exclamation-sign',
  60. isHealthStatus: false,
  61. healthClass: 'health-status-WITH-ALERTS',
  62. healthStatus: 'health-status-WITH-ALERTS',
  63. column: 7,
  64. type: 'custom',
  65. filterValue: ['>0', '>0']
  66. },
  67. {
  68. value: Em.I18n.t('common.restart'),
  69. hostProperty: 'componentsWithStaleConfigsCount',
  70. class: 'icon-refresh',
  71. isHealthStatus: false,
  72. healthClass: 'health-status-RESTART',
  73. healthStatus: 'health-status-RESTART',
  74. column: 8,
  75. type: 'string',
  76. filterValue: 'true'
  77. },
  78. {
  79. value: Em.I18n.t('common.passive_state'),
  80. hostProperty: 'componentsInPassiveStateCount',
  81. class: 'passive-state icon-medkit',
  82. isHealthStatus: false,
  83. healthClass: 'health-status-PASSIVE_STATE',
  84. healthStatus: 'health-status-PASSIVE_STATE',
  85. column: 9,
  86. type: 'string',
  87. filterValue: ['ON','IMPLIED_FROM_HOST','IMPLIED_FROM_SERVICE','IMPLIED_FROM_SERVICE_AND_HOST']
  88. }
  89. ];