Class: Aws::LocationService::Types::ForecastedEvent

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb

Overview

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.

Constant Summary collapse

SENSITIVE =
[:geofence_properties]

Instance Attribute Summary collapse

Instance Attribute Details

#event_idString

The forecasted event identifier.

Returns:

  • (String)


3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 3144

class ForecastedEvent < Struct.new(
  :event_id,
  :geofence_id,
  :is_device_in_geofence,
  :nearest_distance,
  :event_type,
  :forecasted_breach_time,
  :geofence_properties)
  SENSITIVE = [:geofence_properties]
  include Aws::Structure
end

#event_typeString

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.

Returns:

  • (String)


3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 3144

class ForecastedEvent < Struct.new(
  :event_id,
  :geofence_id,
  :is_device_in_geofence,
  :nearest_distance,
  :event_type,
  :forecasted_breach_time,
  :geofence_properties)
  SENSITIVE = [:geofence_properties]
  include Aws::Structure
end

#forecasted_breach_timeTime

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

Returns:

  • (Time)


3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 3144

class ForecastedEvent < Struct.new(
  :event_id,
  :geofence_id,
  :is_device_in_geofence,
  :nearest_distance,
  :event_type,
  :forecasted_breach_time,
  :geofence_properties)
  SENSITIVE = [:geofence_properties]
  include Aws::Structure
end

#geofence_idString

The geofence identifier pertaining to the forecasted event.

Returns:

  • (String)


3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 3144

class ForecastedEvent < Struct.new(
  :event_id,
  :geofence_id,
  :is_device_in_geofence,
  :nearest_distance,
  :event_type,
  :forecasted_breach_time,
  :geofence_properties)
  SENSITIVE = [:geofence_properties]
  include Aws::Structure
end

#geofence_propertiesHash<String,String>

The geofence properties.

Returns:

  • (Hash<String,String>)


3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 3144

class ForecastedEvent < Struct.new(
  :event_id,
  :geofence_id,
  :is_device_in_geofence,
  :nearest_distance,
  :event_type,
  :forecasted_breach_time,
  :geofence_properties)
  SENSITIVE = [:geofence_properties]
  include Aws::Structure
end

#is_device_in_geofenceBoolean

Indicates if the device is located within the geofence.

Returns:

  • (Boolean)


3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 3144

class ForecastedEvent < Struct.new(
  :event_id,
  :geofence_id,
  :is_device_in_geofence,
  :nearest_distance,
  :event_type,
  :forecasted_breach_time,
  :geofence_properties)
  SENSITIVE = [:geofence_properties]
  include Aws::Structure
end

#nearest_distanceFloat

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

Returns:

  • (Float)


3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
# File 'gems/aws-sdk-locationservice/lib/aws-sdk-locationservice/types.rb', line 3144

class ForecastedEvent < Struct.new(
  :event_id,
  :geofence_id,
  :is_device_in_geofence,
  :nearest_distance,
  :event_type,
  :forecasted_breach_time,
  :geofence_properties)
  SENSITIVE = [:geofence_properties]
  include Aws::Structure
end