Modify the Statistics Metadata File
The statistics metadata file is the same as the stat.util2.json
file shown in Add Resources to the Class Metadata except that you need to add an element for the activity
statistic that will be used to partition and reads
and writes
statistics. Modify the stat.util2.json
file to have the following content:
[ { "$schema": "//:stat", "description": "reads", "id": "//:class.app/util2//:stat.reads", "stability": "stable", "type": "counter", "units": "operations" }, { "$schema": "//:stat", "description": "writes", "id": "//:class.app/util2//:stat.writes", "stability": "stable", "type": "counter", "units": "operations" }, { "$schema": "//:stat", "description": "errors", "id": "//:class.app/util2//:stat.errors", "stability": "stable", "type": "counter", "units": "errors" }, { "$schema": "//:stat", "description": "reads or writes", "id": "//:class.app/util2//:stat.activity", "stability": "stable", "type": "counter", "units": "operations" } ]