summaryrefslogtreecommitdiffstats
path: root/lib/public/diagnostics/ieventlogger.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-10-03 20:39:09 +0200
committerRobin Appelman <icewind@owncloud.com>2014-10-20 13:38:38 +0200
commit6e08014781ea0099d7e4466dd48d80af63d8ab69 (patch)
tree393c2848c85c56faf108fb4add77ad26a3156f78 /lib/public/diagnostics/ieventlogger.php
parent2790bda4f8d6452e65e28935cee62e1ab5468acf (diff)
downloadnextcloud-server-6e08014781ea0099d7e4466dd48d80af63d8ab69.tar.gz
nextcloud-server-6e08014781ea0099d7e4466dd48d80af63d8ab69.zip
Rename namespace to Diagnostics
Diffstat (limited to 'lib/public/diagnostics/ieventlogger.php')
-rw-r--r--lib/public/diagnostics/ieventlogger.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/public/diagnostics/ieventlogger.php b/lib/public/diagnostics/ieventlogger.php
new file mode 100644
index 00000000000..fa5880bfea6
--- /dev/null
+++ b/lib/public/diagnostics/ieventlogger.php
@@ -0,0 +1,31 @@
+<?php
+/**
+ * Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+namespace OCP\Diagnostics;
+
+interface IEventLogger {
+ /**
+ * Mark the start of an event
+ *
+ * @param string $id
+ * @param string $description
+ */
+ public function start($id, $description);
+
+ /**
+ * Mark the end of an event
+ *
+ * @param string $id
+ */
+ public function end($id);
+
+ /**
+ * @return \OCP\Diagnostics\IEvent[]
+ */
+ public function getEvents();
+}