ieventlogger.php 728 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. namespace OCP\Diagnostics;
  9. interface IEventLogger {
  10. /**
  11. * Mark the start of an event
  12. *
  13. * @param string $id
  14. * @param string $description
  15. */
  16. public function start($id, $description);
  17. /**
  18. * Mark the end of an event
  19. *
  20. * @param string $id
  21. */
  22. public function end($id);
  23. /**
  24. * @param string $id
  25. * @param string $description
  26. * @param float $start
  27. * @param float $end
  28. */
  29. public function log($id, $description, $start, $end);
  30. /**
  31. * @return \OCP\Diagnostics\IEvent[]
  32. */
  33. public function getEvents();
  34. }