监控数据

2019-10-31  本文已影响0人  zackxizi
let data = {
          groups: [
            { name: 'HRL', type: 'tree', direction: 'forward', id: 'HRL' },
            { name: 'Topic', type: 'tree', direction: 'reverse', id: 'Topic' },
            { name: 'Hadoop', type: 'loop', id: 'Hadoop' },
            { name: 'CDR', type: 'group', id: 'CDR' },
            { name: 'Greenplum', type: 'only', id: 'Greenplum' }
          ],
          nodes: {
            HRL: [
              {
                name: 'HIS',
                id: 'HIS',
                state: 1,
                children: [
                  {
                    name: 'Extra1',
                    id: 'Extra1',
                    state: null
                  },
                  {
                    name: 'Extra2',
                    id: 'Extra2',
                    state: 0
                  },
                  {
                    name: 'Extra3',
                    id: 'Extra3',
                    state: 1
                  },
                  {
                    name: 'Extra4',
                    id: 'Extra4',
                    state: null
                  },
                  {
                    name: 'Extra5',
                    id: 'Extra5',
                    state: 0
                  },
                  {
                    name: 'Extra6',
                    id: 'Extra6',
                    state: 1
                  }
                ]
              },
              {
                name: 'RIS',
                id: 'RIS',
                state: 1,
                children: [
                  {
                    name: 'Extra7',
                    id: 'Extra7',
                    state: 1
                  },
                  {
                    name: 'Extra8',
                    id: 'Extra8',
                    state: 1
                  },
                  {
                    name: 'Extra9',
                    id: 'Extra9',
                    state: 1
                  }
                ]
              },
              {
                name: 'LIS',
                id: 'LIS',
                state: 1,
                children: [
                  {
                    name: 'Extra10',
                    id: 'Extra10',
                    state: 1
                  }
                ]
              }
            ],
            Topic: [
              {
                name: 'Topic1',
                id: 'Topic1',
                state: 1,
                children: [
                  {
                    name: 'Rep1',
                    id: 'Rep1',
                    state: 1
                  },
                  {
                    name: 'Rep2',
                    id: 'Rep2',
                    state: 1
                  },
                  {
                    name: 'Rep3',
                    id: 'Rep3',
                    state: 1
                  },
                  {
                    name: 'Rep4',
                    id: 'Rep4',
                    state: 1
                  },
                  {
                    name: 'Rep5',
                    id: 'Rep5',
                    state: 1
                  },
                  {
                    name: 'Rep6',
                    id: 'Rep6',
                    state: 1
                  }
                ]
              },
              {
                name: 'Topic2',
                id: 'Topic2',
                state: 1,
                children: [
                  {
                    name: 'Rep7',
                    id: 'Rep7',
                    state: 1
                  },
                  {
                    name: 'Rep8',
                    id: 'Rep8',
                    state: 1
                  },
                  {
                    name: 'Rep9',
                    id: 'Rep9',
                    state: 1
                  }
                ]
              },
              {
                name: 'Topic3',
                id: 'Topic3',
                state: 1,
                children: [
                  {
                    name: 'Rep10',
                    id: 'Rep10',
                    state: 1
                  }
                ]
              }
            ],
            Hadoop: {
              id: 'Hadoop',
              name: 'Hadoop',
              spark: {
                state: 1,
                id: 'spark'
              },
              harse: {
                state: -1,
                id: 'harse'
              },
              hive: {
                state: 0,
                id: 'hive'
              },
              hdfs: {
                state: 1,
                id: 'hdfs'
              },
              impala: {
                state: 1,
                id: 'impala'
              }
            },
            CDR: [
              {
                name: 'CDR-患者信息',
                id: 'CDR-患者信息',
                state: 1,
                children: [
                  {
                    name: 'CDR_PA1',
                    id: 'CDR_PA1',
                    state: 1
                  },
                  {
                    name: 'CDR_PA2',
                    id: 'CDR_PA2',
                    state: 1
                  },
                  {
                    name: 'CDR_PA3',
                    id: 'CDR_PA3',
                    state: 1
                  },
                  {
                    name: 'CDR_PA4',
                    id: 'CDR_PA4',
                    state: 1
                  },
                  {
                    name: 'CDR_PA5',
                    id: 'CDR_PA5',
                    state: 1
                  },
                  {
                    name: 'CDR_PA6',
                    id: 'CDR_PA6',
                    state: 1
                  }
                ]
              },
              {
                name: 'CDR-患者信息1',
                id: 'CDR-患者信息1',
                state: 1,
                children: [
                  {
                    name: 'CDR_PA7',
                    id: 'CDR_PA7',
                    state: 1
                  },
                  {
                    name: 'CDR_PA8',
                    id: 'CDR_PA8',
                    state: 1
                  },
                  {
                    name: 'CDR_PA9',
                    id: 'CDR_PA9',
                    state: 1
                  }
                ]
              },
              {
                name: 'CDR-患者信息3',
                id: 'CDR-患者信息3',
                state: 1,
                children: [
                  {
                    name: 'CDR_PA10',
                    id: 'CDR_PA10',
                    state: 1
                  }
                ]
              }
            ],
            Greenplum: {
              name: 'Greenplum',
              id: 'Greenplum',
              state: 1
            }
          },
          links: [
            {
              from: 'Extra1',
              to: 'Rep1',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Extra2',
              to: 'Rep3',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Extra3',
              to: 'Rep6',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Extra4',
              to: 'Rep2',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Extra5',
              to: 'Rep4',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Extra6',
              to: 'Rep5',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Extra7',
              to: 'Rep10',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Extra8',
              to: 'Rep8',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Extra9',
              to: 'Rep7',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Extra10',
              to: 'Rep9',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Topic1',
              to: 'Hadoop',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Topic2',
              to: 'Hadoop',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Topic3',
              to: 'Hadoop',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Hadoop',
              to: 'CDR_PA1',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Hadoop',
              to: 'CDR_PA2',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Hadoop',
              to: 'CDR_PA3',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Hadoop',
              to: 'CDR_PA4',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Hadoop',
              to: 'CDR_PA5',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Hadoop',
              to: 'CDR_PA6',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Hadoop',
              to: 'CDR_PA7',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Hadoop',
              to: 'CDR_PA8',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Hadoop',
              to: 'CDR_PA9',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'Hadoop',
              to: 'CDR_PA10',
              rate: '1m/s',
              state: 1
            },

            {
              from: 'CDR_PA1',
              to: 'Greenplum',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'CDR_PA2',
              to: 'Greenplum',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'CDR_PA3',
              to: 'Greenplum',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'CDR_PA4',
              to: 'Greenplum',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'CDR_PA5',
              to: 'Greenplum',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'CDR_PA6',
              to: 'Greenplum',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'CDR_PA7',
              to: 'Greenplum',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'CDR_PA8',
              to: 'Greenplum',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'CDR_PA9',
              to: 'Greenplum',
              rate: '1m/s',
              state: 1
            },
            {
              from: 'CDR_PA10',
              to: 'Greenplum',
              rate: '1m/s',
              state: 1
            }
          ]
        }
上一篇 下一篇

猜你喜欢

热点阅读