Closed Bug 1045682 Opened 11 years ago Closed 11 years ago

automate translation quota tracking

Categories

(Firefox :: Translations, defect)

defect
Not set
normal
Points:
5

Tracking

()

RESOLVED FIXED
Iteration:
34.2

People

(Reporter: florian, Assigned: florian)

References

()

Details

Attachments

(3 files)

Bing has an API to access the quota. Unfortunately, it requires getting an OAuth token first which makes using it in a script significantly more difficult than one would hope.
Flags: firefox-backlog+
Points: --- → 5
QA Whiteboard: [qa-]
Assignee: nobody → florian
Status: NEW → ASSIGNED
Iteration: --- → 34.2
The relevant API is http://msdn.microsoft.com/library/azure/hh973151.aspx we are interested in the ResourceBalance value.
Here is how I installed these files on people.mozilla.org: $ crontab -l 0,30 * * * * /bin/bash /home/fqueze2/bing-quota/quota.sh $ cat bing-quota/quota.sh #!/bin/bash LD_LIBRARY_PATH=/home/fqueze2/bing-quota/firefox /home/fqueze2/bing-quota/firefox/xpcshell /home/fqueze2/bing-quota/quota.js >> /home/fqueze2/public_html/bing-quota/quota.txt The resulting chart is visible at: https://people.mozilla.org/~fqueze2/bing-quota/ The raw data is at http://people.mozilla.org/~fqueze2/bing-quota/quota.txt
Attachment #8468768 - Attachment mime type: application/binary → application/javascript
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Attachment #8468768 - Attachment is private: true
Attachment #8468768 - Attachment is private: false
I tweaked attachment 8468771 [details] a bit to make a chart of the characters translated per hour instead of the evolution of the quota, as I was curious to see how the usage varies between hours of the day and between days. The result is visible at https://people.mozilla.org/~fqueze2/bing-quota/usage.html
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: