Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 2b12ed6

Browse files
committed
Added details with statistics for individually SPs and IdPs
1 parent 91a2d74 commit 2b12ed6

15 files changed

+680
-236
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
5+
[Added]
6+
- Added details with statistics for individually SPs and IdPs
57

68
## [v1.5.0]
79
[Added]

config-templates/module_statisticsproxy.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,9 @@
4444
'identityProvidersMapTableName' => 'identityProvidersMap',
4545

4646
/*
47-
* Fill the table name for serviceProviders
47+
* Fill the table name for statistics
4848
*/
49-
'serviceProvidersTableName' => 'serviceProviders',
50-
51-
/*
52-
* Fill the table name for serviceProviders
53-
*/
54-
'serviceProvidersMapTableName' => 'serviceProvidersMap',
49+
'statisticsTableName' => 'statisticsTableName',
5550

5651
/*
5752
* Fill true, if you want to use encryption, false if not.

config-templates/tables.sql

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
11
--Statistics for IdPs
2-
CREATE TABLE identityProviders (
3-
year INT NOT NULL,
4-
month INT NOT NULL,
5-
day INT NOT NULL,
6-
sourceIdp VARCHAR(255) NOT NULL,
7-
count INT,
8-
INDEX (sourceIdp),
9-
INDEX (year),
10-
INDEX (year,month),
11-
INDEX (year,month,day),
12-
PRIMARY KEY (year, month, day, sourceIdp)
13-
);
14-
15-
--Statistics for services
16-
CREATE TABLE serviceProviders(
17-
year INT NOT NULL,
18-
month INT NOT NULL,
19-
day INT NOT NULL,
20-
service VARCHAR(255) NOT NULL,
21-
count INT,
22-
INDEX (service),
23-
INDEX (year),
24-
INDEX (year,month),
25-
INDEX (year,month,day),
26-
PRIMARY KEY (year, month, day, service)
2+
CREATE TABLE statistics (
3+
year INT NOT NULL,
4+
month INT NOT NULL,
5+
day INT NOT NULL,
6+
sourceIdp VARCHAR(255) NOT NULL,
7+
service VARCHAR(255) NOT NULL,
8+
count INT,
9+
INDEX (sourceIdp),
10+
INDEX (service),
11+
INDEX (year),
12+
INDEX (year,month),
13+
INDEX (year,month,day),
14+
PRIMARY KEY (year, month, day, sourceIdp, service)
2715
);
2816

2917
--Tables for mapping identifier to name
@@ -33,7 +21,6 @@ CREATE TABLE identityProvidersMap(
3321
PRIMARY KEY (entityId)
3422
);
3523

36-
DROP TABLE serviceProvidersMap IF EXISTS;
3724
CREATE TABLE serviceProvidersMap(
3825
identifier VARCHAR(255) NOT NULL,
3926
name VARCHAR(255) NOT NULL,

dictionaries/Proxystatistics.definition.json

Lines changed: 60 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,23 +108,75 @@
108108
"cs": "AAI Statistiky"
109109
},
110110
"templates/identityProviders_legend": {
111-
"en": "The chart and the table show number of logins from each identity provider in selected time range.",
112-
"cs": "Graf s tabulkou ukazují počet přihlášení od každého poskytovatele identity ve zvoleném časovém rozmezí."
111+
"en": "The chart and the table show number of logins from each identity provider in selected time range. Click a specific identity provider to view detailed statistics for that identity provider.",
112+
"cs": "Graf s tabulkou ukazují počet přihlášení od každého poskytovatele identity ve zvoleném časovém rozmezí. Kliknutím na konkrétního poskytovatele identit zobrazíte detailní statistiky pro daného poskytovatele identit."
113113
},
114114
"templates/serviceProviders_legend": {
115-
"en": "The chart and the table show number of logins to each service provider in selected time range. Only first access to the service is counted, following single sign-on accesses are not counted, because they are not going through the Proxy.",
116-
"cs": "Graf s tabulkou ukazují přihlášení ke každé službě ve zvoleném časovém rozmezí. Počítá se pouze první přístup ke službě, protože další již nejdou přes Proxy."
115+
"en": "The chart and the table show number of logins to each service provider in selected time range. Only first access to the service is counted, following single sign-on accesses are not counted, because they are not going through the Proxy. Click a specific service to view detailed statistics for that service.",
116+
"cs": "Graf s tabulkou ukazují přihlášení ke každé službě ve zvoleném časovém rozmezí. Počítá se pouze první přístup ke službě, protože další již nejdou přes Proxy. Kliknutím na konkrétní službu zobrazíte detailní statistiky pro danou službu."
117117
},
118118
"templates/summary_logins_info": {
119119
"en": "The chart shows overall number of logins from identity providers for each day.",
120120
"cs": "Graf zobrazuje počet přihlášení za každý den."
121121
},
122122
"templates/summary_idps_info": {
123-
"en": "The chart shows number of logins from each identity provider in selected time range.",
124-
"cs": "Graf zobrazuje počet přihlášení od každého poskytovatele identity ve zvoleném časovém rozmezí."
123+
"en": "The chart shows number of logins from each identity provider in selected time range. Click a specific identity provider to view detailed statistics for that identity provider.",
124+
"cs": "Graf zobrazuje počet přihlášení od každého poskytovatele identity ve zvoleném časovém rozmezí. Kliknutím na konkrétního poskytovatele identit zobrazíte detailní statistiky pro daného poskytovatele identit."
125125
},
126126
"templates/summary_sps_info": {
127-
"en": "The chart shows number of logins to each service provider in selected time range. Only first access to the service is counted, following single sign-on accesses are not counted, because they are not going through the Proxy.",
128-
"cs": "Graf zobrazuje počet přihlášení ke každé službě ve zvoleném časovém rozmezí. Počítá se pouze první přístup ke službě, následující přístupy neprocházejí přes Proxy."
127+
"en": "The chart shows number of logins to each service provider in selected time range. Only first access to the service is counted, following single sign-on accesses are not counted, because they are not going through the Proxy. Click a specific service to view detailed statistics for that service.",
128+
"cs": "Graf zobrazuje počet přihlášení ke každé službě ve zvoleném časovém rozmezí. Počítá se pouze první přístup ke službě, následující přístupy neprocházejí přes Proxy. Kliknutím na konkrétní službu zobrazíte detailní statistiky pro danou službu."
129+
},
130+
"templates/spDetail_header_name": {
131+
"en": "Detail statistics for Service Provider: ",
132+
"cs": "Podrobné statistiky služby: "
133+
},
134+
"templates/spDetail_header_identifier": {
135+
"en": "Detail statistics for Service Provider with identifier: ",
136+
"cs": "Podrobné statistiky služby s identifikátorem: "
137+
},
138+
"templates/spDetail_dashboard_header": {
139+
"en": "Number of logins",
140+
"cs": "Počet přihlášení"
141+
},
142+
"templates/spDetail_dashboard_legend": {
143+
"en": "The chart shows number of logins to this service for each day.",
144+
"cs": "Graf zobrazuje počet přihlášení k dané službě za každý den."
145+
},
146+
"templates/spDetail_graph_header": {
147+
"en": "Used identity providers",
148+
"cs": "Použití poskytovatelé identit"
149+
},
150+
"templates/spDetail_graph_legend": {
151+
"en": "The chart and the table shows used identity providers to login to this service provider in selected time range. Only first access to the service is counted, following single sign-on accesses are not counted, because they are not going through the Proxy.",
152+
"cs": "Graf s tabulkou ukazují použité poskytovatele identit pro přihlášení k této službě ve zvoleném časovém rozmezí. Počítá se pouze první přístup ke službě, protože další již nejdou přes Proxy."
153+
},
154+
"templates/idpDetail_header_name": {
155+
"en": "Detail usage of Identity Provider: ",
156+
"cs": "Detail využití poskytovatele identit: "
157+
},
158+
"templates/idpDetail_header_entityId": {
159+
"en": "Detail usage for Service Provider with entityId: ",
160+
"cs": "Detail využití poskytovatele identit s entityId: "
161+
},
162+
"templates/idpDetail_dashboard_header": {
163+
"en": "Number of usage of identity provider",
164+
"cs": "Počet přístupů skrze poskytovatele identit"
165+
},
166+
"templates/idpDetail_dashboard_legend": {
167+
"en": "The chart shows number of logins using this identity provider for each day.",
168+
"cs": "Graf zobrazuje počet přihlášení tímto poskytovatelem identit za každý den."
169+
},
170+
"templates/idpDetail_graph_header": {
171+
"en": "Accessed service providers",
172+
"cs": "Služby, ke kterým bylo přistupováno"
173+
},
174+
"templates/idpDetail_graph_legend": {
175+
"en": "The chart and the table shows accessed service providers by this identity provider in selected time range. Only first access to the service is counted, following single sign-on accesses are not counted, because they are not going through the Proxy.",
176+
"cs": "Graf s tabulkou ukazují služby, ke kterým bylo přistoupeno daným poskytovatelem identit ve zvoleném časovém rozmezí. Počítá se pouze první přístup ke službě, protože další již nejdou přes Proxy."
177+
},
178+
"btn_label_back_to_stats": {
179+
"en": "Back to overall statistics",
180+
"cs": "Zpět na přehled celkových statistik"
129181
}
130182
}

0 commit comments

Comments
 (0)