21 Oct 2024 10:28 AM
Hi Team,
I would like to get values the HOST UNIT consumption and split by host to show each hostname via api.
compare with last month and latest month is there any metric on api v2 could do that?
ps. not use dps pricing model
Regards,
22 Oct 2024 03:47 AM
Hi @AskMe-Solutions , there use to be an option to query from V1 API but its deprecated now . Not sure there is something similar available in V2 API yet.
22 Oct 2024 04:00 AM
@AskMe-Solutions If you are fine with some alternate option here is a script created by @Julius_Loman and some alternate options dicussed below
https://github.com/Alanata-a-s/Dynatrace-License-Reporting-Scripts/tree/master
22 Oct 2024 09:03 AM
Hi P_devulapalli,
Yep, if host data in an hour this solution it's work but the limitation is I want the data from like last month and latest month but thanks so much for the solutions.
Regards,
22 Oct 2024 09:33 AM
TBH I'm not sure what is not possible in your case. My scripted solution of course cannot regenerate data back, but if you keep it running you will be able to report and compare consumption across intervals.
It's probably not wise to run it on a minute-based interval especially in larger environments as the call to OneAgents v1 API takes some time. I'd recommend 15 minutes or 1 hour intervals.