Needing explanation on Build Count in Usage Statistics
Answered
Hi there,
I am working on tracking number of builds everyday for our TeamCity Service. It would great if I can have an explanation on the build count under server load and usage statistics in the TeamCity administrator UI. I tried to pull build history using python from REST API and count number of builds happened, but it seems like this number is always around 25% less than the number showed in the UI. We are guessing that the cancelled jobs might cause the discrepancy, but when I used includeCancelled=true in the query, no new builds got included. By the way I am using this query to get all builds happened in the last 24 hrs. Thanks
yesterday = (datetime.datetime.now() - datetime.timedelta(days=1)).strftime('%Y%m%dT%H%M%S-0700')
https://<server>/httpAuth/app/rest/builds?locator=sinceDate:{yesterday}&count=999999
Please sign in to leave a comment.
Found out that using defaultFilter:false would solve the problem. Thanks