# (C) Datadog, Inc. 2019-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)

HOST_METRICS = {
    'boottime': 1555934503.0,
    'cpu': {'cpu_idle': 62.8, 'cpu_nice': 0.0, 'cpu_num': 4.0, 'cpu_system': 5.1, 'cpu_user': 32.0, 'cpu_wio': 0.0},
    'disk': {
        'disk_free': 124.35,
        'disk_total': 148.29,
        'read_bytes': 1594053632.0,
        'read_count': 42717.0,
        'read_time': 240986.0,
        'write_bytes': 117000843264.0,
        'write_count': 499318.0,
        'write_time': 5946304.0,
    },
    'load': {'load_fifteen': 0.99, 'load_five': 1.35, 'load_one': 0.57},
    'memory': {
        'mem_cached': 3554248.0,
        'mem_free': 11327848.0,
        'mem_shared': 0.0,
        'mem_total': 15399208.0,
        'swap_free': 0.0,
        'swap_total': 0.0,
    },
    'network': {
        'bytes_in': 683.2346950556641,
        'bytes_out': 12517.203580542699,
        'pkts_in': 8.499187630576825,
        'pkts_out': 10.498996484830196,
    },
    'process': {'proc_run': 0.0, 'proc_total': 128.0},
}

HOSTS_INFO = [
    {
        'href': 'localhost/api/v1/clusters/myCluster/hosts/my_host_1',
        'Hosts': {'cluster_name': 'myCluster', 'host_name': 'my_host_1'},
    },
    {
        'href': 'localhost/api/v1/clusters/myCluster/hosts/my_host_2',
        'Hosts': {'cluster_name': 'myCluster', 'host_name': 'my_host_2'},
        'metrics': HOST_METRICS,
    },
]

COMPONENT_METRICS = {
    'href': 'localhost/api/v1/clusters/LabCluster/services/HDFS/components?fields=metrics',
    'items': [
        {
            'href': 'localhost/api/v1/clusters/LabCluster/services/HDFS/components/DATANODE',
            'ServiceComponentInfo': {
                'cluster_name': 'LabCluster',
                'component_name': 'DATANODE',
                'service_name': 'HDFS',
            },
            'metrics': {
                'boottime': 1555934503.0,
                'boottime._avg': 1555934503.0,
                'boottime._max': 1555934503.0,
                'boottime._min': 1555934503.0,
                'boottime._rate': 0,
                'boottime._sum': 1555934503.0,
                'FSDatasetState': {
                    'org': {
                        'apache': {
                            'hadoop': {
                                'hdfs': {
                                    'server': {
                                        'datanode': {
                                            'fsdataset': {
                                                'impl': {
                                                    'FsDatasetImpl': {
                                                        'CacheCapacity': 0.0,
                                                        'CacheCapacity._avg': 0.0,
                                                        'CacheCapacity._max': 0.0,
                                                        'CacheCapacity._min': 0.0,
                                                        'CacheCapacity._rate': 0,
                                                        'CacheCapacity._sum': 0.0,
                                                        'CacheUsed': 0.0,
                                                        'CacheUsed._avg': 0.0,
                                                        'CacheUsed._max': 0.0,
                                                        'CacheUsed._min': 0.0,
                                                        'CacheUsed._rate': 0,
                                                        'CacheUsed._sum': 0.0,
                                                        'EstimatedCapacityLostTotal': 0.0,
                                                        'EstimatedCapacityLostTotal._avg': 0.0,
                                                        'EstimatedCapacityLostTotal._max': 0.0,
                                                        'EstimatedCapacityLostTotal._min': 0.0,
                                                        'EstimatedCapacityLostTotal._rate': 0,
                                                        'EstimatedCapacityLostTotal._sum': 0.0,
                                                        'LastVolumeFailureDate': 0.0,
                                                        'LastVolumeFailureDate._avg': 0.0,
                                                        'LastVolumeFailureDate._max': 0.0,
                                                        'LastVolumeFailureDate._min': 0.0,
                                                        'LastVolumeFailureDate._rate': 0,
                                                        'LastVolumeFailureDate._sum': 0.0,
                                                        'NumBlocksCached': 0.0,
                                                        'NumBlocksCached._avg': 0.0,
                                                        'NumBlocksCached._max': 0.0,
                                                        'NumBlocksCached._min': 0.0,
                                                        'NumBlocksCached._rate': 0,
                                                        'NumBlocksCached._sum': 0.0,
                                                        'NumBlocksFailedToCache': 0.0,
                                                        'NumBlocksFailedToCache._avg': 0.0,
                                                        'NumBlocksFailedToCache._max': 0.0,
                                                        'NumBlocksFailedToCache._min': 0.0,
                                                        'NumBlocksFailedToCache._rate': 0,
                                                        'NumBlocksFailedToCache._sum': 0.0,
                                                        'NumBlocksFailedToUnCache': 0.0,
                                                        'NumBlocksFailedToUnCache._avg': 0.0,
                                                        'NumBlocksFailedToUnCache._max': 0.0,
                                                        'NumBlocksFailedToUnCache._min': 0.0,
                                                        'NumBlocksFailedToUnCache._rate': 0,
                                                        'NumBlocksFailedToUnCache._sum': 0.0,
                                                        'Remaining': 120225924096.0,
                                                        'Remaining._avg': 120225924096.0,
                                                        'Remaining._max': 120225924096.0,
                                                        'Remaining._min': 120225924096.0,
                                                        'Remaining._rate': 0,
                                                        'Remaining._sum': 120225924096.0,
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                'cpu': {
                    'cpu_idle': 90.3,
                    'cpu_idle._avg': 90.3,
                    'cpu_idle._max': 90.3,
                    'cpu_idle._min': 90.3,
                    'cpu_idle._rate': 0,
                    'cpu_idle._sum': 90.3,
                    'cpu_nice': 0.0,
                    'cpu_nice._avg': 0.0,
                    'cpu_nice._max': 0.0,
                    'cpu_nice._min': 0.0,
                    'cpu_nice._rate': 0,
                    'cpu_nice._sum': 0.0,
                    'cpu_system': 1.6333333333333335,
                    'cpu_system._avg': 1.6333333333333335,
                    'cpu_system._max': 1.6333333333333335,
                    'cpu_system._min': 1.6333333333333335,
                    'cpu_system._rate': 0,
                    'cpu_system._sum': 1.6333333333333335,
                    'cpu_user': 8.033333333333333,
                    'cpu_user._avg': 8.033333333333333,
                    'cpu_user._max': 8.033333333333333,
                    'cpu_user._min': 8.033333333333333,
                    'cpu_user._rate': 0,
                    'cpu_user._sum': 8.033333333333333,
                    'cpu_wio': 0.0,
                    'cpu_wio._avg': 0.0,
                    'cpu_wio._max': 0.0,
                    'cpu_wio._min': 0.0,
                    'cpu_wio._rate': 0,
                    'cpu_wio._sum': 0.0,
                },
                'dfs': {
                    'datanode': {
                        'BlocksCached': 0.0,
                        'BlocksCached._avg': 0.0,
                        'BlocksCached._max': 0.0,
                        'BlocksCached._min': 0.0,
                        'BlocksCached._rate': 0,
                        'BlocksCached._sum': 0.0,
                        'BlocksUncached': 0.0,
                        'BlocksUncached._avg': 0.0,
                        'BlocksUncached._max': 0.0,
                        'BlocksUncached._min': 0.0,
                        'BlocksUncached._rate': 0,
                        'BlocksUncached._sum': 0.0,
                        'CacheReportsAvgTime': 0.0,
                        'CacheReportsAvgTime._avg': 0.0,
                        'CacheReportsAvgTime._max': 0.0,
                        'CacheReportsAvgTime._min': 0.0,
                        'CacheReportsAvgTime._rate': 0,
                        'CacheReportsAvgTime._sum': 0.0,
                        'CacheReportsNumOps': 0.0,
                        'CacheReportsNumOps._avg': 0.0,
                        'CacheReportsNumOps._max': 0.0,
                        'CacheReportsNumOps._min': 0.0,
                        'CacheReportsNumOps._rate': 0,
                        'CacheReportsNumOps._sum': 0.0,
                        'Capacity': 132840986624.0,
                        'Capacity._avg': 132840986624.0,
                        'Capacity._max': 132840986624.0,
                        'Capacity._min': 132840986624.0,
                        'Capacity._rate': 0,
                        'Capacity._sum': 132840986624.0,
                        'DatanodeNetworkErrors': 0.0,
                        'DatanodeNetworkErrors._avg': 0.0,
                        'DatanodeNetworkErrors._max': 0.0,
                        'DatanodeNetworkErrors._min': 0.0,
                        'DatanodeNetworkErrors._rate': 0,
                        'DatanodeNetworkErrors._sum': 0.0,
                        'DfsUsed': 567734272.0,
                        'DfsUsed._avg': 567734272.0,
                        'DfsUsed._max': 567734272.0,
                        'DfsUsed._min': 567734272.0,
                        'DfsUsed._rate': 0,
                        'DfsUsed._sum': 567734272.0,
                        'FlushNanosAvgTime': 0.0,
                        'FlushNanosAvgTime._avg': 0.0,
                        'FlushNanosAvgTime._max': 0.0,
                        'FlushNanosAvgTime._min': 0.0,
                        'FlushNanosAvgTime._rate': 0,
                        'FlushNanosAvgTime._sum': 0.0,
                        'FlushNanosNumOps': 0.0,
                        'FlushNanosNumOps._avg': 0.0,
                        'FlushNanosNumOps._max': 0.0,
                        'FlushNanosNumOps._min': 0.0,
                        'FlushNanosNumOps._rate': 0,
                        'FlushNanosNumOps._sum': 0.0,
                        'FsyncCount': 0.0,
                        'FsyncCount._avg': 0.0,
                        'FsyncCount._max': 0.0,
                        'FsyncCount._min': 0.0,
                        'FsyncCount._rate': 0,
                        'FsyncCount._sum': 0.0,
                        'FsyncNanosAvgTime': 0.0,
                        'FsyncNanosAvgTime._avg': 0.0,
                        'FsyncNanosAvgTime._max': 0.0,
                        'FsyncNanosAvgTime._min': 0.0,
                        'FsyncNanosAvgTime._rate': 0,
                        'FsyncNanosAvgTime._sum': 0.0,
                        'FsyncNanosNumOps': 0.0,
                        'FsyncNanosNumOps._avg': 0.0,
                        'FsyncNanosNumOps._max': 0.0,
                        'FsyncNanosNumOps._min': 0.0,
                        'FsyncNanosNumOps._rate': 0,
                        'FsyncNanosNumOps._sum': 0.0,
                        'IncrementalBlockReportsAvgTime': 0.0,
                        'IncrementalBlockReportsAvgTime._avg': 0.0,
                        'IncrementalBlockReportsAvgTime._max': 0.0,
                        'IncrementalBlockReportsAvgTime._min': 0.0,
                        'IncrementalBlockReportsAvgTime._rate': 0,
                        'IncrementalBlockReportsAvgTime._sum': 0.0,
                        'IncrementalBlockReportsNumOps': 0.0,
                        'IncrementalBlockReportsNumOps._avg': 0.0,
                        'IncrementalBlockReportsNumOps._max': 0.0,
                        'IncrementalBlockReportsNumOps._min': 0.0,
                        'IncrementalBlockReportsNumOps._rate': 0,
                        'IncrementalBlockReportsNumOps._sum': 0.0,
                        'NumFailedVolumes': 0.0,
                        'NumFailedVolumes._avg': 0.0,
                        'NumFailedVolumes._max': 0.0,
                        'NumFailedVolumes._min': 0.0,
                        'NumFailedVolumes._rate': 0,
                        'NumFailedVolumes._sum': 0.0,
                        'PacketAckRoundTripTimeNanosAvgTime': 0.0,
                        'PacketAckRoundTripTimeNanosAvgTime._avg': 0.0,
                        'PacketAckRoundTripTimeNanosAvgTime._max': 0.0,
                        'PacketAckRoundTripTimeNanosAvgTime._min': 0.0,
                        'PacketAckRoundTripTimeNanosAvgTime._rate': 0,
                        'PacketAckRoundTripTimeNanosAvgTime._sum': 0.0,
                        'PacketAckRoundTripTimeNanosNumOps': 0.0,
                        'PacketAckRoundTripTimeNanosNumOps._avg': 0.0,
                        'PacketAckRoundTripTimeNanosNumOps._max': 0.0,
                        'PacketAckRoundTripTimeNanosNumOps._min': 0.0,
                        'PacketAckRoundTripTimeNanosNumOps._rate': 0,
                        'PacketAckRoundTripTimeNanosNumOps._sum': 0.0,
                        'RamDiskBlocksDeletedBeforeLazyPersisted': 0.0,
                        'RamDiskBlocksDeletedBeforeLazyPersisted._avg': 0.0,
                        'RamDiskBlocksDeletedBeforeLazyPersisted._max': 0.0,
                        'RamDiskBlocksDeletedBeforeLazyPersisted._min': 0.0,
                        'RamDiskBlocksDeletedBeforeLazyPersisted._rate': 0,
                        'RamDiskBlocksDeletedBeforeLazyPersisted._sum': 0.0,
                        'RamDiskBlocksEvicted': 0.0,
                        'RamDiskBlocksEvicted._avg': 0.0,
                        'RamDiskBlocksEvicted._max': 0.0,
                        'RamDiskBlocksEvicted._min': 0.0,
                        'RamDiskBlocksEvicted._rate': 0,
                        'RamDiskBlocksEvicted._sum': 0.0,
                        'RamDiskBlocksEvictedWithoutRead': 0.0,
                        'RamDiskBlocksEvictedWithoutRead._avg': 0.0,
                        'RamDiskBlocksEvictedWithoutRead._max': 0.0,
                        'RamDiskBlocksEvictedWithoutRead._min': 0.0,
                        'RamDiskBlocksEvictedWithoutRead._rate': 0,
                        'RamDiskBlocksEvictedWithoutRead._sum': 0.0,
                        'RamDiskBlocksEvictionWindowMsAvgTime': 0.0,
                        'RamDiskBlocksEvictionWindowMsAvgTime._avg': 0.0,
                        'RamDiskBlocksEvictionWindowMsAvgTime._max': 0.0,
                        'RamDiskBlocksEvictionWindowMsAvgTime._min': 0.0,
                        'RamDiskBlocksEvictionWindowMsAvgTime._rate': 0,
                        'RamDiskBlocksEvictionWindowMsAvgTime._sum': 0.0,
                        'RamDiskBlocksEvictionWindowMsNumOps': 0.0,
                        'RamDiskBlocksEvictionWindowMsNumOps._avg': 0.0,
                        'RamDiskBlocksEvictionWindowMsNumOps._max': 0.0,
                        'RamDiskBlocksEvictionWindowMsNumOps._min': 0.0,
                        'RamDiskBlocksEvictionWindowMsNumOps._rate': 0,
                        'RamDiskBlocksEvictionWindowMsNumOps._sum': 0.0,
                        'RamDiskBlocksLazyPersistWindowMsAvgTime': 0.0,
                        'RamDiskBlocksLazyPersistWindowMsAvgTime._avg': 0.0,
                        'RamDiskBlocksLazyPersistWindowMsAvgTime._max': 0.0,
                        'RamDiskBlocksLazyPersistWindowMsAvgTime._min': 0.0,
                        'RamDiskBlocksLazyPersistWindowMsAvgTime._rate': 0,
                        'RamDiskBlocksLazyPersistWindowMsAvgTime._sum': 0.0,
                        'RamDiskBlocksLazyPersistWindowMsNumOps': 0.0,
                        'RamDiskBlocksLazyPersistWindowMsNumOps._avg': 0.0,
                        'RamDiskBlocksLazyPersistWindowMsNumOps._max': 0.0,
                        'RamDiskBlocksLazyPersistWindowMsNumOps._min': 0.0,
                        'RamDiskBlocksLazyPersistWindowMsNumOps._rate': 0,
                        'RamDiskBlocksLazyPersistWindowMsNumOps._sum': 0.0,
                        'RamDiskBlocksLazyPersisted': 0.0,
                        'RamDiskBlocksLazyPersisted._avg': 0.0,
                        'RamDiskBlocksLazyPersisted._max': 0.0,
                        'RamDiskBlocksLazyPersisted._min': 0.0,
                        'RamDiskBlocksLazyPersisted._rate': 0,
                        'RamDiskBlocksLazyPersisted._sum': 0.0,
                        'RamDiskBlocksReadHits': 0.0,
                        'RamDiskBlocksReadHits._avg': 0.0,
                        'RamDiskBlocksReadHits._max': 0.0,
                        'RamDiskBlocksReadHits._min': 0.0,
                        'RamDiskBlocksReadHits._rate': 0,
                        'RamDiskBlocksReadHits._sum': 0.0,
                        'RamDiskBlocksWrite': 0.0,
                        'RamDiskBlocksWrite._avg': 0.0,
                        'RamDiskBlocksWrite._max': 0.0,
                        'RamDiskBlocksWrite._min': 0.0,
                        'RamDiskBlocksWrite._rate': 0,
                        'RamDiskBlocksWrite._sum': 0.0,
                        'RamDiskBlocksWriteFallback': 0.0,
                        'RamDiskBlocksWriteFallback._avg': 0.0,
                        'RamDiskBlocksWriteFallback._max': 0.0,
                        'RamDiskBlocksWriteFallback._min': 0.0,
                        'RamDiskBlocksWriteFallback._rate': 0,
                        'RamDiskBlocksWriteFallback._sum': 0.0,
                        'RamDiskBytesLazyPersisted': 0.0,
                        'RamDiskBytesLazyPersisted._avg': 0.0,
                        'RamDiskBytesLazyPersisted._max': 0.0,
                        'RamDiskBytesLazyPersisted._min': 0.0,
                        'RamDiskBytesLazyPersisted._rate': 0,
                        'RamDiskBytesLazyPersisted._sum': 0.0,
                        'RamDiskBytesWrite': 0.0,
                        'RamDiskBytesWrite._avg': 0.0,
                        'RamDiskBytesWrite._max': 0.0,
                        'RamDiskBytesWrite._min': 0.0,
                        'RamDiskBytesWrite._rate': 0,
                        'RamDiskBytesWrite._sum': 0.0,
                        'RemoteBytesRead': 0.0,
                        'RemoteBytesRead._avg': 0.0,
                        'RemoteBytesRead._max': 0.0,
                        'RemoteBytesRead._min': 0.0,
                        'RemoteBytesRead._rate': 0,
                        'RemoteBytesRead._sum': 0.0,
                        'RemoteBytesWritten': 0.0,
                        'RemoteBytesWritten._avg': 0.0,
                        'RemoteBytesWritten._max': 0.0,
                        'RemoteBytesWritten._min': 0.0,
                        'RemoteBytesWritten._rate': 0,
                        'RemoteBytesWritten._sum': 0.0,
                        'SendDataPacketBlockedOnNetworkNanosAvgTime': 0.0,
                        'SendDataPacketBlockedOnNetworkNanosAvgTime._avg': 0.0,
                        'SendDataPacketBlockedOnNetworkNanosAvgTime._max': 0.0,
                        'SendDataPacketBlockedOnNetworkNanosAvgTime._min': 0.0,
                        'SendDataPacketBlockedOnNetworkNanosAvgTime._rate': 0,
                        'SendDataPacketBlockedOnNetworkNanosAvgTime._sum': 0.0,
                        'SendDataPacketBlockedOnNetworkNanosNumOps': 0.0,
                        'SendDataPacketBlockedOnNetworkNanosNumOps._avg': 0.0,
                        'SendDataPacketBlockedOnNetworkNanosNumOps._max': 0.0,
                        'SendDataPacketBlockedOnNetworkNanosNumOps._min': 0.0,
                        'SendDataPacketBlockedOnNetworkNanosNumOps._rate': 0,
                        'SendDataPacketBlockedOnNetworkNanosNumOps._sum': 0.0,
                        'SendDataPacketTransferNanosAvgTime': 0.0,
                        'SendDataPacketTransferNanosAvgTime._avg': 0.0,
                        'SendDataPacketTransferNanosAvgTime._max': 0.0,
                        'SendDataPacketTransferNanosAvgTime._min': 0.0,
                        'SendDataPacketTransferNanosAvgTime._rate': 0,
                        'SendDataPacketTransferNanosAvgTime._sum': 0.0,
                        'SendDataPacketTransferNanosNumOps': 0.0,
                        'SendDataPacketTransferNanosNumOps._avg': 0.0,
                        'SendDataPacketTransferNanosNumOps._max': 0.0,
                        'SendDataPacketTransferNanosNumOps._min': 0.0,
                        'SendDataPacketTransferNanosNumOps._rate': 0,
                        'SendDataPacketTransferNanosNumOps._sum': 0.0,
                        'TotalReadTime': 0.0,
                        'TotalReadTime._avg': 0.0,
                        'TotalReadTime._max': 0.0,
                        'TotalReadTime._min': 0.0,
                        'TotalReadTime._rate': 0,
                        'TotalReadTime._sum': 0.0,
                        'TotalWriteTime': 0.0,
                        'TotalWriteTime._avg': 0.0,
                        'TotalWriteTime._max': 0.0,
                        'TotalWriteTime._min': 0.0,
                        'TotalWriteTime._rate': 0,
                        'TotalWriteTime._sum': 0.0,
                        'VolumeFailures': 0.0,
                        'VolumeFailures._avg': 0.0,
                        'VolumeFailures._max': 0.0,
                        'VolumeFailures._min': 0.0,
                        'VolumeFailures._rate': 0,
                        'VolumeFailures._sum': 0.0,
                        'blockChecksumOp_avg_time': 0.0,
                        'blockChecksumOp_avg_time._avg': 0.0,
                        'blockChecksumOp_avg_time._max': 0.0,
                        'blockChecksumOp_avg_time._min': 0.0,
                        'blockChecksumOp_avg_time._rate': 0,
                        'blockChecksumOp_avg_time._sum': 0.0,
                        'blockChecksumOp_num_ops': 0.0,
                        'blockChecksumOp_num_ops._avg': 0.0,
                        'blockChecksumOp_num_ops._max': 0.0,
                        'blockChecksumOp_num_ops._min': 0.0,
                        'blockChecksumOp_num_ops._rate': 0,
                        'blockChecksumOp_num_ops._sum': 0.0,
                        'blockReports_avg_time': 0.0,
                        'blockReports_avg_time._avg': 0.0,
                        'blockReports_avg_time._max': 0.0,
                        'blockReports_avg_time._min': 0.0,
                        'blockReports_avg_time._rate': 0,
                        'blockReports_avg_time._sum': 0.0,
                        'blockReports_num_ops': 0.0,
                        'blockReports_num_ops._avg': 0.0,
                        'blockReports_num_ops._max': 0.0,
                        'blockReports_num_ops._min': 0.0,
                        'blockReports_num_ops._rate': 0,
                        'blockReports_num_ops._sum': 0.0,
                        'block_verification_failures': 0.0,
                        'block_verification_failures._avg': 0.0,
                        'block_verification_failures._max': 0.0,
                        'block_verification_failures._min': 0.0,
                        'block_verification_failures._rate': 0,
                        'block_verification_failures._sum': 0.0,
                        'blocks_get_local_pathinfo': 0.0,
                        'blocks_get_local_pathinfo._avg': 0.0,
                        'blocks_get_local_pathinfo._max': 0.0,
                        'blocks_get_local_pathinfo._min': 0.0,
                        'blocks_get_local_pathinfo._rate': 0,
                        'blocks_get_local_pathinfo._sum': 0.0,
                        'blocks_read': 0.0,
                        'blocks_read._avg': 0.0,
                        'blocks_read._max': 0.0,
                        'blocks_read._min': 0.0,
                        'blocks_read._rate': 0,
                        'blocks_read._sum': 0.0,
                        'blocks_removed': 0.0,
                        'blocks_removed._avg': 0.0,
                        'blocks_removed._max': 0.0,
                        'blocks_removed._min': 0.0,
                        'blocks_removed._rate': 0,
                        'blocks_removed._sum': 0.0,
                        'blocks_replicated': 0.0,
                        'blocks_replicated._avg': 0.0,
                        'blocks_replicated._max': 0.0,
                        'blocks_replicated._min': 0.0,
                        'blocks_replicated._rate': 0,
                        'blocks_replicated._sum': 0.0,
                        'blocks_verified': 0.0,
                        'blocks_verified._avg': 0.0,
                        'blocks_verified._max': 0.0,
                        'blocks_verified._min': 0.0,
                        'blocks_verified._rate': 0,
                        'blocks_verified._sum': 0.0,
                        'blocks_written': 0.0,
                        'blocks_written._avg': 0.0,
                        'blocks_written._max': 0.0,
                        'blocks_written._min': 0.0,
                        'blocks_written._rate': 0,
                        'blocks_written._sum': 0.0,
                        'bytes_read': 0.0,
                        'bytes_read._avg': 0.0,
                        'bytes_read._max': 0.0,
                        'bytes_read._min': 0.0,
                        'bytes_read._rate': 0,
                        'bytes_read._sum': 0.0,
                        'bytes_written': 0.0,
                        'bytes_written._avg': 0.0,
                        'bytes_written._max': 0.0,
                        'bytes_written._min': 0.0,
                        'bytes_written._rate': 0,
                        'bytes_written._sum': 0.0,
                        'copyBlockOp_avg_time': 0.0,
                        'copyBlockOp_avg_time._avg': 0.0,
                        'copyBlockOp_avg_time._max': 0.0,
                        'copyBlockOp_avg_time._min': 0.0,
                        'copyBlockOp_avg_time._rate': 0,
                        'copyBlockOp_avg_time._sum': 0.0,
                        'copyBlockOp_num_ops': 0.0,
                        'copyBlockOp_num_ops._avg': 0.0,
                        'copyBlockOp_num_ops._max': 0.0,
                        'copyBlockOp_num_ops._min': 0.0,
                        'copyBlockOp_num_ops._rate': 0,
                        'copyBlockOp_num_ops._sum': 0.0,
                        'heartBeats_avg_time': 0.0,
                        'heartBeats_avg_time._avg': 0.0,
                        'heartBeats_avg_time._max': 0.0,
                        'heartBeats_avg_time._min': 0.0,
                        'heartBeats_avg_time._rate': 0,
                        'heartBeats_avg_time._sum': 0.0,
                        'heartBeats_num_ops': 0.0,
                        'heartBeats_num_ops._avg': 0.0,
                        'heartBeats_num_ops._max': 0.0,
                        'heartBeats_num_ops._min': 0.0,
                        'heartBeats_num_ops._rate': 0,
                        'heartBeats_num_ops._sum': 0.0,
                        'readBlockOp_avg_time': 0.0,
                        'readBlockOp_avg_time._avg': 0.0,
                        'readBlockOp_avg_time._max': 0.0,
                        'readBlockOp_avg_time._min': 0.0,
                        'readBlockOp_avg_time._rate': 0,
                        'readBlockOp_avg_time._sum': 0.0,
                        'readBlockOp_num_ops': 0.0,
                        'readBlockOp_num_ops._avg': 0.0,
                        'readBlockOp_num_ops._max': 0.0,
                        'readBlockOp_num_ops._min': 0.0,
                        'readBlockOp_num_ops._rate': 0,
                        'readBlockOp_num_ops._sum': 0.0,
                        'reads_from_local_client': 0.0,
                        'reads_from_local_client._avg': 0.0,
                        'reads_from_local_client._max': 0.0,
                        'reads_from_local_client._min': 0.0,
                        'reads_from_local_client._rate': 0,
                        'reads_from_local_client._sum': 0.0,
                        'reads_from_remote_client': 0.0,
                        'reads_from_remote_client._avg': 0.0,
                        'reads_from_remote_client._max': 0.0,
                        'reads_from_remote_client._min': 0.0,
                        'reads_from_remote_client._rate': 0,
                        'reads_from_remote_client._sum': 0.0,
                        'replaceBlockOp_avg_time': 0.0,
                        'replaceBlockOp_avg_time._avg': 0.0,
                        'replaceBlockOp_avg_time._max': 0.0,
                        'replaceBlockOp_avg_time._min': 0.0,
                        'replaceBlockOp_avg_time._rate': 0,
                        'replaceBlockOp_avg_time._sum': 0.0,
                        'replaceBlockOp_num_ops': 0.0,
                        'replaceBlockOp_num_ops._avg': 0.0,
                        'replaceBlockOp_num_ops._max': 0.0,
                        'replaceBlockOp_num_ops._min': 0.0,
                        'replaceBlockOp_num_ops._rate': 0,
                        'replaceBlockOp_num_ops._sum': 0.0,
                        'writeBlockOp_avg_time': 0.0,
                        'writeBlockOp_avg_time._avg': 0.0,
                        'writeBlockOp_avg_time._max': 0.0,
                        'writeBlockOp_avg_time._min': 0.0,
                        'writeBlockOp_avg_time._rate': 0,
                        'writeBlockOp_avg_time._sum': 0.0,
                        'writeBlockOp_num_ops': 0.0,
                        'writeBlockOp_num_ops._avg': 0.0,
                        'writeBlockOp_num_ops._max': 0.0,
                        'writeBlockOp_num_ops._min': 0.0,
                        'writeBlockOp_num_ops._rate': 0,
                        'writeBlockOp_num_ops._sum': 0.0,
                        'writes_from_local_client': 0.0,
                        'writes_from_local_client._avg': 0.0,
                        'writes_from_local_client._max': 0.0,
                        'writes_from_local_client._min': 0.0,
                        'writes_from_local_client._rate': 0,
                        'writes_from_local_client._sum': 0.0,
                        'writes_from_remote_client': 0.0,
                        'writes_from_remote_client._avg': 0.0,
                        'writes_from_remote_client._max': 0.0,
                        'writes_from_remote_client._min': 0.0,
                        'writes_from_remote_client._rate': 0,
                        'writes_from_remote_client._sum': 0.0,
                    }
                },
                'disk': {
                    'disk_free': 124.35666666666667,
                    'disk_free._avg': 124.35666666666667,
                    'disk_free._max': 124.35666666666667,
                    'disk_free._min': 124.35666666666667,
                    'disk_free._rate': 0,
                    'disk_free._sum': 124.35666666666667,
                    'disk_total': 148.29,
                    'disk_total._avg': 148.29,
                    'disk_total._max': 148.29,
                    'disk_total._min': 148.29,
                    'disk_total._rate': 0,
                    'disk_total._sum': 148.29,
                    'read_bytes': 1594053632.0,
                    'read_bytes._avg': 1594053632.0,
                    'read_bytes._max': 1594053632.0,
                    'read_bytes._min': 1594053632.0,
                    'read_bytes._rate': 0,
                    'read_bytes._sum': 1594053632.0,
                    'read_count': 42717.0,
                    'read_count._avg': 42717.0,
                    'read_count._max': 42717.0,
                    'read_count._min': 42717.0,
                    'read_count._rate': 0,
                    'read_count._sum': 42717.0,
                    'read_time': 240986.0,
                    'read_time._avg': 240986.0,
                    'read_time._max': 240986.0,
                    'read_time._min': 240986.0,
                    'read_time._rate': 0,
                    'read_time._sum': 240986.0,
                    'write_bytes': 117028009301.33333,
                    'write_bytes._avg': 117028009301.33333,
                    'write_bytes._max': 117028009301.33333,
                    'write_bytes._min': 117028009301.33333,
                    'write_bytes._rate': 0,
                    'write_bytes._sum': 117028009301.33333,
                    'write_count': 502044.6666666667,
                    'write_count._avg': 502044.6666666667,
                    'write_count._max': 502044.6666666667,
                    'write_count._min': 502044.6666666667,
                    'write_count._rate': 0,
                    'write_count._sum': 502044.6666666667,
                    'write_time': 5964524.333333333,
                    'write_time._avg': 5964524.333333333,
                    'write_time._max': 5964524.333333333,
                    'write_time._min': 5964524.333333333,
                    'write_time._rate': 0,
                    'write_time._sum': 5964524.333333333,
                },
                'jvm': {
                    'gcCount': 4.0,
                    'gcCount._avg': 4.0,
                    'gcCount._max': 4.0,
                    'gcCount._min': 4.0,
                    'gcCount._rate': 0,
                    'gcCount._sum': 4.0,
                    'logError': 4.0,
                    'logError._avg': 4.0,
                    'logError._max': 4.0,
                    'logError._min': 4.0,
                    'logError._rate': 0,
                    'logError._sum': 4.0,
                    'logFatal': 0.0,
                    'logFatal._avg': 0.0,
                    'logFatal._max': 0.0,
                    'logFatal._min': 0.0,
                    'logFatal._rate': 0,
                    'logFatal._sum': 0.0,
                    'logInfo': 1678.0,
                    'logInfo._avg': 1678.0,
                    'logInfo._max': 1678.0,
                    'logInfo._min': 1678.0,
                    'logInfo._rate': 0,
                    'logInfo._sum': 1678.0,
                    'logWarn': 40.0,
                    'logWarn._avg': 40.0,
                    'logWarn._max': 40.0,
                    'logWarn._min': 40.0,
                    'logWarn._rate': 0,
                    'logWarn._sum': 40.0,
                    'memHeapCommittedM': 1004.0,
                    'memHeapCommittedM._avg': 1004.0,
                    'memHeapCommittedM._max': 1004.0,
                    'memHeapCommittedM._min': 1004.0,
                    'memHeapCommittedM._rate': 0,
                    'memHeapCommittedM._sum': 1004.0,
                    'memHeapUsedM': 63.639567057291664,
                    'memHeapUsedM._avg': 63.639567057291664,
                    'memHeapUsedM._max': 63.639567057291664,
                    'memHeapUsedM._min': 63.639567057291664,
                    'memHeapUsedM._rate': 0,
                    'memHeapUsedM._sum': 63.639567057291664,
                    'memNonHeapCommittedM': 49.6015625,
                    'memNonHeapCommittedM._avg': 49.6015625,
                    'memNonHeapCommittedM._max': 49.6015625,
                    'memNonHeapCommittedM._min': 49.6015625,
                    'memNonHeapCommittedM._rate': 0,
                    'memNonHeapCommittedM._sum': 49.6015625,
                    'memNonHeapUsedM': 48.76771799723307,
                    'memNonHeapUsedM._avg': 48.76771799723307,
                    'memNonHeapUsedM._max': 48.76771799723307,
                    'memNonHeapUsedM._min': 48.76771799723307,
                    'memNonHeapUsedM._rate': 0,
                    'memNonHeapUsedM._sum': 48.76771799723307,
                    'threadsBlocked': 0.0,
                    'threadsBlocked._avg': 0.0,
                    'threadsBlocked._max': 0.0,
                    'threadsBlocked._min': 0.0,
                    'threadsBlocked._rate': 0,
                    'threadsBlocked._sum': 0.0,
                    'threadsNew': 0.0,
                    'threadsNew._avg': 0.0,
                    'threadsNew._max': 0.0,
                    'threadsNew._min': 0.0,
                    'threadsNew._rate': 0,
                    'threadsNew._sum': 0.0,
                    'threadsRunnable': 19.0,
                    'threadsRunnable._avg': 19.0,
                    'threadsRunnable._max': 19.0,
                    'threadsRunnable._min': 19.0,
                    'threadsRunnable._rate': 0,
                    'threadsRunnable._sum': 19.0,
                    'threadsTerminated': 0.0,
                    'threadsTerminated._avg': 0.0,
                    'threadsTerminated._max': 0.0,
                    'threadsTerminated._min': 0.0,
                    'threadsTerminated._rate': 0,
                    'threadsTerminated._sum': 0.0,
                    'threadsTimedWaiting': 20.0,
                    'threadsTimedWaiting._avg': 20.0,
                    'threadsTimedWaiting._max': 20.0,
                    'threadsTimedWaiting._min': 20.0,
                    'threadsTimedWaiting._rate': 0,
                    'threadsTimedWaiting._sum': 20.0,
                    'threadsWaiting': 6.0,
                    'threadsWaiting._avg': 6.0,
                    'threadsWaiting._max': 6.0,
                    'threadsWaiting._min': 6.0,
                    'threadsWaiting._rate': 0,
                    'threadsWaiting._sum': 6.0,
                    'JvmMetrics': {
                        'GcCountConcurrentMarkSweep': 1.0,
                        'GcCountConcurrentMarkSweep._avg': 1.0,
                        'GcCountConcurrentMarkSweep._max': 1.0,
                        'GcCountConcurrentMarkSweep._min': 1.0,
                        'GcCountConcurrentMarkSweep._rate': 0,
                        'GcCountConcurrentMarkSweep._sum': 1.0,
                        'GcCountParNew': 3.0,
                        'GcCountParNew._avg': 3.0,
                        'GcCountParNew._max': 3.0,
                        'GcCountParNew._min': 3.0,
                        'GcCountParNew._rate': 0,
                        'GcCountParNew._sum': 3.0,
                        'GcNumInfoThresholdExceeded': 0.0,
                        'GcNumInfoThresholdExceeded._avg': 0.0,
                        'GcNumInfoThresholdExceeded._max': 0.0,
                        'GcNumInfoThresholdExceeded._min': 0.0,
                        'GcNumInfoThresholdExceeded._rate': 0,
                        'GcNumInfoThresholdExceeded._sum': 0.0,
                        'GcNumWarnThresholdExceeded': 0.0,
                        'GcNumWarnThresholdExceeded._avg': 0.0,
                        'GcNumWarnThresholdExceeded._max': 0.0,
                        'GcNumWarnThresholdExceeded._min': 0.0,
                        'GcNumWarnThresholdExceeded._rate': 0,
                        'GcNumWarnThresholdExceeded._sum': 0.0,
                        'GcTimeMillisConcurrentMarkSweep': 29.0,
                        'GcTimeMillisConcurrentMarkSweep._avg': 29.0,
                        'GcTimeMillisConcurrentMarkSweep._max': 29.0,
                        'GcTimeMillisConcurrentMarkSweep._min': 29.0,
                        'GcTimeMillisConcurrentMarkSweep._rate': 0,
                        'GcTimeMillisConcurrentMarkSweep._sum': 29.0,
                        'GcTimeMillisParNew': 125.0,
                        'GcTimeMillisParNew._avg': 125.0,
                        'GcTimeMillisParNew._max': 125.0,
                        'GcTimeMillisParNew._min': 125.0,
                        'GcTimeMillisParNew._rate': 0,
                        'GcTimeMillisParNew._sum': 125.0,
                        'GcTotalExtraSleepTime': 412.0,
                        'GcTotalExtraSleepTime._avg': 412.0,
                        'GcTotalExtraSleepTime._max': 412.0,
                        'GcTotalExtraSleepTime._min': 412.0,
                        'GcTotalExtraSleepTime._rate': 0,
                        'GcTotalExtraSleepTime._sum': 412.0,
                        'MemHeapMaxM': 1004.0,
                        'MemHeapMaxM._avg': 1004.0,
                        'MemHeapMaxM._max': 1004.0,
                        'MemHeapMaxM._min': 1004.0,
                        'MemHeapMaxM._rate': 0,
                        'MemHeapMaxM._sum': 1004.0,
                        'MemMaxM': 1004.0,
                        'MemMaxM._avg': 1004.0,
                        'MemMaxM._max': 1004.0,
                        'MemMaxM._min': 1004.0,
                        'MemMaxM._rate': 0,
                        'MemMaxM._sum': 1004.0,
                        'MemNonHeapMaxM': 0.0,
                        'MemNonHeapMaxM._avg': 0.0,
                        'MemNonHeapMaxM._max': 0.0,
                        'MemNonHeapMaxM._min': 0.0,
                        'MemNonHeapMaxM._rate': 0,
                        'MemNonHeapMaxM._sum': 0.0,
                    },
                },
                'load': {
                    'load_fifteen': 0.56,
                    'load_fifteen._avg': 0.56,
                    'load_fifteen._max': 0.56,
                    'load_fifteen._min': 0.56,
                    'load_fifteen._rate': 0,
                    'load_fifteen._sum': 0.56,
                    'load_five': 0.4633333333333333,
                    'load_five._avg': 0.4633333333333333,
                    'load_five._max': 0.4633333333333333,
                    'load_five._min': 0.4633333333333333,
                    'load_five._rate': 0,
                    'load_five._sum': 0.4633333333333333,
                    'load_one': 0.48666666666666664,
                    'load_one._avg': 0.48666666666666664,
                    'load_one._max': 0.48666666666666664,
                    'load_one._min': 0.48666666666666664,
                    'load_one._rate': 0,
                    'load_one._sum': 0.48666666666666664,
                },
                'memory': {
                    'mem_cached': 3552196.0,
                    'mem_cached._avg': 3552196.0,
                    'mem_cached._max': 3552196.0,
                    'mem_cached._min': 3552196.0,
                    'mem_cached._rate': 0,
                    'mem_cached._sum': 3552196.0,
                    'mem_free': 11329698.666666666,
                    'mem_free._avg': 11329698.666666666,
                    'mem_free._max': 11329698.666666666,
                    'mem_free._min': 11329698.666666666,
                    'mem_free._rate': 0,
                    'mem_free._sum': 11329698.666666666,
                    'mem_shared': 0.0,
                    'mem_shared._avg': 0.0,
                    'mem_shared._max': 0.0,
                    'mem_shared._min': 0.0,
                    'mem_shared._rate': 0,
                    'mem_shared._sum': 0.0,
                    'mem_total': 15399208.0,
                    'mem_total._avg': 15399208.0,
                    'mem_total._max': 15399208.0,
                    'mem_total._min': 15399208.0,
                    'mem_total._rate': 0,
                    'mem_total._sum': 15399208.0,
                    'swap_free': 0.0,
                    'swap_free._avg': 0.0,
                    'swap_free._max': 0.0,
                    'swap_free._min': 0.0,
                    'swap_free._rate': 0,
                    'swap_free._sum': 0.0,
                    'swap_total': 0.0,
                    'swap_total._avg': 0.0,
                    'swap_total._max': 0.0,
                    'swap_total._min': 0.0,
                    'swap_total._rate': 0,
                    'swap_total._sum': 0.0,
                },
                'metricssystem': {
                    'MetricsSystem': {
                        'DroppedPubAll': 0.0,
                        'DroppedPubAll._avg': 0.0,
                        'DroppedPubAll._max': 0.0,
                        'DroppedPubAll._min': 0.0,
                        'DroppedPubAll._rate': 0,
                        'DroppedPubAll._sum': 0.0,
                        'NumActiveSinks': 1.0,
                        'NumActiveSinks._avg': 1.0,
                        'NumActiveSinks._max': 1.0,
                        'NumActiveSinks._min': 1.0,
                        'NumActiveSinks._rate': 0,
                        'NumActiveSinks._sum': 1.0,
                        'NumActiveSources': 5.0,
                        'NumActiveSources._avg': 5.0,
                        'NumActiveSources._max': 5.0,
                        'NumActiveSources._min': 5.0,
                        'NumActiveSources._rate': 0,
                        'NumActiveSources._sum': 5.0,
                        'NumAllSinks': 0.0,
                        'NumAllSinks._avg': 0.0,
                        'NumAllSinks._max': 0.0,
                        'NumAllSinks._min': 0.0,
                        'NumAllSinks._rate': 0,
                        'NumAllSinks._sum': 0.0,
                        'NumAllSources': 5.0,
                        'NumAllSources._avg': 5.0,
                        'NumAllSources._max': 5.0,
                        'NumAllSources._min': 5.0,
                        'NumAllSources._rate': 0,
                        'NumAllSources._sum': 5.0,
                        'PublishAvgTime': 0.0,
                        'PublishAvgTime._avg': 0.0,
                        'PublishAvgTime._max': 0.0,
                        'PublishAvgTime._min': 0.0,
                        'PublishAvgTime._rate': 0,
                        'PublishAvgTime._sum': 0.0,
                        'PublishNumOps': 178.0,
                        'PublishNumOps._avg': 178.0,
                        'PublishNumOps._max': 178.0,
                        'PublishNumOps._min': 178.0,
                        'PublishNumOps._rate': 0,
                        'PublishNumOps._sum': 178.0,
                        'Sink_timelineAvgTime': 1.0,
                        'Sink_timelineAvgTime._avg': 1.0,
                        'Sink_timelineAvgTime._max': 1.0,
                        'Sink_timelineAvgTime._min': 1.0,
                        'Sink_timelineAvgTime._rate': 0,
                        'Sink_timelineAvgTime._sum': 1.0,
                        'Sink_timelineDropped': 0.0,
                        'Sink_timelineDropped._avg': 0.0,
                        'Sink_timelineDropped._max': 0.0,
                        'Sink_timelineDropped._min': 0.0,
                        'Sink_timelineDropped._rate': 0,
                        'Sink_timelineDropped._sum': 0.0,
                        'Sink_timelineNumOps': 178.0,
                        'Sink_timelineNumOps._avg': 178.0,
                        'Sink_timelineNumOps._max': 178.0,
                        'Sink_timelineNumOps._min': 178.0,
                        'Sink_timelineNumOps._rate': 0,
                        'Sink_timelineNumOps._sum': 178.0,
                        'Sink_timelineQsize': 0.0,
                        'Sink_timelineQsize._avg': 0.0,
                        'Sink_timelineQsize._max': 0.0,
                        'Sink_timelineQsize._min': 0.0,
                        'Sink_timelineQsize._rate': 0,
                        'Sink_timelineQsize._sum': 0.0,
                        'SnapshotAvgTime': 0.16666666666666666,
                        'SnapshotAvgTime._avg': 0.16666666666666666,
                        'SnapshotAvgTime._max': 0.16666666666666666,
                        'SnapshotAvgTime._min': 0.16666666666666666,
                        'SnapshotAvgTime._rate': 0,
                        'SnapshotAvgTime._sum': 0.16666666666666666,
                        'SnapshotNumOps': 1073.0,
                        'SnapshotNumOps._avg': 1073.0,
                        'SnapshotNumOps._max': 1073.0,
                        'SnapshotNumOps._min': 1073.0,
                        'SnapshotNumOps._rate': 0,
                        'SnapshotNumOps._sum': 1073.0,
                    }
                },
                'network': {
                    'bytes_in': 624.3955870325987,
                    'bytes_in._avg': 624.3955870325987,
                    'bytes_in._max': 624.3955870325987,
                    'bytes_in._min': 624.3955870325987,
                    'bytes_in._rate': 0,
                    'bytes_in._sum': 624.3955870325987,
                    'bytes_out': 2171.1540593902373,
                    'bytes_out._avg': 2171.1540593902373,
                    'bytes_out._max': 2171.1540593902373,
                    'bytes_out._min': 2171.1540593902373,
                    'bytes_out._rate': 0,
                    'bytes_out._sum': 2171.1540593902373,
                    'pkts_in': 6.066296579623007,
                    'pkts_in._avg': 6.066296579623007,
                    'pkts_in._max': 6.066296579623007,
                    'pkts_in._min': 6.066296579623007,
                    'pkts_in._rate': 0,
                    'pkts_in._sum': 6.066296579623007,
                    'pkts_out': 7.599538616787268,
                    'pkts_out._avg': 7.599538616787268,
                    'pkts_out._max': 7.599538616787268,
                    'pkts_out._min': 7.599538616787268,
                    'pkts_out._rate': 0,
                    'pkts_out._sum': 7.599538616787268,
                },
                'process': {
                    'proc_run': 1.0,
                    'proc_run._avg': 1.0,
                    'proc_run._max': 1.0,
                    'proc_run._min': 1.0,
                    'proc_run._rate': 0,
                    'proc_run._sum': 1.0,
                    'proc_total': 124.33333333333333,
                    'proc_total._avg': 124.33333333333333,
                    'proc_total._max': 124.33333333333333,
                    'proc_total._min': 124.33333333333333,
                    'proc_total._rate': 0,
                    'proc_total._sum': 124.33333333333333,
                },
                'rpc': {
                    'NumOpenConnections': 0.0,
                    'NumOpenConnections._avg': 0.0,
                    'NumOpenConnections._max': 0.0,
                    'NumOpenConnections._min': 0.0,
                    'NumOpenConnections._rate': 0,
                    'NumOpenConnections._sum': 0.0,
                    'ReceivedBytes': 0.0,
                    'ReceivedBytes._avg': 0.0,
                    'ReceivedBytes._max': 0.0,
                    'ReceivedBytes._min': 0.0,
                    'ReceivedBytes._rate': 0,
                    'ReceivedBytes._sum': 0.0,
                    'RpcProcessingTime_avg_time': 0.0,
                    'RpcProcessingTime_avg_time._avg': 0.0,
                    'RpcProcessingTime_avg_time._max': 0.0,
                    'RpcProcessingTime_avg_time._min': 0.0,
                    'RpcProcessingTime_avg_time._rate': 0,
                    'RpcProcessingTime_avg_time._sum': 0.0,
                    'RpcProcessingTime_num_ops': 0.0,
                    'RpcProcessingTime_num_ops._avg': 0.0,
                    'RpcProcessingTime_num_ops._max': 0.0,
                    'RpcProcessingTime_num_ops._min': 0.0,
                    'RpcProcessingTime_num_ops._rate': 0,
                    'RpcProcessingTime_num_ops._sum': 0.0,
                    'RpcQueueTime_avg_time': 0.0,
                    'RpcQueueTime_avg_time._avg': 0.0,
                    'RpcQueueTime_avg_time._max': 0.0,
                    'RpcQueueTime_avg_time._min': 0.0,
                    'RpcQueueTime_avg_time._rate': 0,
                    'RpcQueueTime_avg_time._sum': 0.0,
                    'RpcQueueTime_num_ops': 0.0,
                    'RpcQueueTime_num_ops._avg': 0.0,
                    'RpcQueueTime_num_ops._max': 0.0,
                    'RpcQueueTime_num_ops._min': 0.0,
                    'RpcQueueTime_num_ops._rate': 0,
                    'RpcQueueTime_num_ops._sum': 0.0,
                    'SentBytes': 0.0,
                    'SentBytes._avg': 0.0,
                    'SentBytes._max': 0.0,
                    'SentBytes._min': 0.0,
                    'SentBytes._rate': 0,
                    'SentBytes._sum': 0.0,
                    'callQueueLen': 0.0,
                    'callQueueLen._avg': 0.0,
                    'callQueueLen._max': 0.0,
                    'callQueueLen._min': 0.0,
                    'callQueueLen._rate': 0,
                    'callQueueLen._sum': 0.0,
                    'rpcAuthenticationFailures': 0.0,
                    'rpcAuthenticationFailures._avg': 0.0,
                    'rpcAuthenticationFailures._max': 0.0,
                    'rpcAuthenticationFailures._min': 0.0,
                    'rpcAuthenticationFailures._rate': 0,
                    'rpcAuthenticationFailures._sum': 0.0,
                    'rpcAuthenticationSuccesses': 0.0,
                    'rpcAuthenticationSuccesses._avg': 0.0,
                    'rpcAuthenticationSuccesses._max': 0.0,
                    'rpcAuthenticationSuccesses._min': 0.0,
                    'rpcAuthenticationSuccesses._rate': 0,
                    'rpcAuthenticationSuccesses._sum': 0.0,
                    'rpcAuthorizationFailures': 0.0,
                    'rpcAuthorizationFailures._avg': 0.0,
                    'rpcAuthorizationFailures._max': 0.0,
                    'rpcAuthorizationFailures._min': 0.0,
                    'rpcAuthorizationFailures._rate': 0,
                    'rpcAuthorizationFailures._sum': 0.0,
                    'rpcAuthorizationSuccesses': 0.0,
                    'rpcAuthorizationSuccesses._avg': 0.0,
                    'rpcAuthorizationSuccesses._max': 0.0,
                    'rpcAuthorizationSuccesses._min': 0.0,
                    'rpcAuthorizationSuccesses._rate': 0,
                    'rpcAuthorizationSuccesses._sum': 0.0,
                },
                'ugi': {
                    'loginFailure_avg_time': 0.0,
                    'loginFailure_avg_time._avg': 0.0,
                    'loginFailure_avg_time._max': 0.0,
                    'loginFailure_avg_time._min': 0.0,
                    'loginFailure_avg_time._rate': 0,
                    'loginFailure_avg_time._sum': 0.0,
                    'loginFailure_num_ops': 0.0,
                    'loginFailure_num_ops._avg': 0.0,
                    'loginFailure_num_ops._max': 0.0,
                    'loginFailure_num_ops._min': 0.0,
                    'loginFailure_num_ops._rate': 0,
                    'loginFailure_num_ops._sum': 0.0,
                    'loginSuccess_avg_time': 3.0,
                    'loginSuccess_avg_time._avg': 3.0,
                    'loginSuccess_avg_time._max': 3.0,
                    'loginSuccess_avg_time._min': 3.0,
                    'loginSuccess_avg_time._rate': 0,
                    'loginSuccess_avg_time._sum': 3.0,
                    'loginSuccess_num_ops': 1.0,
                    'loginSuccess_num_ops._avg': 1.0,
                    'loginSuccess_num_ops._max': 1.0,
                    'loginSuccess_num_ops._min': 1.0,
                    'loginSuccess_num_ops._rate': 0,
                    'loginSuccess_num_ops._sum': 1.0,
                    'UgiMetrics': {
                        'GetGroupsAvgTime': 0.0,
                        'GetGroupsAvgTime._avg': 0.0,
                        'GetGroupsAvgTime._max': 0.0,
                        'GetGroupsAvgTime._min': 0.0,
                        'GetGroupsAvgTime._rate': 0,
                        'GetGroupsAvgTime._sum': 0.0,
                        'GetGroupsNumOps': 0.0,
                        'GetGroupsNumOps._avg': 0.0,
                        'GetGroupsNumOps._max': 0.0,
                        'GetGroupsNumOps._min': 0.0,
                        'GetGroupsNumOps._rate': 0,
                        'GetGroupsNumOps._sum': 0.0,
                    },
                },
            },
        },
        {
            'href': 'localhost/api/v1/clusters/LabCluster/services/HDFS/components/HDFS_CLIENT',
            'ServiceComponentInfo': {
                'cluster_name': 'LabCluster',
                'component_name': 'HDFS_CLIENT',
                'service_name': 'HDFS',
            },
        },
        {
            'href': 'localhost/api/v1/clusters/LabCluster/services/HDFS/components/JOURNALNODE',
            'ServiceComponentInfo': {
                'cluster_name': 'LabCluster',
                'component_name': 'JOURNALNODE',
                'service_name': 'HDFS',
            },
            'metrics': {
                'boottime': 1555934503.0,
                'boottime._avg': 1555934503.0,
                'boottime._max': 1555934503.0,
                'boottime._min': 1555934503.0,
                'boottime._rate': 0,
                'boottime._sum': 1555934503.0,
                'cpu': {
                    'cpu_idle': 90.3,
                    'cpu_idle._avg': 90.3,
                    'cpu_idle._max': 90.3,
                    'cpu_idle._min': 90.3,
                    'cpu_idle._rate': 0,
                    'cpu_idle._sum': 90.3,
                    'cpu_nice': 0.0,
                    'cpu_nice._avg': 0.0,
                    'cpu_nice._max': 0.0,
                    'cpu_nice._min': 0.0,
                    'cpu_nice._rate': 0,
                    'cpu_nice._sum': 0.0,
                    'cpu_system': 1.6333333333333335,
                    'cpu_system._avg': 1.6333333333333335,
                    'cpu_system._max': 1.6333333333333335,
                    'cpu_system._min': 1.6333333333333335,
                    'cpu_system._rate': 0,
                    'cpu_system._sum': 1.6333333333333335,
                    'cpu_user': 8.033333333333333,
                    'cpu_user._avg': 8.033333333333333,
                    'cpu_user._max': 8.033333333333333,
                    'cpu_user._min': 8.033333333333333,
                    'cpu_user._rate': 0,
                    'cpu_user._sum': 8.033333333333333,
                    'cpu_wio': 0.0,
                    'cpu_wio._avg': 0.0,
                    'cpu_wio._max': 0.0,
                    'cpu_wio._min': 0.0,
                    'cpu_wio._rate': 0,
                    'cpu_wio._sum': 0.0,
                },
                'disk': {
                    'disk_free': 124.35666666666667,
                    'disk_free._avg': 124.35666666666667,
                    'disk_free._max': 124.35666666666667,
                    'disk_free._min': 124.35666666666667,
                    'disk_free._rate': 0,
                    'disk_free._sum': 124.35666666666667,
                    'disk_total': 148.29,
                    'disk_total._avg': 148.29,
                    'disk_total._max': 148.29,
                    'disk_total._min': 148.29,
                    'disk_total._rate': 0,
                    'disk_total._sum': 148.29,
                    'read_bytes': 1594053632.0,
                    'read_bytes._avg': 1594053632.0,
                    'read_bytes._max': 1594053632.0,
                    'read_bytes._min': 1594053632.0,
                    'read_bytes._rate': 0,
                    'read_bytes._sum': 1594053632.0,
                    'read_count': 42717.0,
                    'read_count._avg': 42717.0,
                    'read_count._max': 42717.0,
                    'read_count._min': 42717.0,
                    'read_count._rate': 0,
                    'read_count._sum': 42717.0,
                    'read_time': 240986.0,
                    'read_time._avg': 240986.0,
                    'read_time._max': 240986.0,
                    'read_time._min': 240986.0,
                    'read_time._rate': 0,
                    'read_time._sum': 240986.0,
                    'write_bytes': 117028009301.33333,
                    'write_bytes._avg': 117028009301.33333,
                    'write_bytes._max': 117028009301.33333,
                    'write_bytes._min': 117028009301.33333,
                    'write_bytes._rate': 0,
                    'write_bytes._sum': 117028009301.33333,
                    'write_count': 502044.6666666667,
                    'write_count._avg': 502044.6666666667,
                    'write_count._max': 502044.6666666667,
                    'write_count._min': 502044.6666666667,
                    'write_count._rate': 0,
                    'write_count._sum': 502044.6666666667,
                    'write_time': 5964524.333333333,
                    'write_time._avg': 5964524.333333333,
                    'write_time._max': 5964524.333333333,
                    'write_time._min': 5964524.333333333,
                    'write_time._rate': 0,
                    'write_time._sum': 5964524.333333333,
                },
                'load': {
                    'load_fifteen': 0.56,
                    'load_fifteen._avg': 0.56,
                    'load_fifteen._max': 0.56,
                    'load_fifteen._min': 0.56,
                    'load_fifteen._rate': 0,
                    'load_fifteen._sum': 0.56,
                    'load_five': 0.4633333333333333,
                    'load_five._avg': 0.4633333333333333,
                    'load_five._max': 0.4633333333333333,
                    'load_five._min': 0.4633333333333333,
                    'load_five._rate': 0,
                    'load_five._sum': 0.4633333333333333,
                    'load_one': 0.48666666666666664,
                    'load_one._avg': 0.48666666666666664,
                    'load_one._max': 0.48666666666666664,
                    'load_one._min': 0.48666666666666664,
                    'load_one._rate': 0,
                    'load_one._sum': 0.48666666666666664,
                },
                'memory': {
                    'mem_cached': 3552196.0,
                    'mem_cached._avg': 3552196.0,
                    'mem_cached._max': 3552196.0,
                    'mem_cached._min': 3552196.0,
                    'mem_cached._rate': 0,
                    'mem_cached._sum': 3552196.0,
                    'mem_free': 11329698.666666666,
                    'mem_free._avg': 11329698.666666666,
                    'mem_free._max': 11329698.666666666,
                    'mem_free._min': 11329698.666666666,
                    'mem_free._rate': 0,
                    'mem_free._sum': 11329698.666666666,
                    'mem_shared': 0.0,
                    'mem_shared._avg': 0.0,
                    'mem_shared._max': 0.0,
                    'mem_shared._min': 0.0,
                    'mem_shared._rate': 0,
                    'mem_shared._sum': 0.0,
                    'mem_total': 15399208.0,
                    'mem_total._avg': 15399208.0,
                    'mem_total._max': 15399208.0,
                    'mem_total._min': 15399208.0,
                    'mem_total._rate': 0,
                    'mem_total._sum': 15399208.0,
                    'swap_free': 0.0,
                    'swap_free._avg': 0.0,
                    'swap_free._max': 0.0,
                    'swap_free._min': 0.0,
                    'swap_free._rate': 0,
                    'swap_free._sum': 0.0,
                    'swap_total': 0.0,
                    'swap_total._avg': 0.0,
                    'swap_total._max': 0.0,
                    'swap_total._min': 0.0,
                    'swap_total._rate': 0,
                    'swap_total._sum': 0.0,
                },
                'network': {
                    'bytes_in': 624.3955870325987,
                    'bytes_in._avg': 624.3955870325987,
                    'bytes_in._max': 624.3955870325987,
                    'bytes_in._min': 624.3955870325987,
                    'bytes_in._rate': 0,
                    'bytes_in._sum': 624.3955870325987,
                    'bytes_out': 2171.1540593902373,
                    'bytes_out._avg': 2171.1540593902373,
                    'bytes_out._max': 2171.1540593902373,
                    'bytes_out._min': 2171.1540593902373,
                    'bytes_out._rate': 0,
                    'bytes_out._sum': 2171.1540593902373,
                    'pkts_in': 6.066296579623007,
                    'pkts_in._avg': 6.066296579623007,
                    'pkts_in._max': 6.066296579623007,
                    'pkts_in._min': 6.066296579623007,
                    'pkts_in._rate': 0,
                    'pkts_in._sum': 6.066296579623007,
                    'pkts_out': 7.599538616787268,
                    'pkts_out._avg': 7.599538616787268,
                    'pkts_out._max': 7.599538616787268,
                    'pkts_out._min': 7.599538616787268,
                    'pkts_out._rate': 0,
                    'pkts_out._sum': 7.599538616787268,
                },
                'process': {
                    'proc_run': 1.0,
                    'proc_run._avg': 1.0,
                    'proc_run._max': 1.0,
                    'proc_run._min': 1.0,
                    'proc_run._rate': 0,
                    'proc_run._sum': 1.0,
                    'proc_total': 124.33333333333333,
                    'proc_total._avg': 124.33333333333333,
                    'proc_total._max': 124.33333333333333,
                    'proc_total._min': 124.33333333333333,
                    'proc_total._rate': 0,
                    'proc_total._sum': 124.33333333333333,
                },
            },
        },
        {
            'href': 'localhost/api/v1/clusters/LabCluster/services/HDFS/components/NAMENODE',
            'ServiceComponentInfo': {
                'cluster_name': 'LabCluster',
                'component_name': 'NAMENODE',
                'service_name': 'HDFS',
            },
            'metrics': {
                'boottime': 1555934503.0,
                'boottime._avg': 1555934503.0,
                'boottime._max': 1555934503.0,
                'boottime._min': 1555934503.0,
                'boottime._rate': 0,
                'boottime._sum': 1555934503.0,
                'cpu': {
                    'cpu_idle': 90.3,
                    'cpu_idle._avg': 90.3,
                    'cpu_idle._max': 90.3,
                    'cpu_idle._min': 90.3,
                    'cpu_idle._rate': 0,
                    'cpu_idle._sum': 90.3,
                    'cpu_nice': 0.0,
                    'cpu_nice._avg': 0.0,
                    'cpu_nice._max': 0.0,
                    'cpu_nice._min': 0.0,
                    'cpu_nice._rate': 0,
                    'cpu_nice._sum': 0.0,
                    'cpu_system': 1.6333333333333335,
                    'cpu_system._avg': 1.6333333333333335,
                    'cpu_system._max': 1.6333333333333335,
                    'cpu_system._min': 1.6333333333333335,
                    'cpu_system._rate': 0,
                    'cpu_system._sum': 1.6333333333333335,
                    'cpu_user': 8.033333333333333,
                    'cpu_user._avg': 8.033333333333333,
                    'cpu_user._max': 8.033333333333333,
                    'cpu_user._min': 8.033333333333333,
                    'cpu_user._rate': 0,
                    'cpu_user._sum': 8.033333333333333,
                    'cpu_wio': 0.0,
                    'cpu_wio._avg': 0.0,
                    'cpu_wio._max': 0.0,
                    'cpu_wio._min': 0.0,
                    'cpu_wio._rate': 0,
                    'cpu_wio._sum': 0.0,
                },
                'disk': {
                    'disk_free': 124.35666666666667,
                    'disk_free._avg': 124.35666666666667,
                    'disk_free._max': 124.35666666666667,
                    'disk_free._min': 124.35666666666667,
                    'disk_free._rate': 0,
                    'disk_free._sum': 124.35666666666667,
                    'disk_total': 148.29,
                    'disk_total._avg': 148.29,
                    'disk_total._max': 148.29,
                    'disk_total._min': 148.29,
                    'disk_total._rate': 0,
                    'disk_total._sum': 148.29,
                    'read_bytes': 1594053632.0,
                    'read_bytes._avg': 1594053632.0,
                    'read_bytes._max': 1594053632.0,
                    'read_bytes._min': 1594053632.0,
                    'read_bytes._rate': 0,
                    'read_bytes._sum': 1594053632.0,
                    'read_count': 42717.0,
                    'read_count._avg': 42717.0,
                    'read_count._max': 42717.0,
                    'read_count._min': 42717.0,
                    'read_count._rate': 0,
                    'read_count._sum': 42717.0,
                    'read_time': 240986.0,
                    'read_time._avg': 240986.0,
                    'read_time._max': 240986.0,
                    'read_time._min': 240986.0,
                    'read_time._rate': 0,
                    'read_time._sum': 240986.0,
                    'write_bytes': 117028009301.33333,
                    'write_bytes._avg': 117028009301.33333,
                    'write_bytes._max': 117028009301.33333,
                    'write_bytes._min': 117028009301.33333,
                    'write_bytes._rate': 0,
                    'write_bytes._sum': 117028009301.33333,
                    'write_count': 502044.6666666667,
                    'write_count._avg': 502044.6666666667,
                    'write_count._max': 502044.6666666667,
                    'write_count._min': 502044.6666666667,
                    'write_count._rate': 0,
                    'write_count._sum': 502044.6666666667,
                    'write_time': 5964524.333333333,
                    'write_time._avg': 5964524.333333333,
                    'write_time._max': 5964524.333333333,
                    'write_time._min': 5964524.333333333,
                    'write_time._rate': 0,
                    'write_time._sum': 5964524.333333333,
                },
                'load': {
                    'load_fifteen': 0.56,
                    'load_fifteen._avg': 0.56,
                    'load_fifteen._max': 0.56,
                    'load_fifteen._min': 0.56,
                    'load_fifteen._rate': 0,
                    'load_fifteen._sum': 0.56,
                    'load_five': 0.4633333333333333,
                    'load_five._avg': 0.4633333333333333,
                    'load_five._max': 0.4633333333333333,
                    'load_five._min': 0.4633333333333333,
                    'load_five._rate': 0,
                    'load_five._sum': 0.4633333333333333,
                    'load_one': 0.48666666666666664,
                    'load_one._avg': 0.48666666666666664,
                    'load_one._max': 0.48666666666666664,
                    'load_one._min': 0.48666666666666664,
                    'load_one._rate': 0,
                    'load_one._sum': 0.48666666666666664,
                },
                'memory': {
                    'mem_cached': 3552196.0,
                    'mem_cached._avg': 3552196.0,
                    'mem_cached._max': 3552196.0,
                    'mem_cached._min': 3552196.0,
                    'mem_cached._rate': 0,
                    'mem_cached._sum': 3552196.0,
                    'mem_free': 11329698.666666666,
                    'mem_free._avg': 11329698.666666666,
                    'mem_free._max': 11329698.666666666,
                    'mem_free._min': 11329698.666666666,
                    'mem_free._rate': 0,
                    'mem_free._sum': 11329698.666666666,
                    'mem_shared': 0.0,
                    'mem_shared._avg': 0.0,
                    'mem_shared._max': 0.0,
                    'mem_shared._min': 0.0,
                    'mem_shared._rate': 0,
                    'mem_shared._sum': 0.0,
                    'mem_total': 15399208.0,
                    'mem_total._avg': 15399208.0,
                    'mem_total._max': 15399208.0,
                    'mem_total._min': 15399208.0,
                    'mem_total._rate': 0,
                    'mem_total._sum': 15399208.0,
                    'swap_free': 0.0,
                    'swap_free._avg': 0.0,
                    'swap_free._max': 0.0,
                    'swap_free._min': 0.0,
                    'swap_free._rate': 0,
                    'swap_free._sum': 0.0,
                    'swap_total': 0.0,
                    'swap_total._avg': 0.0,
                    'swap_total._max': 0.0,
                    'swap_total._min': 0.0,
                    'swap_total._rate': 0,
                    'swap_total._sum': 0.0,
                },
                'network': {
                    'bytes_in': 624.3955870325987,
                    'bytes_in._avg': 624.3955870325987,
                    'bytes_in._max': 624.3955870325987,
                    'bytes_in._min': 624.3955870325987,
                    'bytes_in._rate': 0,
                    'bytes_in._sum': 624.3955870325987,
                    'bytes_out': 2171.1540593902373,
                    'bytes_out._avg': 2171.1540593902373,
                    'bytes_out._max': 2171.1540593902373,
                    'bytes_out._min': 2171.1540593902373,
                    'bytes_out._rate': 0,
                    'bytes_out._sum': 2171.1540593902373,
                    'pkts_in': 6.066296579623007,
                    'pkts_in._avg': 6.066296579623007,
                    'pkts_in._max': 6.066296579623007,
                    'pkts_in._min': 6.066296579623007,
                    'pkts_in._rate': 0,
                    'pkts_in._sum': 6.066296579623007,
                    'pkts_out': 7.599538616787268,
                    'pkts_out._avg': 7.599538616787268,
                    'pkts_out._max': 7.599538616787268,
                    'pkts_out._min': 7.599538616787268,
                    'pkts_out._rate': 0,
                    'pkts_out._sum': 7.599538616787268,
                },
                'process': {
                    'proc_run': 1.0,
                    'proc_run._avg': 1.0,
                    'proc_run._max': 1.0,
                    'proc_run._min': 1.0,
                    'proc_run._rate': 0,
                    'proc_run._sum': 1.0,
                    'proc_total': 124.33333333333333,
                    'proc_total._avg': 124.33333333333333,
                    'proc_total._max': 124.33333333333333,
                    'proc_total._min': 124.33333333333333,
                    'proc_total._rate': 0,
                    'proc_total._sum': 124.33333333333333,
                },
            },
        },
        {
            'href': 'localhost/v1/clusters/LabCluster/services/HDFS/components/NFS_GATEWAY',
            'ServiceComponentInfo': {
                'cluster_name': 'LabCluster',
                'component_name': 'NFS_GATEWAY',
                'service_name': 'HDFS',
            },
        },
        {
            'href': 'localhost/api/v1/clusters/LabCluster/services/HDFS/components/SECONDARY_NAMENODE',
            'ServiceComponentInfo': {
                'cluster_name': 'LabCluster',
                'component_name': 'SECONDARY_NAMENODE',
                'service_name': 'HDFS',
            },
        },
        {
            'href': 'localhost/api/v1/clusters/LabCluster/services/HDFS/components/ZKFC',
            'ServiceComponentInfo': {'cluster_name': 'LabCluster', 'component_name': 'ZKFC', 'service_name': 'HDFS'},
        },
    ],
}

SERVICE_HEALTH_METRICS = {
    'href': 'localhost/api/v1/clusters/LabCluster/services/HDFS?fields=ServiceInfo',
    'ServiceInfo': {
        'cluster_name': 'LabCluster',
        'credential_store_enabled': 'false',
        'credential_store_supported': 'false',
        'desired_repository_version_id': 4,
        'desired_stack': {'stackName': 'HDP', 'stackVersion': '3.1', 'stackId': 'HDP-3.1'},
        'kerberos_enabled': False,
        'maintenance_state': 'OFF',
        'repository_state': 'CURRENT',
        'service_name': 'HDFS',
        'sso_integration_desired': False,
        'sso_integration_enabled': False,
        'sso_integration_requires_kerberos': True,
        'sso_integration_supported': True,
        'state': 'INSTALLED',
    },
}
