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.



102
103
104
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 102

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

Instance Attribute Details

#count_messages_acceptedFixnum

Count of messages accepted by FCM intended to 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

#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



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

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



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

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



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

def message_outcome_percents
  @message_outcome_percents
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

def update!(**args)
  @count_messages_accepted = args[:count_messages_accepted] if args.key?(:count_messages_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)
end