{ "plans": [{ "plan": { "plan_id": "basic-object-storage", "measures": [ { "name": "storage", "unit": "BYTE" }, { "name": "light_api_calls", "unit": "CALL" }, { "name": "heavy_api_calls", "unit": "CALL" } ], "metrics": [ { "name": "storage", "unit": "GIGABYTE", "type": "discrete", "meter": "(m) => new BigNumber(m.storage).div(1073741824).toNumber()", "accumulate": "((a, qty, start, end, from, to, twCell) => end < from || end >= to ? null : Math.max(a, qty))" }, { "name": "thousand_light_api_calls", "unit": "THOUSAND_CALLS", "type": "discrete", "meter": "(m) => new BigNumber(m.light_api_calls).div(1000).toNumber()", "aggregate": "(a, prev, curr, aggTwCell, accTwCell) => new BigNumber(a || 0).add(curr).sub(prev).toNumber()" }, { "name": "heavy_api_calls", "unit": "CALL", "type": "discrete", "meter": "(m) => m.heavy_api_calls" } ] } }] }