pdf-aggregation-statistics/README.md

23 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

# PDF Aggregation Statistics [![Build Status](https://jenkins-dnet.d4science.org/buildStatus/icon?job=PDF+Aggregation+Statistics)](https://jenkins-dnet.d4science.org/job/PDF%20Aggregation%20Statistics/)
2023-06-20 21:57:03 +02:00
This is a public API to get specific statistics from the PDF Aggregation Service.<br>
2023-08-01 14:32:49 +02:00
This service is designed to respond as fast as possible, by caching the relevant data in memory, instead of running new queries to the database, for every request.
2023-10-26 12:06:07 +02:00
**The cached data is updated every 6 hours**, by default.<br>
It is possible to configure the "**cacheUpdateInterval**" value inside the [__application.yml__](https://code-repo.d4science.org/lsmyrnaios/pdf-aggregation-statistics/src/branch/master/src/main/resources/application.yml) file.
2023-06-20 21:57:03 +02:00
<br>
<br>
**Statistics API**:
- "**getNumberOfPayloadsForDatasource**" endpoint: **http://\<IP\>:\<PORT\>/api/stats/getNumberOfPayloadsForDatasource?datasourceId=\<givenDatasourceId\>** <br>
This endpoint returns the number of payloads which belong to the datasource specified by the given datasourceID.
<br>
<br>
**To install and run the application**:
- Run ```git clone``` and then ```cd pdf_aggregation_statistics```.
2023-06-20 21:42:53 +02:00
- Set the preferable values inside the [__application.yml__](https://code-repo.d4science.org/lsmyrnaios/pdf-aggregation-statistics/src/branch/master/src/main/resources/application.yml) file.
- Execute the ```installAndRun.sh``` script which builds and runs the app.<br>
If you want to just run the app, then run the script with the argument "1": ```./installAndRun.sh 1```.<br>
If you want to build and run the app on a **Docker Container**, then run the script with the argument "0" followed by the argument "1": ```./installAndRun.sh 0 1```.<br>
2023-10-05 14:21:52 +02:00
<br>