Módosítások

FederationStats

534 bájt hozzáadva, 2010. május 18., 16:30
HTTP-Post feeding, api keys
TARGETDIR="/tmp/stats"
ENTITYID="idp-entity-id"
APIKEY="aaa....."
AUDIT="/path/to/audit_r7.py"
echo "ENTITYID $ENTITYID
APIKEY $APIKEY
DATE $DATE
The federation statistics rails project contains the <code>script/stat_parser/file.rb</code> command which can process the statistics format and load the data to the database. Note that this script currently contains an absolute path for the <code>script/runner</code> script, so you must fix this before use.
== Using HTTP-Post to feed the database ==
When deployed, the rails project provides a <code>/import_stats</code> URL to which one could POST the generated statistics file.
 
== Creating IdPs ==
You must create records for the IdPs from which the application accepts statistics. This could be done via the <code>/entities/new</code> URL. The name of the entity must be the entityID, the type must be 'idp'.
 
=== API keys ===
Every IdP record in the database will contain a 40 character length API key.
[[Category:Csonkok]]
565
szerkesztés

Navigációs menü