Skip to content

Commit

Permalink
feat(fcmdata): update the API
Browse files Browse the repository at this point in the history
#### fcmdata:v1beta1

The following keys were added:
- schemas.GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.properties.collapsed.description
- schemas.GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.properties.collapsed.format
- schemas.GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.properties.collapsed.type
- schemas.GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.properties.droppedTtlExpired.description
- schemas.GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.properties.droppedTtlExpired.format
- schemas.GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.properties.droppedTtlExpired.type
  • Loading branch information
yoshi-automation authored and sofisl committed Jun 6, 2024
1 parent 5f15542 commit 093cadc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
12 changes: 11 additions & 1 deletion discovery/fcmdata-v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
}
}
},
"revision": "20240530",
"revision": "20240604",
"rootUrl": "https://fcmdata.googleapis.com/",
"schemas": {
"GoogleFirebaseFcmDataV1beta1AndroidDeliveryData": {
Expand Down Expand Up @@ -279,6 +279,11 @@
"description": "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.",
"id": "GoogleFirebaseFcmDataV1beta1MessageOutcomePercents",
"properties": {
"collapsed": {
"description": "The percentage of accepted messages that were [collapsed](https://firebase.google.com/docs/cloud-messaging/concept-options#collapsible_and_non-collapsible_messages) by another message.",
"format": "float",
"type": "number"
},
"delivered": {
"description": "The percentage of all accepted messages that were successfully delivered to the device.",
"format": "float",
Expand All @@ -299,6 +304,11 @@
"format": "float",
"type": "number"
},
"droppedTtlExpired": {
"description": "The percentage of accepted messages that expired because [Time To Live (TTL)](https://firebase.google.com/docs/cloud-messaging/concept-options#ttl) elapsed before the target device reconnected.",
"format": "float",
"type": "number"
},
"pending": {
"description": "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.",
"format": "float",
Expand Down
8 changes: 8 additions & 0 deletions src/apis/fcmdata/v1beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ export namespace fcmdata_v1beta1 {
* 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.
*/
export interface Schema$GoogleFirebaseFcmDataV1beta1MessageOutcomePercents {
/**
* The percentage of accepted messages that were [collapsed](https://firebase.google.com/docs/cloud-messaging/concept-options#collapsible_and_non-collapsible_messages) by another message.
*/
collapsed?: number | null;
/**
* The percentage of all accepted messages that were successfully delivered to the device.
*/
Expand All @@ -241,6 +245,10 @@ export namespace fcmdata_v1beta1 {
* The percentage of accepted messages that were dropped due to [too many undelivered non-collapsible messages](https://firebase.google.com/docs/cloud-messaging/concept-options#collapsible_and_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()](https://firebase.google.com/docs/cloud-messaging/android/receive#override-ondeletedmessages) in our SDK instead of delivering the messages.
*/
droppedTooManyPendingMessages?: number | null;
/**
* The percentage of accepted messages that expired because [Time To Live (TTL)](https://firebase.google.com/docs/cloud-messaging/concept-options#ttl) elapsed before the target device reconnected.
*/
droppedTtlExpired?: number | null;
/**
* 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.
*/
Expand Down

0 comments on commit 093cadc

Please sign in to comment.