quick_links.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. App.QuickLinks = DS.Model.extend({
  20. label: DS.attr('string'),
  21. url: DS.attr('string'),
  22. service_id: DS.attr('string')
  23. });
  24. App.QuickLinks.FIXTURES = [
  25. {
  26. id:1,
  27. label:'NameNode UI',
  28. url:'http://%@:50070/dfshealth.jsp',
  29. service_id: 'HDFS'
  30. },
  31. {
  32. id:2,
  33. label:'NameNode logs',
  34. url:'http://%@:50070/logs',
  35. service_id: 'HDFS'
  36. },
  37. {
  38. id:3,
  39. label:'NameNode JMX',
  40. url:'http://%@:50070/jmx',
  41. service_id: 'HDFS'
  42. },
  43. {
  44. id:4,
  45. label:'Thread Stacks',
  46. url:'http://%@:50070/stacks',
  47. service_id: 'HDFS'
  48. },
  49. {
  50. id:5,
  51. label:'JobTracker UI',
  52. url:'http://%@:50030/jobtracker.jsp',
  53. service_id: 'MAPREDUCE'
  54. },
  55. {
  56. id:6,
  57. label:'Scheduling Info',
  58. url:'http://%@:50030/scheduler',
  59. service_id: 'MAPREDUCE'
  60. },
  61. {
  62. id:7,
  63. label:'Running Jobs',
  64. url:'http://%@:50030/jobtracker.jsp#running_jobs',
  65. service_id: 'MAPREDUCE'
  66. },
  67. {
  68. id:8,
  69. label:'Retired Jobs',
  70. url:'http://%@:50030/jobtracker.jsp#retired_jobs',
  71. service_id: 'MAPREDUCE'
  72. },
  73. {
  74. id:9,
  75. label:'JobHistory Server',
  76. url:'http://%@:51111/jobhistoryhome.jsp',
  77. service_id: 'MAPREDUCE'
  78. },
  79. {
  80. id:10,
  81. label:'JobTracker Logs',
  82. url:'http://%@:50030/logs',
  83. service_id: 'MAPREDUCE'
  84. },
  85. {
  86. id:11,
  87. label:'JobTracker JMX',
  88. url:'http://%@:50030/jmx',
  89. service_id: 'MAPREDUCE'
  90. },
  91. {
  92. id:12,
  93. label:'Thread Stacks',
  94. url:'http://%@:50030/stacks',
  95. service_id: 'MAPREDUCE'
  96. },
  97. {
  98. id:13,
  99. label:'HBase Master UI',
  100. url:'http://%@:60010/master-status',
  101. service_id: 'HBASE'
  102. },
  103. {
  104. id:14,
  105. label:'HBase Logs',
  106. url:'http://%@:60010/logs',
  107. service_id: 'HBASE'
  108. },
  109. {
  110. id:15,
  111. label:'Zookeeper Info',
  112. url:'http://%@:60010/zk.jsp',
  113. service_id: 'HBASE'
  114. },
  115. {
  116. id:16,
  117. label:'HBase Master JMX',
  118. url:'http://%@:60010/jmx',
  119. service_id: 'HBASE'
  120. },
  121. {
  122. id:17,
  123. label:'Debug Dump',
  124. url:'http://%@:60010/dump',
  125. service_id: 'HBASE'
  126. },
  127. {
  128. id:18,
  129. label:'Thread Stacks',
  130. url:'http://%@:60010/stacks',
  131. service_id: 'HBASE'
  132. }
  133. ];