Configuring Event Reports

See also. Event Reports configuration uses GuardMode Agent’s REST API. For a full list of available commands, see REST API documentation.

Configuring Event Reports is available through the Agent’s REST API (accessible from http://localhost:5000/swagger).

Viewing Event Reports configuration

To view the current Event Reports configuration, send a GET request to /settings/reports/file-event-report:

get
Authorizations
AuthorizationstringRequired

Basic Authorization header

Header parameters
api-versionstringRequired
Responses
200

Success

get
/settings/reports/file-event-report
200

Success

By default, Event Reports use the following settings:

  • enabled: false

  • Time zone: UTC

  • Reporting time: 08:00 AM

Listing time zones

To get the list of available time zones, send a GET request to /settings/timezones:

Returns current timezone configuration

get
Authorizations
AuthorizationstringRequired

Basic Authorization header

Header parameters
api-versionstringRequired
Responses
200

Current timezone configuration

get
/settings/timezone
200

Current timezone configuration

Listed time zones include offset, which accounts for daylight saving time.

Modifying Event Reports configuration

You can enable Event Reports and set the time zone using a PUT request to /settings/reports/file-event-report:

put
Authorizations
AuthorizationstringRequired

Basic Authorization header

Header parameters
api-versionstringRequired
Body
enabledbooleanRequired
Responses
200

Success

put
/settings/reports/file-event-report

Managing Included Paths for Event Reports

To view the current list of included paths for Event Reports, send a GET request to /settings/reports/file-event-report/included-paths:

get
Authorizations
AuthorizationstringRequired

Basic Authorization header

Header parameters
api-versionstringRequired
Responses
200

Success

get
/settings/reports/file-event-report/included-paths
200

Success

This endpoint returns a list of paths that are currently included in the Event Reports. Each path in this list is checked against the excluded paths to determine if it should be included in the report.

Adding Included Paths

To add a new path to the list of included paths, send a POST request to /settings/reports/file-event-report/included-paths:

post
Authorizations
AuthorizationstringRequired

Basic Authorization header

Header parameters
api-versionstringRequired
Body
pathstring · min: 1Required

Path to include

userstring | nullableOptional

Username for which the path should be included in file event reports

Responses
post
/settings/reports/file-event-report/included-paths

Deleting Included Paths

To remove a path from the list of included paths, send a DELETE request to /settings/reports/file-event-report/included-paths/{id}:

delete
Authorizations
AuthorizationstringRequired

Basic Authorization header

Path parameters
idstring · uuidRequired
Header parameters
api-versionstringRequired
Responses
delete
/settings/reports/file-event-report/included-paths/{id}

No content

Replace {id} with the identifier of the path you want to remove. You can obtain this identifier from the response of the GET request to view included paths.

Adding Event Reports reporting hours

To add new Event Reports reporting time, send a POST request to /settings/reports/file-event-report/hours with the time in HH:MM:SS format.

post
Authorizations
AuthorizationstringRequired

Basic Authorization header

Header parameters
api-versionstringRequired
Body
hourstring · timeRequired
Responses
200

Success

post
/settings/reports/file-event-report/hours

Deleting Event Reports reporting hours

You can remove reporting hours using a DELETE request to /settings/reports/file-event-report/hours with the time you want to remove in HH:MM:SS format.

delete
Authorizations
AuthorizationstringRequired

Basic Authorization header

Query parameters
hourstring · timeOptional
Header parameters
api-versionstringRequired
Responses
200

Success

delete
/settings/reports/file-event-report/hours

Tip. Event Reports require at least one reporting hour to work. Trying to remove the only remaining reporting hour will result in an error.

Last updated