alert.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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.Alert = DS.Model.extend({
  20. title: DS.attr('string'),
  21. service: DS.belongsTo('App.Service'),
  22. date: DS.attr('date'),
  23. status: DS.attr('string'),
  24. message: DS.attr('string')
  25. });
  26. App.Alert.FIXTURES = [
  27. {
  28. id: 1,
  29. title: 'Corrupt/Missing Block',
  30. service_id: 1,
  31. date: 'August 29, 2012 17:00',
  32. status: 'corrupt',
  33. message: 'message'
  34. },
  35. {
  36. id: 2,
  37. title: 'Corrupt/Missing Block',
  38. service_id: 1,
  39. date: 'August 30, 2012 17:00',
  40. status: 'ok',
  41. message: 'message'
  42. },
  43. {
  44. id: 3,
  45. title: 'Corrupt/Missing Block',
  46. service_id: 2,
  47. date: 'August 29, 2012 17:00',
  48. status: 'corrupt',
  49. message: 'message'
  50. },
  51. {
  52. id: 4,
  53. title: 'Corrupt/Missing Block',
  54. service_id: 2,
  55. date: 'August 30, 2012 17:00',
  56. status: 'ok',
  57. message: 'message'
  58. },
  59. {
  60. id: 5,
  61. title: 'Corrupt/Missing Block',
  62. service_id: 3,
  63. date: 'August 29, 2012 17:00',
  64. status: 'corrupt',
  65. message: 'message'
  66. },
  67. {
  68. id: 6,
  69. title: 'Corrupt/Missing Block',
  70. service_id: 3,
  71. date: 'August 30, 2012 17:00',
  72. status: 'ok',
  73. message: 'message'
  74. },
  75. {
  76. id: 7,
  77. title: 'Corrupt/Missing Block',
  78. service_id: 4,
  79. date: 'August 29, 2012 17:00',
  80. status: 'corrupt',
  81. message: 'message'
  82. },
  83. {
  84. id: 8,
  85. title: 'Corrupt/Missing Block',
  86. service_id: 4,
  87. date: 'August 30, 2012 17:00',
  88. status: 'ok',
  89. message: 'message'
  90. },
  91. {
  92. id: 9,
  93. title: 'Corrupt/Missing Block',
  94. service_id: 5,
  95. date: 'August 29, 2012 17:00',
  96. status: 'corrupt',
  97. message: 'message'
  98. },
  99. {
  100. id: 10,
  101. title: 'Corrupt/Missing Block',
  102. service_id: 5,
  103. date: 'August 30, 2012 17:00',
  104. status: 'ok',
  105. message: 'message'
  106. },
  107. {
  108. id: 11,
  109. title: 'Corrupt/Missing Block',
  110. service_id: 6,
  111. date: 'August 29, 2012 17:00',
  112. status: 'corrupt',
  113. message: 'message'
  114. },
  115. {
  116. id: 12,
  117. title: 'Corrupt/Missing Block',
  118. service_id: 6,
  119. date: 'August 30, 2012 17:00',
  120. status: 'ok',
  121. message: 'message'
  122. }
  123. ];