Class: Google::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1MessageOutcomePercents
- Inherits:
-
Object
- Object
- Google::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1MessageOutcomePercents
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/fcmdata_v1beta1/classes.rb,
lib/google/apis/fcmdata_v1beta1/representations.rb,
lib/google/apis/fcmdata_v1beta1/representations.rb
Overview
Percentage breakdown of message delivery outcomes. These categories are mutually exclusive. All percentages are calculated with countMessagesAccepted as the denominator. These categories may not account for all message outcomes.
Instance Attribute Summary collapse
-
#delivered ⇒ Float
The percentage of all accepted messages that were successfully delivered to the device.
-
#dropped_app_force_stopped ⇒ Float
The percentage of accepted messages that were dropped because the application was force stopped on the device at the time of delivery and retries were unsuccessful.
-
#dropped_device_inactive ⇒ Float
The percentage of accepted messages that were dropped because the target device is inactive.
-
#dropped_too_many_pending_messages ⇒ Float
The percentage of accepted messages that were dropped due to too many undelivered non-collapsible messages.
-
#pending ⇒ Float
The percentage of messages accepted on this day that were not dropped and not delivered, due to the device being disconnected (as of the end of the America/ Los_Angeles day when the message was sent to FCM).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleFirebaseFcmDataV1beta1MessageOutcomePercents
constructor
A new instance of GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleFirebaseFcmDataV1beta1MessageOutcomePercents
Returns a new instance of GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.
290 291 292 |
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 290 def initialize(**args) update!(**args) end |
Instance Attribute Details
#delivered ⇒ Float
The percentage of all accepted messages that were successfully delivered to
the device.
Corresponds to the JSON property delivered
249 250 251 |
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 249 def delivered @delivered end |
#dropped_app_force_stopped ⇒ Float
The percentage of accepted messages that were dropped because the application
was force stopped on the device at the time of delivery and retries were
unsuccessful.
Corresponds to the JSON property droppedAppForceStopped
256 257 258 |
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 256 def dropped_app_force_stopped @dropped_app_force_stopped end |
#dropped_device_inactive ⇒ Float
The percentage of accepted messages that were dropped because the target
device is inactive. FCM will drop messages if the target device is deemed
inactive by our servers. If a device does reconnect, we call
OnDeletedMessages() in our SDK instead of delivering the
messages.
Corresponds to the JSON property droppedDeviceInactive
266 267 268 |
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 266 def dropped_device_inactive @dropped_device_inactive end |
#dropped_too_many_pending_messages ⇒ Float
The percentage of accepted messages that were dropped due to too many
undelivered non-collapsible messages.
Specifically, each app instance can only have 100 pending messages stored on
our servers for a device which is disconnected. When that device reconnects,
those messages are delivered. When there are more than the maximum pending
messages, we call OnDeletedMessages() in our SDK instead of
delivering the messages.
Corresponds to the JSON property droppedTooManyPendingMessages
279 280 281 |
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 279 def @dropped_too_many_pending_messages end |
#pending ⇒ Float
The percentage of messages accepted on this day that were not dropped and not
delivered, due to the device being disconnected (as of the end of the America/
Los_Angeles day when the message was sent to FCM). A portion of these messages
will be delivered the next day when the device connects but others may be
destined to devices that ultimately never reconnect.
Corresponds to the JSON property pending
288 289 290 |
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 288 def pending @pending end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
295 296 297 298 299 300 301 |
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 295 def update!(**args) @delivered = args[:delivered] if args.key?(:delivered) @dropped_app_force_stopped = args[:dropped_app_force_stopped] if args.key?(:dropped_app_force_stopped) @dropped_device_inactive = args[:dropped_device_inactive] if args.key?(:dropped_device_inactive) @dropped_too_many_pending_messages = args[:dropped_too_many_pending_messages] if args.key?(:dropped_too_many_pending_messages) @pending = args[:pending] if args.key?(:pending) end |