- 论坛徽章:
- 0
|
回复 7# Shell_HAT
在一行中有很多统计项item,每个统计项中都会有item_num_ops和item_avg_time两个属性,这两个属性在一行中的先后顺序不定。现在需要抽取一行中所有的统计项的两个属性和,输出格式如下:
item1: item1_num_ops * item1_avg_time
item2: item2_num_ops * item2_avg_time
部分片段如下所示:
"memstoreInsert_num_ops":0,"appendWriteTime_num_ops":0,"rwccWait_num_ops":0,"blockCacheEvictedMultiCount":0,"flushSize_avg_time":135649758,"syncEntryRate_avg_time":0,"appendEditsSize_num_ops":0,"fsSyncLatency_num_ops":0,"appendLockTime_num_ops":0,"compactionQueueSizeS":0,"fsSyncLatency_avg_time":0,"period":60,"appendSyncWaitTime_avg_time":0,"compactionSize_num_ops":1,"compactionTime_num_ops":1,"syncEntries_avg_time":0,"syncEntryRate_num_ops":0,"blockCacheEvictedCount":0,"storefileIndexSizeMB":425
|
|