23 Jul 2020 07:05 AM - last edited on 26 Apr 2021 05:21 AM by MaciejNeumann
Hello, is there a possible way to read the monthly DEM Consumption on Applications. For Host Units there is a possible way with "consumedHostUnits" from "/entity/infrastructure/hosts", but what is with the DEM? I search something like "consumedDEMUnits" 🙂
Since we have to charge the DEM consumption per application per month internally, this would be very helpful.
Solved! Go to Solution.
Have you looked at if any of the metrics under the 'Billing' category will help? You should be able to calculate DEM consumption based off of these:
Thanks, well i need the DEM Consumption from API because i have to give this Numbers forward to another system (i already use python for that).
I used the custom chart just to show what metrics are available, but all of these that are available there are also available through the v2 metrics API:
I do believe calculation of spent DEMs based on these values is just an approximation of the real DEMs spent. A user session might be split into several ones (sessions with more than 200 actions). I think each of such session will be counted here, but just a first one will be billed. You can see that when opening a session:
We currently use these as well. It will be even better once custom metrics are added as well.