Fabric/Firebase Crashlytics API

Viewed 2389

I'm aware that there isn't a Fabric/Crashlytics API that I can use to pull data. I'm wondering if when the move happens to Firebase/Crashlytics will there be some sort of official API that we can use to get crash statistics?

I am trying to create Jiras upon a crash but our jira locally hosted and isn't publicly available so I can't integrate it through the service hooks provided.

2 Answers

Mike from Firebase and Fabric here. We support JIRA server instances. However if it is not accessible to us, for example behind a firewall, then we don't have any integrations that will work.

The Google Analytics Data API can be used to retrieve the crashAffectedUsers & crashFreeUsersRate. crashAffectedUsers is number of users that logged a crash, and crashFreeUsersRate number of users without crash events divided by the total number of users. The Data API schema page contains more details about these metrics.

An example request to the RunReport method looks like the following:

{
  "dateRanges": [
    {
      "startDate": "7daysAgo",
      "endDate": "today"
    }
  ],
  "dimensions": [
    {
      "name": "date"
    }
  ],
  "metrics": [
    {
      "name": "crashFreeUsersRate"
    },
    {
      "name": "crashAffectedUsers"
    },
    {
      "name": "totalUsers"
    }
  ]
}

An example response row looks like the following. This row means: on 2021-11-13, the crash free users rate was 99.836%, 2 users were affected by crashes, and 1220 total users used your app.

    {
      "dimensionValues": [
        {
          "value": "20211113"
        }
      ],
      "metricValues": [
        {
          "value": "0.99836"
        },
        {
          "value": "2"
        },
        {
          "value": "1220"
        }
      ]
    },
Related