Struct omaha_client::protocol::request::Event
source · pub struct Event {
pub event_type: EventType,
pub event_result: EventResult,
pub errorcode: Option<EventErrorCode>,
pub previous_version: Option<String>,
pub next_version: Option<String>,
pub download_time_ms: Option<u64>,
}
Expand description
An event that is being reported to the Omaha service.
See https://github.com/google/omaha/blob/HEAD/doc/ServerProtocolV3.md#event-request
Fields§
§event_type: EventType
This is the event type for the event (see the enum for more information).
This is the eventtype attribute of the event object.
event_result: EventResult
This is the result code for the event. All event types share a namespace for result codes.
This is the eventresult attribute of the event object.
errorcode: Option<EventErrorCode>
This is an opaque error value that may be provided. It’s meaning is application specific.
This is the errorcode attribute of the event object.
previous_version: Option<String>
The version of the app that was present on the machine at the time of the update-check of this update flow, regardless of the success or failure of the update operation.
next_version: Option<String>
The version of the app that the update flow to which this event belongs attempted to reach, regardless of success or failure of the update operation.
download_time_ms: Option<u64>
For events representing a download, the time elapsed between the start of the download and
the end of the download, in milliseconds. For events representing an entire update flow,
the sum of all such download times over the course of the update flow.
Sent in