Module Values.ForecastedEventSource

A forecasted event represents a geofence event in relation to the requested device state, that may occur given the provided device state and time horizon.

Sourcetype nonrec t = {
  1. eventId : Uuid.t option;
    (*

    The forecasted event identifier.

    *)
  2. geofenceId : Id.t option;
    (*

    The geofence identifier pertaining to the forecasted event.

    *)
  3. isDeviceInGeofence : Boolean.t option;
    (*

    Indicates if the device is located within the geofence.

    *)
  4. nearestDistance : NearestDistance.t option;
    (*

    The closest distance from the device's position to the geofence.

    *)
  5. eventType : ForecastedGeofenceEventType.t option;
    (*

    The event type, forecasting three states for which a device can be in relative to a geofence: ENTER: If a device is outside of a geofence, but would breach the fence if the device is moving at its current speed within time horizon window. EXIT: If a device is inside of a geofence, but would breach the fence if the device is moving at its current speed within time horizon window. IDLE: If a device is inside of a geofence, and the device is not moving.

    *)
  6. forecastedBreachTime : Timestamp.t option;
    (*

    The forecasted time the device will breach the geofence in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

    *)
  7. geofenceProperties : PropertyMap.t option;
    (*

    The geofence properties.

    *)
}
Sourceval make : ?eventId:??? -> ?geofenceId:??? -> ?isDeviceInGeofence:??? -> ?nearestDistance:??? -> ?eventType:??? -> ?forecastedBreachTime:??? -> ?geofenceProperties:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `Double of NearestDistance.t | `Enum of string | `Map of ([> `String of PropertyMapKeyString.t ] * [> `String of PropertyMapValueString.t ]) list | `String of Uuid.t | `Timestamp of Timestamp.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t