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
-
#collapsed ⇒ Float
The percentage of accepted messages that were collapsed by another message.
-
#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.
-
#dropped_ttl_expired ⇒ Float
The percentage of accepted messages that expired because Time To Live (TTL) elapsed before the target device reconnected.
-
#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.
305 306 307 |
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 305 def initialize(**args) update!(**args) end |
Instance Attribute Details
#collapsed ⇒ Float
The percentage of accepted messages that were collapsed by another message.
Corresponds to the JSON property collapsed
251 252 253 |
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 251 def collapsed @collapsed end |
#delivered ⇒ Float
The percentage of all accepted messages that were successfully delivered to
the device.
Corresponds to the JSON property delivered
257 258 259 |
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 257 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
264 265 266 |
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 264 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
274 275 276 |
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 274 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
287 288 289 |
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 287 def @dropped_too_many_pending_messages end |
#dropped_ttl_expired ⇒ Float
The percentage of accepted messages that expired because Time To Live (TTL) elapsed
before the target device reconnected.
Corresponds to the JSON property droppedTtlExpired
294 295 296 |
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 294 def dropped_ttl_expired @dropped_ttl_expired 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
303 304 305 |
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 303 def pending @pending end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
310 311 312 313 314 315 316 317 318 |
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 310 def update!(**args) @collapsed = args[:collapsed] if args.key?(:collapsed) @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) @dropped_ttl_expired = args[:dropped_ttl_expired] if args.key?(:dropped_ttl_expired) @pending = args[:pending] if args.key?(:pending) end |