From 782e8d703391c3dc8e57be1ee1a1b76bf89427a5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Fri, 27 Feb 2009 07:52:12 +0000
Subject: [PATCH] updated statistics configuration...

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1336 44740490-163a-0410-bde0-09ae8108e29a
---
 .../config-templates/module_statistics.php    | 44 +++++++++++++++----
 1 file changed, 36 insertions(+), 8 deletions(-)

diff --git a/modules/statistics/config-templates/module_statistics.php b/modules/statistics/config-templates/module_statistics.php
index 61e74c7fa..0f19120f7 100644
--- a/modules/statistics/config-templates/module_statistics.php
+++ b/modules/statistics/config-templates/module_statistics.php
@@ -27,11 +27,11 @@ $config = array (
 	
 	'statrules' => array(
 		'sso_hoursday' => array(
-			'name' 		=> 'SP logins 15 min slots through one day',
+			'name' 		=> 'SSO to service (per 15min)',
 			'descr'		=> 'The number of logins at a Service Provider divided into slots of one hour. Each file contains data for one day (24 hours)',
 		
 			'action' 	=> 'saml20-sp-SSO',
-			'col'		=> 5,				// Service Provider EntityID
+			'col'		=> 6,				// Service Provider EntityID
 			'slot'		=> 60*15,			// Slots of 15 minutes
 			'fileslot'	=> 60*60*24,		// One day (24 hours) file slots
 			'axislabelint' => 6*4,			// Number of slots per label. 4 per hour *6 = 6 hours 
@@ -40,24 +40,40 @@ $config = array (
 			'dateformat-intra'	=> 'j. M H:i', 		//  4. Mars 12:30
 		),
 		'sso_day80' => array(
-			'name' 		=> 'SP logins per day slots through 80 days',
+			'name' 		=> 'SSO to service (per day for 80 days)',
 			'descr'		=> 'The number of logins at a Service Provider divided into slots of one day. Each file contains data for 80 days',
 		
 			'action' 	=> 'saml20-sp-SSO',
-			'col'		=> 5,				// Service Provider EntityID
+			'col'		=> 6,				// Service Provider EntityID
 			'slot'		=> 60*60*24,		// Slots of 1 day (24 hours)
 			'fileslot'	=> 60*60*24*80,		// 80 days of data in each file
 			'axislabelint' => 7,			// Number of slots per label. 7 days => 1 week
 			
+			'dateformat-period'	=> 'j. M', 		//  4. Mars
+			'dateformat-intra'	=> 'j. M', 		//  4. Mars
+		),
+		'sso_day80realm' => array(
+			'name' 		=> 'SP by realm (per day for 80 days)',
+			'descr'		=> 'The number of logins at a Service Provider divided into slots of one day. Each file contains data for 80 days',
+		
+			'action' 	=> 'saml20-idp-SSO',
+			'col'		=> 8,				// Service Provider EntityID
+			'slot'		=> 60*60*24,		// Slots of 1 day (24 hours)
+			'fileslot'	=> 60*60*24*80,		// 80 days of data in each file
+			'axislabelint' => 7,			// Number of slots per label. 7 days => 1 week
+		
+			'graph.total' => TRUE,
+
+
 			'dateformat-period'	=> 'j. M', 		//  4. Mars
 			'dateformat-intra'	=> 'j. M', 		//  4. Mars
 		),
 		'sso_hoursweek' => array(
-			'name' 		=> 'SP logins per hour through one week',
+			'name' 		=> 'SSO to service (per hour for a week)',
 			'descr'		=> 'The number of logins at a Service Provider divided into slots of one hour. Each file contains data for one week.',
 		
 			'action' 	=> 'saml20-sp-SSO',
-			'col'		=> 5,				// Service Provider EntityID
+			'col'		=> 6,				// Service Provider EntityID
 			'slot'		=> 60*60,			// Slots of one hour
 			'fileslot'	=> 60*60*24*7,		// 7 days of data in each file
 			'axislabelint' => 24,			// Number of slots per label. 24 is one each day
@@ -66,11 +82,11 @@ $config = array (
 			'dateformat-intra'	=> 'j. M H:i', 		//  4. Mars 12:30
 		),
 		'sso_days' => array(
-			'name' 		=> 'SP logins per day through 30 days',
+			'name' 		=> 'SSO to service (per day for a month)',
 			'descr'		=> 'The number of logins at a Service Provider divided into slots of one day. Each file contains data for 30 days.',
 		
 			'action' 	=> 'saml20-sp-SSO',
-			'col'		=> 5,				// Service Provider EntityID
+			'col'		=> 6,				// Service Provider EntityID
 			'slot'		=> 60*60*24,		// Slots of one day
 			'fileslot'	=> 60*60*24*30,		// 30 days of data in each file
 			'axislabelint' => 7,			// Number of slots per label. 7 days => 1 week
@@ -78,7 +94,19 @@ $config = array (
 			'dateformat-period'	=> 'j. M Y H:i', 	//  4. Mars 12:30
 			'dateformat-intra'	=> 'j. M', 			//  4. Mars
 		),
+		'slo_days' => array(
+			'name' 		=> 'Logout (per day for a month)',
+			'descr'		=> 'The number of logouts divided into slots of one day. Each file contains data for 30 days.',
 		
+			'action' 	=> 'saml20-idp-SLO',
+			'col'		=> 7,				// Service Provider EntityID that initiated the logout.
+			'slot'		=> 60*60*24,		// Slots of one day
+			'fileslot'	=> 60*60*24*30,		// 30 days of data in each file
+			'axislabelint' => 7,			// Number of slots per label. 7 days => 1 week
+			
+			'dateformat-period'	=> 'j. M Y H:i', 	//  4. Mars 12:30
+			'dateformat-intra'	=> 'j. M', 			//  4. Mars
+		),
 		
 	),
 
-- 
GitLab