IRPCEventsAdmin.GetEventsRange
Administration API / specialized admin session idempotent
Gets events by ID range and filters, oldest or newest first, with an optional maximum count.
| Service | Event administration MFiles.IRPCEventsAdmin |
|---|---|
| gRPC method | /MFiles.IRPCEventsAdmin/GetEventsRange |
| HTTP (mf-http-grpc) | POST /grpc/v1/get-events-range |
| Request | GetEventsRangeRequest |
| Response | GetEventsRangeResponse |
| Book and level | Administration API, specialized |
| Kind | admin |
| Session | Required: the session ID from LogIn in the mfiles-session-id-bin metadata. |
| Idempotent | yes |
| Returns metadata structure version | no |
| Streaming | none (unary) |
Remarks
- Requires a vault session, the vault right
manage_events, andclient_data.versionset at login (see the service overview). - Set -1 explicitly in
oldest_event_to_get,newest_event_to_get,object_type_filterandobject_id_filterunless you filter on them; 0 is a real value, so a default request returns nothing. - Filters are combined with AND.
object_title_filterandevent_caused_by_usermust match exactly (event_caused_by_useris the account name, as inEvent.caused_by_user). The time filter applies only when bothstart_time_filterandend_time_filterare set. - Events are sorted by ID: ascending, or descending with
get_newest. To page, repeat the call witholdest_event_to_get(ornewest_event_to_getwithget_newest) moved past the last ID you received. Internal notification-matching events are never returned. - Fails with "Your event log request exceeds the maximum data size." when the matching events hold more data than the vault allows in one request (512 MiB by default); narrow the range.
Event.notification_object_infois filled only in vaults with the advanced event log features.
Request: GetEventsRangeRequest
Gets the specified range of events from the vault.
Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.
| Field | Type | Description |
|---|---|---|
oldest_event_to_get | int64 | The lowest event ID to return, or -1 for no lower bound. |
newest_event_to_get | int64 | The highest event ID to return, or -1 for no upper bound. The default 0 returns nothing. |
max_events_to_return | uint32 | The maximum number of events to return; 0 for no limit. With get_newest the newest matching events are returned, otherwise the oldest. |
get_newest | bool | True to return the newest matching events first (descending IDs), false for the oldest first. |
object_type_filter | int32 | Only events of objects of this object type, or -1 for all. |
object_id_filter | int32 | Only events of the object with this ID, or -1 for all. |
object_title_filter | string | Only events of objects with exactly this title; empty for all. |
object_class_filter | int32 | Only events of objects of this class; used only when has_class_filter is true. |
has_class_filter | bool | True to apply object_class_filter. |
start_time_filter | google.protobuf.Timestamp | Only events at or after this time (UTC). Used only together with end_time_filter. |
end_time_filter | google.protobuf.Timestamp | Only events at or before this time (UTC). Used only together with start_time_filter. |
event_types | EventTypeArray | Only events of these types; empty for all types. |
event_types.event_types[] | repeated EventType | The event types. |
event_caused_by_user | string | Only events caused by this account name; empty for all. |
Response: GetEventsRangeResponse
Gets the specified range of events from the vault.
Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.
| Field | Type | Description |
|---|---|---|
events[] | repeated Event | The matching events. See Event. |
events[].id | int64 | The ID of the event. |
events[].type | EventType | The type of the event. |
events[].category | EventCategory | The category of the event.Values: EVENT_CATEGORY_UNDEFINED (0), EVENT_CATEGORY_FILE_ACCESS (1), EVENT_CATEGORY_OBJECT_CHANGE (2), EVENT_CATEGORY_NEW_OBJECT (3), EVENT_CATEGORY_OBJECT_OPERATION (4), EVENT_CATEGORY_SYSTEM (5), EVENT_CATEGORY_REQUEST (6), EVENT_CATEGORY_METADATA_STRUCTURE_CHANGE (7), EVENT_CATEGORY_PUBLIC_LINK (8), EVENT_CATEGORY_CUSTOM_EVENT (9). |
events[].timestamp_utc | google.protobuf.Timestamp | The timestamp of this event. |
events[].caused_by_user | string | The account name of the user whose activity lead to this event. If no user (this is a system operation), this is an empty string. |
events[].caused_by_user_full_name | string | The full name of the user whose activity lead to this event. If no user (this is a system operation), this is an empty string. |
events[].caused_by_user_id | int32 | The ID of the user account whose activity lead to this event. If no user (this is a system operation), this is zero. |
events[].data | EventTypeSpecificDataUnion | Additional event type -specific data as a union. |
events[].data.file_accessed | EventTypeSpecificDataUnion.FileAccessedData (oneof data) | |
events[].data.object_changed | EventTypeSpecificDataUnion.ObjectChangedData (oneof data) | |
events[].data.object_created | BasicDocVerInfo (oneof data) | |
events[].data.rolled_back | EventTypeSpecificDataUnion.RolledBackData (oneof data) | |
events[].data.checked_out | BasicDocVerInfo (oneof data) | |
events[].data.checked_in | BasicDocVerInfo (oneof data) | |
events[].data.checkout_undone | BasicDocVerInfo (oneof data) | |
events[].data.object_deleted | BasicDocInfo (oneof data) | |
events[].data.object_version_destroyed | BasicDocVerInfo (oneof data) | |
events[].data.object_destroyed | BasicDocInfo (oneof data) | |
events[].data.logged_in | EventTypeSpecificDataUnion.LoggedInData (oneof data) | |
events[].data.logged_out | EventTypeSpecificDataUnion.LoggedOutData (oneof data) | |
events[].data.backup_started | EventTypeSpecificDataUnion.BackupStartedData (oneof data) | |
events[].data.backup_completed | EventTypeSpecificDataUnion.BackupCompletedData (oneof data) | |
events[].data.check_in_requested | BasicDocInfo (oneof data) | |
events[].data.assigned | EventTypeSpecificDataUnion.AssignedData (oneof data) | |
events[].data.free_request | EventTypeSpecificDataUnion.FreeRequestData (oneof data) | |
events[].data.assigned_to | BasicDocVerInfo (oneof data) | |
events[].data.completed_by | BasicDocVerInfo (oneof data) | |
events[].data.assignment_approved_by | BasicDocVerInfo (oneof data) | |
events[].data.assignment_rejected_by | BasicDocVerInfo (oneof data) | |
events[].data.state_changed | BasicDocVerInfo (oneof data) | |
events[].data.object_notification | EventTypeSpecificDataUnion.ObjectNotificationData (oneof data) | |
events[].data.object_undeleted | BasicDocInfo (oneof data) | Information on the concerned object. |
events[].data.user_added | BasicUserAccountInfo (oneof data) | Information on the concerned user account. |
events[].data.user_changed | BasicUserAccountInfo (oneof data) | Information on the concerned user account. |
events[].data.user_deleted | BasicUserAccountInfo (oneof data) | Information on the concerned user account. |
events[].data.user_group_added | BasicUserGroupInfo (oneof data) | Information on the concerned user group. |
events[].data.user_group_changed | BasicUserGroupInfo (oneof data) | Information on the concerned user group. |
events[].data.user_group_deleted | BasicUserGroupInfo (oneof data) | Information on the concerned user group. |
events[].data.event_log_exported | EventTypeSpecificDataUnion.EventLogExportedData (oneof data) | |
events[].data.event_log_cleared | EventTypeSpecificDataUnion.EventLogClearedData (oneof data) | |
events[].data.vault_restored | VaultBasic (oneof data) | The basic definition of the concerned vault. |
events[].data.vault_created | VaultBasic (oneof data) | The basic definition of the concerned vault. |
events[].data.state_transition_signature_settings_added | StateTransitionSignatureSettingsForEvents (oneof data) | The concerned workflow state transition settings. |
events[].data.state_transition_signature_settings_changed | StateTransitionSignatureSettingsForEvents (oneof data) | The concerned workflow state transition settings. |
events[].data.state_transition_signature_settings_removed | StateTransitionSignatureSettingsForEvents (oneof data) | The concerned workflow state transition settings. |
events[].data.vault_variable_changed | EventTypeSpecificDataUnion.VaultVariableChangedData (oneof data) | |
events[].data.vault_copied | EventTypeSpecificDataUnion.VaultCopiedData (oneof data) | |
events[].data.license_prevented_advanced_event_log | EventTypeSpecificDataUnion.LicensePreventedAdvancedEventLogData (oneof data) | |
events[].data.public_link_created | EventTypeSpecificDataUnion.PublicLinkCreatedData (oneof data) | |
events[].data.public_link_file_downloaded | EventTypeSpecificDataUnion.PublicLinkFileDownloadedData (oneof data) | |
events[].data.public_link_deleted | EventTypeSpecificDataUnion.PublicLinkDeletedData (oneof data) | |
events[].data.public_link_accessed | EventTypeSpecificDataUnion.PublicLinkAccessedData (oneof data) | |
events[].data.conflict_resolved_in_favor_of_incoming_changes | EventTypeSpecificDataUnion.ConflictResolvedInFavorOfIncomingChangesData (oneof data) | |
events[].data.conflict_resolved_in_favor_of_local_changes | EventTypeSpecificDataUnion.ConflictResolvedInFavorOfLocalChangesData (oneof data) | |
events[].data.discarded_conflict_changes_restored_as_new_version | EventTypeSpecificDataUnion.DiscardedConflictChangesRestoredAsNewVersionData (oneof data) | |
events[].data.user_mentioned_in_comment | BasicDocVerInfo (oneof data) | |
events[].data.vault_login_account_added | BasicVaultLoginAccountInfo (oneof data) | Information on the concerned vault login account. |
events[].data.vault_login_account_changed | BasicVaultLoginAccountInfo (oneof data) | Information on the concerned vault login account. |
events[].data.vault_login_account_deleted | BasicVaultLoginAccountInfo (oneof data) | Information on the concerned vault login account. |
events[].data.external_link_access_type_changed | ExternalLinkEventData (oneof data) | Shared-link data for the access-type-changed event. |
events[].data.external_link_anyone_with_link_expiration_updated | ExternalLinkEventData (oneof data) | Shared-link data for the anyone-with-the-link expiration-updated event. |
events[].data.external_link_visitors_added | ExternalLinkEventData (oneof data) | Shared-link data for the visitors-added event. |
events[].data.external_link_visitors_removed | ExternalLinkEventData (oneof data) | Shared-link data for the visitors-removed event. |
events[].data.external_link_visitor_expiration_updated | ExternalLinkEventData (oneof data) | Shared-link data for the visitor expiration-updated event. |
events[].data.external_link_accessed_by_visitor | ExternalLinkEventData (oneof data) | Shared-link data for the accessed-by-visitor event. |
events[].data.external_link_manage_visitors_viewed | ExternalLinkEventData (oneof data) | Shared-link data for the manage-visitors-dialog-viewed event. |
events[].data.external_link_visitors_viewed | ExternalLinkEventData (oneof data) | Shared-link data for the visitors-viewed event. |
events[].notification_created | bool | Tells if the notifications have been created. |
events[].notification_object_info | DocumentInfoForNotifications | Document info. This is valid only until the notifications have been created. |
events[].notification_object_info.object_info | ObjectVersionEx | Document information. |
events[].notification_object_info.properties[] | repeated PropertyValue | Document properties. |
events[].notification_object_info.acl | ACLWithNames | Document access control list. |
events[].notification_object_info.old_properties[] | repeated PropertyValue | Old document properties. Used with some events only. |
events[].notification_object_info.old_acl | ACLWithNames | Document access control list. Used with some events only. |
events[].notification_object_info.property_acls[] | repeated PVACL | ACLs for property values. |
events[].notification_object_info.old_property_acls[] | repeated PVACL | ACLs for old property values. |
events[].notification_object_info.translated_lookup_names[] | repeated ItemNames | Translated names for lookups. |
events[].xml_data | string | The data represented in XML. |
has_disabled_event_types_info | bool | True when disabled_event_types is filled; always true on current servers. |
disabled_event_types | EventTypeArray | The event types that the vault's settings exclude from logging, so their absence from the results does not mean nothing happened. |
disabled_event_types.event_types[] | repeated EventType | The event types. |
Related methods
- GetEvents -- Gets all events of the vault.