Methods

onNew

onNew(event) returns functions.CloudFunction containing non-null functions.crashlytics.Issue

Event handler that fires every time a new issue occurs a project.

Parameter

event

function(non-null functions.Event containing non-null functions.crashlytics.Issue)

Event handler that fires every time a new issue event occurs.

Returns

non-null functions.CloudFunction containing non-null functions.crashlytics.Issue

Example

exports.postOnNewIssue = functions.crashlytics.issue().onNew(event => {
  const { data } = event;
  issueId = data.issueId;
  issueTitle =  data.issueTitle;
  const slackMessage = ` There's a new issue (${issueId}) ` +
      `in your app - ${issueTitle}`;
  return notifySlack(slackMessage).then(() => {
    console.log(`Posted new issue ${issueId} successfully to Slack`);
  });
});

onRegressed

onRegressed(event) returns functions.CloudFunction containing non-null functions.crashlytics.Issue

Event handler that fires every time a regressed issue reoccurs in a project.

Parameter

event

function(non-null functions.Event containing non-null functions.crashlytics.Issue)

Event handler that fires every time a regressed issue event occurs.

Returns

non-null functions.CloudFunction containing non-null functions.crashlytics.Issue

onVelocityAlert

onVelocityAlert(event) returns functions.CloudFunction containing non-null functions.crashlytics.Issue

Event handler that fires every time a velocity alert occurs in a project.

Parameter

event

function(non-null functions.Event containing non-null functions.crashlytics.Issue)

Event handler that fires every time a velocity alert issue event occurs.

Returns

non-null functions.CloudFunction containing non-null functions.crashlytics.Issue