AgentMonitor.vue 743 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <base-monitor
  3. :data="data"
  4. :constants="constants"
  5. :resId="resId"
  6. :idKey="idKey"
  7. :monitorType="monitorType"
  8. :currentMonitorType="currentMonitorType" />
  9. </template>
  10. <script>
  11. import BaseMonitor from '@Compute/sections/monitor/BaseMonitor'
  12. import { AGENT_MONITOR } from '@Compute/views/vminstance/constants'
  13. export default {
  14. name: 'AgentMonitor',
  15. components: {
  16. BaseMonitor,
  17. },
  18. props: {
  19. data: { // listItemData
  20. type: Object,
  21. required: true,
  22. },
  23. constants: {
  24. type: Array,
  25. default: () => AGENT_MONITOR,
  26. },
  27. resId: {
  28. type: String,
  29. },
  30. idKey: {
  31. type: String,
  32. },
  33. monitorType: String,
  34. currentMonitorType: String,
  35. },
  36. }
  37. </script>