Class: Google::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1Data

Inherits:
Object
  • Object
show all
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

Data detailing messaging delivery

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirebaseFcmDataV1beta1Data

Returns a new instance of GoogleFirebaseFcmDataV1beta1Data.



116
117
118
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 116

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#count_messages_acceptedFixnum

Count of messages accepted by FCM intended for Android devices. The targeted device must have opted in to the collection of usage and diagnostic information. Corresponds to the JSON property countMessagesAccepted

Returns:

  • (Fixnum)


79
80
81
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 79

def count_messages_accepted
  @count_messages_accepted
end

#count_notifications_acceptedFixnum

Count of notifications accepted by FCM intended for Android devices. The targeted device must have opted in to the collection of usage and diagnostic information. Corresponds to the JSON property countNotificationsAccepted

Returns:

  • (Fixnum)


86
87
88
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 86

def count_notifications_accepted
  @count_notifications_accepted
end

#delivery_performance_percentsGoogle::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1DeliveryPerformancePercents

Overview of delivery performance for messages that were successfully delivered. All percentages are calculated with countMessagesAccepted as the denominator. These categories are not mutually exclusive; a message can be delayed for multiple reasons. Corresponds to the JSON property deliveryPerformancePercents



94
95
96
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 94

def delivery_performance_percents
  @delivery_performance_percents
end

#message_insight_percentsGoogle::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1MessageInsightPercents

Additional information about message delivery. All percentages are calculated with countMessagesAccepted as the denominator. Corresponds to the JSON property messageInsightPercents



100
101
102
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 100

def message_insight_percents
  @message_insight_percents
end

#message_outcome_percentsGoogle::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1MessageOutcomePercents

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. Corresponds to the JSON property messageOutcomePercents



107
108
109
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 107

def message_outcome_percents
  @message_outcome_percents
end

#proxy_notification_insight_percentsGoogle::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1ProxyNotificationInsightPercents

Additional information about proxy notification delivery. All percentages are calculated with countNotificationsAccepted as the denominator. Corresponds to the JSON property proxyNotificationInsightPercents



114
115
116
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 114

def proxy_notification_insight_percents
  @proxy_notification_insight_percents
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



121
122
123
124
125
126
127
128
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 121

def update!(**args)
  @count_messages_accepted = args[:count_messages_accepted] if args.key?(:count_messages_accepted)
  @count_notifications_accepted = args[:count_notifications_accepted] if args.key?(:count_notifications_accepted)
  @delivery_performance_percents = args[:delivery_performance_percents] if args.key?(:delivery_performance_percents)
  @message_insight_percents = args[:message_insight_percents] if args.key?(:message_insight_percents)
  @message_outcome_percents = args[:message_outcome_percents] if args.key?(:message_outcome_percents)
  @proxy_notification_insight_percents = args[:proxy_notification_insight_percents] if args.key?(:proxy_notification_insight_percents)
end