https://dl.dropbox.com/u/6745119/plugins/comWeave statistic can be sent to a database for further analyses. The bundle can be downloaded from here (2017-02-15)
Configuration
Code Block |
---|
language | xml |
---|
title | Weave statistics config |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="urn:com.cohga.server.config#1.0" xmlns:statistics |
...
Code Block |
---|
|
language | xml |
---|
title | Weave statistics config |
---|
collapse | true="urn:com.cohga.server.statistics.db#1.0">
<statistics:config>
<!-- datasource is required -->
<!-- The name of the data source that the records will be written to -->
<datasource>storage</datasource>
<!-- table is optional and will default to wv_statistics -->
<!-- This is the table where the records will be written -->
<!-- Weave will attempt to create the table if it doesn't exist -->
<table>wv_statistics</table>
<!-- maximumDelayInSeconds is optional and will default to 60 seconds -->
<!-- The maximum time to wait before writing any pending records -->
<maximumDelayInSeconds>60</maximumDelayInSeconds>
<!-- count is optional and will default to 30 -->
<!-- The minimum number of records that need to be available before they are written -->
<count>30</count>
</statistics:config>
</config> |
Configuration for ikartan.se
The table is managed together with the ikartan admin database in schema 'weave'
Code Block |
---|
language | sql |
---|
title | Weave statistics config ikartan |
---|
|
create schema weave;
-- Table: weave.wv_statistics
-- DROP TABLE weave.wv_statistics;
CREATE TABLE weave.wv_statistics
(
id serial primary key,
submitted timestamp without time zone NOT NULL,
duration integer NOT NULL,
userid character varying(50) NOT NULL,
ip character varying(50) NOT NULL,
request character varying(200) NOT NULL
); |
Configuration is located in config_ikartan/config_ikartan_common.xml
Code Block |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="urn:com.cohga.server.config#1.0" xmlns:statistics="urn:com.cohga.server.statistics.db#1.0">
....
<statistics:config>
<!-- datasource is required -->
<!-- The name of the data source that the records will be written to -->
<datasource>storage<<datasource>ds.users</datasource>
<!-- table is optional and will default to wv_statistics -->
<!-- This is the table where the records will be written -->
<!-- Weave will attempt to create the table if it doesn't exist -->
<table>wv<table>weave.wv_statistics</table>
<!-- maximumDelayInSeconds is optional and will default to 60 seconds -->
<!-- The maximum time to wait before writing any pending records -->
<maximumDelayInSeconds>60</maximumDelayInSeconds>
<!-- count is optional and will default to 30 -->
<!-- The minimum number of records that need to be available before they are written -->
<count>30</count>
</statistics:config>
...
</config> |