Difference between revisions of "User:Kiara"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
We should add a description here http://wiki.apertium.org/wiki/Apertium-apy |
We should add a description here http://wiki.apertium.org/wiki/Apertium-apy |
||
+ | |||
− | * {{suggest|spa|eng|World *tggg your and Miguel|*tggg|12345}} |
||
+ | |||
− | * {{suggest|spa|eng|your and Miguel *jogar|*jogar|321}} |
||
+ | |- |
||
− | * {{suggest|spa|eng|World *tggg your and Miguel|*tggg|egg}} |
||
+ | | '''/stats''' |
||
− | * {{suggest|esp|eng|otro mundo|*mundohgg|MUNDO}} |
||
+ | | Return some statistics about pair usage, uptime, portion of time spent actively translating |
||
+ | | |
||
+ | *'''requests=N''' (optional): limit period-based stats to last N requests |
||
+ | | Note that period-based stats are limited to 3600 seconds by default (see -T argument to servlet.py) |
||
+ | <pre> |
||
+ | $ curl -Ss localhost:2737/stats|jq .responseData |
||
+ | { |
||
+ | "holdingPipes": 0, |
||
+ | "periodStats": { |
||
+ | "totTimeSpent": 10.760803, |
||
+ | "ageFirstRequest": 19.609394, |
||
+ | "totChars": 2718, |
||
+ | "requests": 8, |
||
+ | "charsPerSec": 252.58 |
||
+ | }, |
||
+ | "runningPipes": { |
||
+ | "eng-spa": 1 |
||
+ | }, |
||
+ | "useCount": { |
||
+ | "eng-spa": 8 |
||
+ | }, |
||
+ | "uptime": 26 |
||
+ | } |
||
+ | </pre> |
||
+ | |- |
||
+ | |} |
Revision as of 10:22, 10 June 2016
Kiara's page
Suggestion task:
Notes
1. How to work with APY from the command line: http://wiki.apertium.org/wiki/APY#Usage
2. How to launch Suggestions from the command line https://github.com/goavki/apertium-html-tools/pull/35
We should add a description here http://wiki.apertium.org/wiki/Apertium-apy
|-
| /stats
| Return some statistics about pair usage, uptime, portion of time spent actively translating
|
- requests=N (optional): limit period-based stats to last N requests
| Note that period-based stats are limited to 3600 seconds by default (see -T argument to servlet.py)
$ curl -Ss localhost:2737/stats|jq .responseData { "holdingPipes": 0, "periodStats": { "totTimeSpent": 10.760803, "ageFirstRequest": 19.609394, "totChars": 2718, "requests": 8, "charsPerSec": 252.58 }, "runningPipes": { "eng-spa": 1 }, "useCount": { "eng-spa": 8 }, "uptime": 26 }
|- |}