Closed
Bug 1045682
Opened 11 years ago
Closed 11 years ago
automate translation quota tracking
Categories
(Firefox :: Translations, defect)
Firefox
Translations
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+
Updated•11 years ago
|
Points: --- → 5
QA Whiteboard: [qa-]
Updated•11 years ago
|
Assignee: nobody → florian
Status: NEW → ASSIGNED
Iteration: --- → 34.2
| Assignee | ||
Comment 1•11 years ago
|
||
The relevant API is http://msdn.microsoft.com/library/azure/hh973151.aspx we are interested in the ResourceBalance value.
| Assignee | ||
Comment 2•11 years ago
|
||
| Assignee | ||
Comment 3•11 years ago
|
||
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
| Assignee | ||
Updated•11 years ago
|
Attachment #8468768 -
Attachment mime type: application/binary → application/javascript
| Assignee | ||
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Attachment #8468768 -
Attachment is private: true
Updated•11 years ago
|
Attachment #8468768 -
Attachment is private: false
| Assignee | ||
Comment 4•11 years ago
|
||
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.
Description
•