Activities
With the Activities method, you can measure any activity in the system that is critical to the functioning of the application or business.
The Streply\Activity
method consists of the following parameters:
function Activity( string $message, array $params = [], ?string $channel = null ): void
(string) $message
- Name of the activity(array) $params
- Parameters(?string) $channel
- Activity channel (group)
To send an activity, e.g. a correct login to the system, simply call:
Streply\Activity('users.login');
For example, the ID of the logged-in user can be added as a parameter:
Streply\Activity('users.login', ['userId' => 1]);
or by adding parameters and a group:
Streply\Activity( 'users.login', [ 'userId' => 1 ], 'users' );
Package
streply/streply-php
Repository
https://github.com/streply/streply-php