aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Diagnostics/IEvent.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Diagnostics/IEvent.php')
-rw-r--r--lib/public/Diagnostics/IEvent.php45
1 files changed, 45 insertions, 0 deletions
diff --git a/lib/public/Diagnostics/IEvent.php b/lib/public/Diagnostics/IEvent.php
new file mode 100644
index 00000000000..dd664c4dad5
--- /dev/null
+++ b/lib/public/Diagnostics/IEvent.php
@@ -0,0 +1,45 @@
+<?php
+
+/**
+ * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
+namespace OCP\Diagnostics;
+
+/**
+ * Interface IEvent
+ *
+ * @since 8.0.0
+ */
+interface IEvent {
+ /**
+ * @return string
+ * @since 8.0.0
+ */
+ public function getId();
+
+ /**
+ * @return string
+ * @since 8.0.0
+ */
+ public function getDescription();
+
+ /**
+ * @return float
+ * @since 8.0.0
+ */
+ public function getStart();
+
+ /**
+ * @return float
+ * @since 8.0.0
+ */
+ public function getEnd();
+
+ /**
+ * @return float
+ * @since 8.0.0
+ */
+ public function getDuration();
+}