const sysmetrics = `{ "nodes_info": [ { "identifier": 1, "connected": null, "infos": { "has_error": false, "error_reason": "", "name": "querynode1", "hardware_infos": { "ip": "172.18.20.7:21123", "cpu_core_count": 8, "cpu_core_usage": 0, "memory": 34359738368, "memory_usage": 18362302464, "disk": 104857600, "disk_usage": 2097152 }, "system_info": { "system_version": "34cf5352ec", "deploy_mode": "STANDALONE[MOCK]", "build_version": "v2.2-testing-20240702-804-g34cf5352ec-dev", "build_time": "Wed, Oct 23, 2024 13:58:54 UTC", "used_go_version": "go version go1.22.3 darwin/amd64" }, "created_time": "2024-10-23 22:01:45.891414 +0800 CST m=+8.035797839", "updated_time": "2024-10-23 22:01:45.891415 +0800 CST m=+8.035798239", "type": "querynode", "id": 1, "system_configurations": { "simd_type": "auto" }, "quota_metrics": { "Hms": { "ip": "172.18.20.7:21123", "cpu_core_count": 8, "cpu_core_usage": 0, "memory": 34359738368, "memory_usage": 18362302464, "disk": 104857600, "disk_usage": 2097152 }, "Rms": [ { "Label": "InsertConsumeThroughput", "Rate": 0 }, { "Label": "DeleteConsumeThroughput", "Rate": 0 } ], "Fgm": { "MinFlowGraphChannel": "", "MinFlowGraphTt": 18446744073709551615, "NumFlowGraph": 0 }, "GrowingSegmentsSize": 0, "Effect": { "NodeID": 1, "CollectionIDs": [] }, "DeleteBufferInfo": { "CollectionDeleteBufferNum": {}, "CollectionDeleteBufferSize": {} } }, "collection_metrics": { "CollectionRows": {} } } }, { "identifier": 1, "connected": [ { "connected_identifier": 1, "type": "manage", "target_type": "querynode" } ], "infos": { "has_error": false, "error_reason": "", "name": "querycoord1", "hardware_infos": { "ip": "172.18.20.7:19531", "cpu_core_count": 8, "cpu_core_usage": 0, "memory": 34359738368, "memory_usage": 18362302464, "disk": 104857600, "disk_usage": 2097152 }, "system_info": { "system_version": "34cf5352ec", "deploy_mode": "STANDALONE[MOCK]", "build_version": "v2.2-testing-20240702-804-g34cf5352ec-dev", "build_time": "Wed, Oct 23, 2024 13:58:54 UTC", "used_go_version": "go version go1.22.3 darwin/amd64" }, "created_time": "2024-10-23 22:01:45.891414 +0800 CST m=+8.035797839", "updated_time": "2024-10-23 22:01:45.891415 +0800 CST m=+8.035798239", "type": "querycoord", "id": 1, "system_configurations": { "search_channel_prefix": "", "search_result_channel_prefix": "" } } }, { "identifier": 1, "connected": null, "infos": { "has_error": false, "error_reason": "", "name": "datanode1", "hardware_infos": { "ip": "172.18.20.7:21124", "cpu_core_count": 8, "cpu_core_usage": 0, "memory": 34359738368, "memory_usage": 18362302464, "disk": 104857600, "disk_usage": 2097152 }, "system_info": { "system_version": "34cf5352ec", "deploy_mode": "STANDALONE[MOCK]", "build_version": "v2.2-testing-20240702-804-g34cf5352ec-dev", "build_time": "Wed, Oct 23, 2024 13:58:54 UTC", "used_go_version": "go version go1.22.3 darwin/amd64" }, "created_time": "2024-10-23 22:01:45.891414 +0800 CST m=+8.035797839", "updated_time": "2024-10-23 22:01:45.891415 +0800 CST m=+8.035798239", "type": "datanode", "id": 1, "system_configurations": { "flush_insert_buffer_size": 16777216 }, "quota_metrics": { "Hms": { "ip": "172.18.20.7:21124", "cpu_core_count": 8, "cpu_core_usage": 0, "memory": 34359738368, "memory_usage": 18362302464, "disk": 104857600, "disk_usage": 2097152 }, "Rms": [ { "Label": "InsertConsumeThroughput", "Rate": 0 }, { "Label": "DeleteConsumeThroughput", "Rate": 0 } ], "Fgm": { "MinFlowGraphChannel": "", "MinFlowGraphTt": 18446744073709551615, "NumFlowGraph": 0 }, "Effect": { "NodeID": 1, "CollectionIDs": [] } } } }, { "identifier": 1, "connected": null, "infos": { "has_error": false, "error_reason": "", "name": "indexnode1", "hardware_infos": { "ip": "172.18.20.7:21121", "cpu_core_count": 8, "cpu_core_usage": 0, "memory": 34359738368, "memory_usage": 18362302464, "disk": 104857600, "disk_usage": 2097152 }, "system_info": { "system_version": "34cf5352ec", "deploy_mode": "STANDALONE[MOCK]", "build_version": "v2.2-testing-20240702-804-g34cf5352ec-dev", "build_time": "Wed, Oct 23, 2024 13:58:54 UTC", "used_go_version": "go version go1.22.3 darwin/amd64" }, "created_time": "2024-10-23 22:01:45.891414 +0800 CST m=+8.035797839", "updated_time": "2024-10-23 22:01:45.891415 +0800 CST m=+8.035798239", "type": "indexnode", "id": 1, "system_configurations": { "minio_bucket_name": "a-bucket", "simd_type": "auto" } } }, { "identifier": 1, "connected": [ { "connected_identifier": 1, "type": "manage", "target_type": "datanode" }, { "connected_identifier": 1, "type": "manage", "target_type": "indexnode" } ], "infos": { "has_error": false, "error_reason": "", "name": "datacoord1", "hardware_infos": { "ip": "172.18.20.7:13333", "cpu_core_count": 8, "cpu_core_usage": 0, "memory": 34359738368, "memory_usage": 18362302464, "disk": 104857600, "disk_usage": 2097152 }, "system_info": { "system_version": "34cf5352ec", "deploy_mode": "STANDALONE[MOCK]", "build_version": "v2.2-testing-20240702-804-g34cf5352ec-dev", "build_time": "Wed, Oct 23, 2024 13:58:54 UTC", "used_go_version": "go version go1.22.3 darwin/amd64" }, "created_time": "2024-10-23 22:01:45.891414 +0800 CST m=+8.035797839", "updated_time": "2024-10-23 22:01:45.891415 +0800 CST m=+8.035798239", "type": "datacoord", "id": 1, "system_configurations": { "segment_max_size": 1024 }, "quota_metrics": { "TotalBinlogSize": 0, "CollectionBinlogSize": {}, "PartitionsBinlogSize": {}, "CollectionL0RowCount": {} }, "collection_metrics": { "Collections": {} } } }, { "identifier": 1, "connected": [], "infos": { "has_error": false, "error_reason": "", "name": "rootcoord1", "hardware_infos": { "ip": "172.18.20.7:53100", "cpu_core_count": 8, "cpu_core_usage": 0, "memory": 34359738368, "memory_usage": 18362302464, "disk": 104857600, "disk_usage": 2097152 }, "system_info": { "system_version": "34cf5352ec", "deploy_mode": "STANDALONE[MOCK]", "build_version": "v2.2-testing-20240702-804-g34cf5352ec-dev", "build_time": "Wed, Oct 23, 2024 13:58:54 UTC", "used_go_version": "go version go1.22.3 darwin/amd64" }, "created_time": "2024-10-23 22:01:45.891414 +0800 CST m=+8.035797839", "updated_time": "2024-10-23 22:01:45.891415 +0800 CST m=+8.035798239", "type": "rootcoord", "id": 1, "system_configurations": { "min_segment_size_to_enable_index": 1024 } } }, { "identifier": 1, "connected": [ { "connected_identifier": 1, "type": "forward", "target_type": "querycoord" }, { "connected_identifier": 1, "type": "forward", "target_type": "datacoord" }, { "connected_identifier": 1, "type": "forward", "target_type": "rootcoord" } ], "infos": { "has_error": false, "error_reason": "", "name": "proxy1", "hardware_infos": { "ip": "172.18.20.7:19529", "cpu_core_count": 8, "cpu_core_usage": 30.52004762940343, "memory": 34359738368, "memory_usage": 18362302464, "disk": 104857600, "disk_usage": 2097152 }, "system_info": { "system_version": "34cf5352ec", "deploy_mode": "STANDALONE[MOCK]", "build_version": "v2.2-testing-20240702-804-g34cf5352ec-dev", "build_time": "Wed, Oct 23, 2024 13:58:54 UTC", "used_go_version": "go version go1.22.3 darwin/amd64" }, "created_time": "2024-10-23 22:01:45.891414 +0800 CST m=+8.035797839", "updated_time": "2024-10-23 22:01:45.891415 +0800 CST m=+8.035798239", "type": "proxy", "id": 1, "system_configurations": { "default_partition_name": "_default", "default_index_name": "_default_idx" }, "quota_metrics": null } } ] }` const nodeRequests = ` [ { "node_name": "querynode1", "QPS": 0, "read_request_count": 0, "write_request_count": 0, "delete_request_count": 0 }, { "node_name": "datanode1", "QPS": 0, "read_request_count": 0, "write_request_count": 0, "delete_request_count": 0 }, { "node_name": "indexnode1", "QPS": 0, "read_request_count": 0, "write_request_count": 0, "delete_request_count": 0 }, { "node_name": "proxy1", "QPS": 0, "read_request_count": 0, "write_request_count": 0, "delete_request_count": 0 } ] ` const clientInfos = `[ { "sdk_type": "python", "sdk_version": "1.0.0", "local_time": "2023-10-01T12:00:00Z", "user": "user1", "host": "127.0.0.1", "reserved": { "last_active_time": "" } }, { "sdk_type": "golang", "sdk_version": "1.1.0", "local_time": "2023-10-01T12:05:00Z", "user": "user2", "host": "127.0.0.2", "reserved": { "last_active_time": "" } } ]` const dependencies = ` { "metastore": { "health_status": true, "unhealthy_reason": "", "members_health": [ { "endpoint": "http://127.0.0.1:2379", "health": true } ], "meta_type": "etcd" }, "mq": { "health_status": false, "unhealthy_reason": "health check failed, err: Get \\"http://localhost:80/admin/v2/brokers/health\\": dial tcp [::1]:80: connect: connection refused", "members_health": null, "mq_type": "pulsar" } } ` const mconfigs = ` { "MILVUS_GIT_BUILD_TAGS": "v2.2-testing-20240702-811-g38211f2b81-dev", "MILVUS_GIT_COMMIT": "38211f2b81", "common.bloomfilterapplybatchsize": "1000", "common.bloomfiltersize": "100000", "common.bloomfiltertype": "BlockedBloomFilter", "common.buildindexthreadpoolratio": "0.75", "common.defaultindexname": "_default_idx", "common.defaultpartitionname": "_default", "common.diskindex.beamwidthratio": "4", "common.diskindex.buildnumthreadsratio": "1", "common.diskindex.loadnumthreadratio": "8", "common.diskindex.maxdegree": "56", "common.diskindex.pqcodebudgetgbratio": "0.125", "common.diskindex.searchcachebudgetgbratio": "0.1", "common.diskindex.searchlistsize": "100", "common.enablevectorclusteringkey": "false", "common.entityexpiration": "-1", "common.gracefulstoptimeout": "1800", "common.gracefultime": "5000", "common.indexslicesize": "16", "common.locks.metrics.enable": "false" } `; const listCollectionData =` { "collection_names": [ "collection_1", "collection_2", "collection_3", "collection_4", "collection_5", "collection_6", "collection_7", "collection_8", "collection_9", "collection_10" ], "collection_ids": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" ], "created_utc_timestamps": [ "2021-10-01 00:00:00", "2021-10-02 00:00:00", "2021-10-03 00:00:00", "2021-10-04 00:00:00", "2021-10-05 00:00:00", "2021-10-06 00:00:00", "2021-10-07 00:00:00", "2021-10-08 00:00:00", "2021-10-09 00:00:00", "2021-10-10 00:00:00" ], "inMemory_percentages": [ 100, 90, 80, 70, 60, 50, 40, 30, 20, 10 ], "query_service_available": [ true, true, true, true, true, false, false, false, false, false ] } ` const collectionRequest = ` [ { "collection_name": "collection1", "search_QPS": 10, "query_QPS": 5, "write_throughput": 20, "delete_QPS": 2 }, { "collection_name": "collection2", "search_QPS": 15, "query_QPS": 7, "write_throughput": 25, "delete_QPS": 3 }, { "collection_name": "collection3", "search_QPS": 20, "query_QPS": 10, "write_throughput": 30, "delete_QPS": 4 }, { "collection_name": "collection4", "search_QPS": 25, "query_QPS": 12, "write_throughput": 35, "delete_QPS": 5 }, { "collection_name": "collection5", "search_QPS": 30, "query_QPS": 15, "write_throughput": 40, "delete_QPS": 6 }, { "collection_name": "collection6", "search_QPS": 35, "query_QPS": 17, "write_throughput": 45, "delete_QPS": 7 }, { "collection_name": "collection7", "search_QPS": 40, "query_QPS": 20, "write_throughput": 50, "delete_QPS": 8 }, { "collection_name": "collection8", "search_QPS": 45, "query_QPS": 22, "write_throughput": 55, "delete_QPS": 9 }, { "collection_name": "collection9", "search_QPS": 50, "query_QPS": 25, "write_throughput": 60, "delete_QPS": 10 }, { "collection_name": "collection10", "search_QPS": 55, "query_QPS": 27, "write_throughput": 65, "delete_QPS": 11 } ] ` const describeCollectionData = ` { "collection_id": "1", "collection_name": "example_collection", "created_time": "2021-10-01 00:00:00", "shards_num": 2, "consistency_level": "Strong", "aliases": ["alias1", "alias2"], "properties": { "property_key": "property_value" }, "db_name": "example_db", "num_partitions": 3, "virtual_channel_names": ["v_channel1", "v_channel2"], "physical_channel_names": ["p_channel1", "p_channel2"], "partition_infos": [ { "partition_name": "partition1", "partition_id": "1", "created_utc_timestamp": "2021-10-01 00:00:00" } ], "enable_dynamic_field": true, "fields": [ { "field_id": "1", "name": "field1", "is_primary_key": true, "description": "description1", "data_type": "int64", "type_params": { "param_key": "param_value" }, "index_params": { "index_key": "index_value" }, "auto_id": false, "element_type": "element_type1", "default_value": "default_value1", "is_dynamic": false, "is_partition_key": false, "is_clustering_key": false, "nullable": true, "is_function_output": false } ] } ` const listDatabaseData = ` { "db_names": [ "database_1", "database_2", "database_3", "database_4", "database_5", "database_6", "database_7", "database_8", "database_9", "database_10" ], "db_ids": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" ], "created_timestamps": [ "2021-10-01 00:00:00", "2021-10-02 00:00:00", "2021-10-03 00:00:00", "2021-10-04 00:00:00", "2021-10-05 00:00:00", "2021-10-06 00:00:00", "2021-10-07 00:00:00", "2021-10-08 00:00:00", "2021-10-09 00:00:00", "2021-10-10 00:00:00" ] } ` const describeDatabaseData = ` { "db_name": "example_db", "db_id": 1, "created_timestamp": "2021-10-01 00:00:00", "properties": [ { "key": "property_key", "value": "property_value" } ] } ` const qcCurrentTargets = ` [ { "collection_id": 1, "segments": [ { "segment_id": 1, "collection_id": 1, "partition_id": 1, "channel": "channel1", "num_of_rows": 1000, "state": "Sealed", "is_importing": false, "compacted": false, "level": "L0", "is_sorted": true, "node_id": 1, "is_invisible": false, "loaded_timestamp": "2021-10-01 00:00:00", "index": [ { "field_id": 1, "index_id": 1, "build_id": 1, "index_size": 1024, "is_loaded": true } ], "resource_group": "rg1", "loaded_insert_row_count": 1000, "mem_size": 2048 } ], "dm_channels": [ { "node_id": 1, "version": 1, "collection_id": 1, "channel_name": "channel1", "unflushed_segment_ids": [ "1" ], "flushed_segment_ids": [ "2" ], "dropped_segment_ids": [ "3" ], "level_zero_segment_ids": [ "4" ] } ] } ] ` const qcNextTargets = ` [ { "collection_id": 1, "segments": [ { "segment_id": 2, "collection_id": 1, "partition_id": 1, "channel": "channel2", "num_of_rows": 1000, "state": "Sealed", "is_importing": false, "compacted": false, "level": "L0", "is_sorted": true, "node_id": 1, "is_invisible": false, "loaded_timestamp": 1633072800, "index": [ { "field_id": 1, "index_id": 1, "build_id": 1, "index_size": 1024, "is_loaded": true } ], "resource_group": "rg1", "loaded_insert_row_count": 1000, "mem_size": 2048 } ] } ] `; const qcDist = ` { "segments": [ { "segment_id": 1, "collection_id": 1, "partition_id": 1, "channel": "channel1", "num_of_rows": 1000, "state": "Sealed", "is_importing": false, "compacted": false, "level": "L0", "is_sorted": true, "node_id": 1, "is_invisible": false, "loaded_timestamp": "2021-10-01 00:00:00", "index": [ { "field_id": 1, "index_id": 1, "build_id": 1, "index_size": 1024, "is_loaded": true } ], "resource_group": "rg1", "loaded_insert_row_count": 1000, "mem_size": 2048, "flushed_rows": 1000, "sync_buffer_rows": 0, "syncing_rows": 0 } ], "dm_channels": [ { "node_id": 1, "version": 1, "collection_id": 1, "channel_name": "channel1", "unflushed_segment_ids": ["1"], "flushed_segment_ids": ["2"], "dropped_segment_ids": ["3"], "level_zero_segment_ids": ["4"], "partition_stats_versions": { "1": 1 }, "watch_state": "Healthy", "start_watch_ts": "2021-10-01 00:00:00" } ], "leader_views": [ { "leader_id": 1, "collection_id": 1, "node_id": 1, "channel": "channel1", "version": 1, "sealed_segments": [ { "segment_id": 1, "collection_id": 1, "partition_id": 1, "channel": "channel1", "num_of_rows": 1000, "state": "Sealed", "is_importing": false, "compacted": false, "level": "L0", "is_sorted": true, "node_id": 1, "is_invisible": false, "loaded_timestamp": "2021-10-01 00:00:00", "index": [ { "field_id": 1, "index_id": 1, "build_id": 1, "index_size": 1024, "is_loaded": true } ], "resource_group": "rg1", "loaded_insert_row_count": 1000, "mem_size": 2048, "flushed_rows": 1000, "sync_buffer_rows": 0, "syncing_rows": 0 } ], "growing_segments": [], "target_version": 1, "num_of_growing_rows": 0, "unserviceable_error": "" } ] } ` const qcReplica = ` [ { "ID": 1, "CollectionID": 1, "rw_nodes": [1, 2], "resource_group": "rg1", "ro_nodes": [3], "channel_to_rw_nodes": { "channel1": [1, 2] } }, { "ID": 2, "CollectionID": 2, "rw_nodes": [4, 5], "resource_group": "rg2", "ro_nodes": [6], "channel_to_rw_nodes": { "channel2": [4, 5] } } ] `; const qcResourceGroup = ` [ { "name": "rg1", "nodes": [1, 2], "cfg": { "requests":{}, "limits":{"node_num":1000000} } }, { "name": "rg2", "nodes": [3, 4] } ] `; const qcTasks = ` [ { "task_name": "balance_checker-ChannelTask[1]-ch1", "collection_id": 67890, "replica_id": 11111, "task_type": "Move", "task_status": "started", "priority": "Normal", "actions": [ "type:Grow node id : 1 channel name:channel_1" ], "step": 1, "reason": "" }, { "task_name": "index_checker-SegmentTask[2]-54321", "collection_id": 12345, "replica_id": 22222, "task_type": "Grow", "task_status": "completed", "priority": "High", "actions": [ "type:Grow node id: 2 segment id:123 scope:DataScope_Streaming" ], "step": 2, "reason": "" }, { "task_name": "leader_checker-LeaderSegmentTask[3]-1", "collection_id": 54321, "replica_id": 33333, "task_type": "Grow", "task_status": "failed", "priority": "Low", "actions": [ "type:Grow node id: 3 leader id:456 segment id:789 version:1" ], "step": 3, "reason": "yet another reason" } ] `; const qnSegments = ` [ { "segment_id": 1, "collection_id": 1, "partition_id": 1, "channel": "channel1", "num_of_rows": 1000, "state": "Sealed", "is_importing": false, "compacted": false, "level": "L1", "is_sorted": true, "node_id": 1, "is_invisible": false, "loaded_timestamp": "2021-10-01 00:00:00", "index": [ { "field_id": 1, "index_id": 1, "build_id": 1, "index_size": 1024, "is_loaded": true } ], "resource_group": "rg1", "loaded_insert_row_count": 1000, "mem_size": 2048 }, { "segment_id": 2, "collection_id": 2, "partition_id": 2, "channel": "channel2", "num_of_rows": 2000, "state": "Sealed", "is_importing": false, "compacted": false, "level": "L2", "is_sorted": true, "node_id": 2, "is_invisible": false, "loaded_timestamp": "2021-10-01 00:00:00", "index": [ { "field_id": 2, "index_id": 2, "build_id": 2, "index_size": 2048, "is_loaded": true } ], "resource_group": "rg2", "loaded_insert_row_count": 2000, "mem_size": 4096 } ] `; const qnChannels = ` [ { "name": "channel1", "watch_state": "Healthy", "assign_state": "assigned", "latest_time_tick": "2023-10-01 12:00:00", "node_id": 1, "collection_id": 1 }, { "name": "channel2", "watch_state": "Healthy", "assign_state": "assigned", "latest_time_tick": "2023-10-01 12:05:00", "node_id": 2, "collection_id": 2 } ] `; const dc_dist = ` { "segments": [ { "segment_id": 1, "collection_id": 1, "partition_id": 1, "channel": "channel1", "num_of_rows": 1000, "state": "Growing", "is_importing": false, "compacted": false, "level": "L1", "is_sorted": true, "node_id": 1 }, { "segment_id": 3, "collection_id": 2, "partition_id": 2, "channel": "channel2", "num_of_rows": 2000, "state": "Growing", "is_importing": true, "compacted": true, "level": "L2", "is_sorted": false, "node_id": 2 } ], "dm_channels": [ { "node_id": 1, "version": 1, "collection_id": 100, "channel_name": "channel1", "unflushed_segment_ids": ["1", "2", "3"], "flushed_segment_ids": ["4", "5", "6"], "dropped_segment_ids": ["7", "8", "9"], "watch_state": "success", "start_watch_ts": "2023-10-01 12:05:00" }, { "node_id": 1, "version": 1, "collection_id": 100, "channel_name": "channel3", "unflushed_segment_ids": ["1", "2", "3"], "flushed_segment_ids": ["4", "5", "6"], "dropped_segment_ids": ["7", "8", "9"], "watch_state": "to_watch", "start_watch_ts": "2023-10-01 12:05:00" } ] } `; const dc_build_index_task = ` [ { "index_id": 1, "collection_id": 1001, "segment_id": 2001, "build_id": 3001, "index_state": "Finished", "index_size": 1024, "index_version": 1, "create_time": "2023-10-01 12:05:00" }, { "index_id": 2, "collection_id": 1002, "segment_id": 2002, "build_id": 3002, "index_state": "Failed", "fail_reason": "Disk full", "index_size": 2048, "index_version": 2, "create_time": "2023-10-01 12:05:00" } ]` const dc_compaction_task = ` [ { "plan_id": 1, "collection_id": 1, "type": "Merge", "state": "Completed", "fail_reason": "", "start_time": "2023-10-01 12:05:00", "end_time": "2023-10-01 12:06:00", "total_rows": 10000, "input_segments": ["1", "2", "3"], "result_segments": ["4"] }, { "plan_id": 2, "collection_id": 2, "type": "Merge", "state": "Failed", "fail_reason": "Disk full", "start_time": "2023-10-01 12:05:00", "end_time": "2023-10-01 12:06:00", "total_rows": 20000, "input_segments": ["5", "6", "7"], "result_segments": [] } ]` const dn_sync_task = ` [ { "segment_id": 1, "batch_rows": 1000, "segment_level": "L1", "ts_from": "2023-10-01 12:05:00", "ts_to": "2023-10-01 12:06:00", "delta_row_count": 10, "flush_size": 1024, "running_time": "100000000", "node_id": 1 }, { "segment_id": 2, "batch_rows": 2000, "segment_level": "L2", "ts_from": "2023-10-01 12:05:00", "ts_to": "2023-10-01 12:06:00", "delta_row_count": 20, "flush_size": 2048, "running_time": "200000000", "node_id": 2 } ] ` const dc_import_task = ` [ { "job_id": 1, "task_id": 2, "collection_id": 3, "node_id": 4, "state": "Pending", "reason": "", "task_type": "PreImportTask", "created_time": "2023-10-01T00:00:00Z", "complete_time": "2023-10-01T01:00:00Z" }, { "job_id": 5, "task_id": 6, "collection_id": 7, "node_id": 8, "state": "Completed", "reason": "", "task_type": "ImportTask", "created_time": "2023-10-01T00:00:00Z", "complete_time": "2023-10-01T01:00:00Z" }, { "job_id": 9, "task_id": 10, "collection_id": 11, "node_id": 12, "state": "Failed", "reason": "some failure reason", "task_type": "ImportTask", "created_time": "2023-10-01T00:00:00Z", "complete_time": "2023-10-01T01:00:00Z" } ] ` const dn_segments = ` [ { "segment_id": 1, "collection_id": 1, "partition_id": 1, "channel": "channel1", "num_of_rows": 1000, "state": "Growing", "is_importing": false, "compacted": false, "level": "L1", "is_sorted": true, "node_id": 1, "flushed_rows": 1000, "sync_buffer_rows": 0, "syncing_rows": 0 }, { "segment_id": 2, "collection_id": 2, "partition_id": 2, "channel": "channel2", "num_of_rows": 2000, "state": "Sealed", "is_importing": true, "compacted": true, "level": "L2", "is_sorted": false, "node_id": 2, "flushed_rows": 2000, "sync_buffer_rows": 100, "syncing_rows": 50 } ] ` const dn_channels = ` [ { "name": "channel1", "watch_state": "Healthy", "assign_state": "assigned", "latest_time_tick": "2023-10-01 12:00:00", "node_id": 1, "collection_id": 1, "check_point_ts": "2023-10-01 12:00:00" }, { "name": "channel2", "watch_state": "Healthy", "assign_state": "assigned", "latest_time_tick": "2023-10-01 12:05:00", "node_id": 2, "collection_id": 2, "check_point_ts": "2023-10-01 12:05:00" } ] ` const slowQueries = `[ { "role": "proxy", "database": "test_db", "collection": "test_collection", "partitions": "partition1,partition2", "consistency_level": "Bounded", "use_default_consistency": true, "guarantee_timestamp": 123456789, "duration": "1.1s", "user": "test_user", "query_params": { "search_params": [ { "dsl": ["dsl1"], "search_params": ["param2=value2"], "nq": [10] } ], "output_fields": "field1,field2" }, "type": "Search", "trace_id": "729b10a6a7f32ddd7ab5c16dd30f60dc", "time": "2024-11-05 08:14:05" }, { "role": "proxy", "database": "test_db", "collection": "test_collection", "partitions": "partition1,partition2", "consistency_level": "Bounded", "use_default_consistency": true, "guarantee_timestamp": 123456789, "duration": "1.2s", "user": "test_user", "query_params": { "expr": "expr1", "output_fields": "field1,field2" }, "type": "Query", "trace_id": "232955b7f33b135708d34c3c761b57e7", "time": "2024-11-05 08:14:05" }, { "role": "proxy", "database": "test_db", "collection": "test_collection", "partitions": "partition1,partition2", "consistency_level": "Bounded", "use_default_consistency": true, "guarantee_timestamp": 123456789, "duration": "1.3s", "user": "test_user", "query_params": { "search_params": [ { "dsl": ["dsl2"], "search_params": ["param3=value3"], "nq": [20] } ], "output_fields": "field3,field4" }, "type": "HybridSearch", "trace_id": "3a4b5c6d7e8f9a0b1c2d3e4f5g6h7i8j", "time": "2024-11-05 08:14:05" }, { "role": "proxy", "database": "test_db", "collection": "test_collection", "partitions": "partition1,partition2", "consistency_level": "Bounded", "use_default_consistency": true, "guarantee_timestamp": 123456789, "duration": "1.4s", "user": "test_user", "query_params": { "expr": "expr2", "output_fields": "field5,field6" }, "type": "Query", "trace_id": "4b5c6d7e8f9a0b1c2d3e4f5g6h7i8j9k", "time": "2024-11-05 08:14:05" }, { "role": "proxy", "database": "test_db", "collection": "test_collection", "partitions": "partition1,partition2", "consistency_level": "Bounded", "use_default_consistency": true, "guarantee_timestamp": 123456789, "duration": "1.5s", "user": "test_user", "query_params": { "search_params": [ { "dsl": ["dsl3"], "search_params": ["param4=value4"], "nq": [30] } ], "output_fields": "field7,field8" }, "type": "Search", "trace_id": "5c6d7e8f9a0b1c2d3e4f5g6h7i8j9k0l", "time": "2024-11-05 08:14:05" } ]`;