External Events
An ExternalEvent is a log that is sent to the cloud from a client application such as the Files.com CLI.
List External Events
SDK Method
external_event.List()
Return Values
Returns a *external_event.Iter and an error. Range over All() to receive files_sdk.ExternalEvent values and errors.
Check each loop error before using its resource. Next() and Err() remain supported.
Authorization Requirement
Requires a Site-Wide API key, or a User API key or session from a Site Administrator.
Additional Arguments
Show External Event
SDK Method
external_event.Find()
Return Values
Returns a files_sdk.ExternalEvent value and an error.
Authorization Requirement
Requires a Site-Wide API key, or a User API key or session from a Site Administrator.
ExternalEventFindParams Fields
| Field | Description |
|---|---|
| Id int64 Required | External Event ID. |
Create External Event
SDK Method
external_event.Create()
Return Values
Returns a files_sdk.ExternalEvent value and an error.
Authorization Requirement
Available to all authenticated keys or sessions.
ExternalEventCreateParams Fields
| Field | Description |
|---|---|
| Status string Required | Status of event. Possible values: success, failure, partial_failure, in_progress, skipped |
| Body string Required | Event body |
The ExternalEvent Object
Some of the methods above return a ExternalEvent object. The attributes of this object are listed below.
| Attribute | Description |
|---|---|
| Id int64 | Event ID |
| EventType string | Type of event being recorded. Possible values: ldap_sync, remote_server_sync, lockout, ldap_login, saml_login, client_log, pending_work, siem_http_destination |
| Status string | Status of event. Possible values: success, failure, partial_failure, in_progress, skipped |
| Body string | Event body |
| CreatedAt date-time | External event create date/time |
| BodyUrl string | Link to log file. |