Rollbar

App · 12 actions

Report errors, messages and deploys to Rollbar, and find, resolve and triage the items in a project.

Actions

ActionWhat it does
Find the item for a reported occurrenceFind the item an occurrence was grouped into, by the occurrence's UUID, such as the one 'Report an error or message' returns.
Get a deployGet a deploy by its ID: its environment, revision, status and times.
Get an itemGet an item by its ID: its title, level, status, environment and when it first and last happened.
Get an item by its numberGet an item by its number in the project, the one in its Rollbar address (456 in rollbar.com/your-account/your-project/items/456).
List an item's occurrencesList each time an item happened, newest first, with everything that was sent with it.
List deploysList the project's deploys, most recent first.
List environmentsList the environments the project has seen, such as production and staging.
List itemsList the project's items (the errors and messages Rollbar has grouped), 100 to a page, optionally only those with a status, level or environment, or matching a search.
Report a deployTell Rollbar a revision was deployed to an environment, so its items can be traced to the deploy that brought them.
Report an error or messageSend an error or message to Rollbar from a workflow.
Update a deployChange the status of a deploy reported as started, when it succeeds, fails or times out, and optionally its comment.
Update an itemResolve, mute or reactivate an item, or change its level or title.

Find the item for a reported occurrence

Find the item an occurrence was grouped into, by the occurrence's UUID, such as the one 'Report an error or message' returns. Rollbar answers that it can't find it until it has processed the report, usually within a few seconds.

Inputs

UuiduuidtextRequired
The occurrence's UUID.

Outputs

dataobject
The response from Rollbar.
Example output
{
  "data": {
    "assigned_team_id": 1,
    "assigned_user_id": 1,
    "counter": 1,
    "environment": "example",
    "first_occurrence_id": 1,
    "first_occurrence_timestamp": 1,
    "framework": "example",
    "group_item_id": 1,
    "hash": "example",
    "id": 1,
    "last_activated_timestamp": 1,
    "last_occurrence_id": 1,
    "last_occurrence_timestamp": 1,
    "last_resolved_timestamp": 1,
    "level": "example",
    "platform": "example",
    "project_id": 1,
    "resolved_in_version": "example",
    "status": "example",
    "title": "example",
    "total_occurrences": 1
  }
}

Get a deploy

Get a deploy by its ID: its environment, revision, status and times.

Inputs

Deploydeploy_idnumberRequired
The deploy, or its ID from an earlier step.At least 1.

Outputs

dataobject
The response from Rollbar.
Example output
{
  "data": {
    "comment": "example",
    "environment": "example",
    "finish_time": 1,
    "id": 1,
    "local_username": "example",
    "project_id": 1,
    "revision": "example",
    "start_time": 1,
    "status": "example",
    "user_id": 1
  }
}

Get an item

Get an item by its ID: its title, level, status, environment and when it first and last happened.

Inputs

Itemitem_idnumberRequired
The item, or its ID from an earlier step.At least 1.

Outputs

dataobject
The response from Rollbar.
Example output
{
  "data": {
    "assigned_team_id": 1,
    "assigned_user_id": 1,
    "counter": 1,
    "environment": "example",
    "first_occurrence_id": 1,
    "first_occurrence_timestamp": 1,
    "framework": "example",
    "group_item_id": 1,
    "hash": "example",
    "id": 1,
    "last_activated_timestamp": 1,
    "last_occurrence_id": 1,
    "last_occurrence_timestamp": 1,
    "last_resolved_timestamp": 1,
    "level": "example",
    "platform": "example",
    "project_id": 1,
    "resolved_in_version": "example",
    "status": "example",
    "title": "example",
    "total_occurrences": 1
  }
}

Get an item by its number

Get an item by its number in the project, the one in its Rollbar address (456 in rollbar.com/your-account/your-project/items/456).

Inputs

CountercounternumberRequired
The item's number in the project.At least 1.

Outputs

dataobject
The response from Rollbar.
Example output
{
  "data": {
    "assigned_team_id": 1,
    "assigned_user_id": 1,
    "counter": 1,
    "environment": "example",
    "first_occurrence_id": 1,
    "first_occurrence_timestamp": 1,
    "framework": "example",
    "group_item_id": 1,
    "hash": "example",
    "id": 1,
    "last_activated_timestamp": 1,
    "last_occurrence_id": 1,
    "last_occurrence_timestamp": 1,
    "last_resolved_timestamp": 1,
    "level": "example",
    "platform": "example",
    "project_id": 1,
    "resolved_in_version": "example",
    "status": "example",
    "title": "example",
    "total_occurrences": 1
  }
}

List an item's occurrences

List each time an item happened, newest first, with everything that was sent with it.

Inputs

Itemitem_idnumberRequired
The item, or its ID from an earlier step.At least 1.
Pagepagenumber
Which page of 20 to read, starting at 1.At least 1.
Limitlimitnumber
How many to return per page, up to 5,000. Rollbar returns 20 if left blank.From 1 to 5000.

Outputs

dataobject
The response from Rollbar.
Example output
{
  "data": {
    "instances": [
      {
        "billable": 1,
        "data": {},
        "id": 1,
        "item_id": 1,
        "project_id": 1,
        "timestamp": 1,
        "version": 1
      }
    ],
    "page": 1
  }
}

List deploys

List the project's deploys, most recent first.

Inputs

Pagepagenumber
Which page of 20 to read, starting at 1.At least 1.
Limitlimitnumber
How many to return per page, up to 5,000. Rollbar returns 20 if left blank.From 1 to 5000.

Outputs

dataobject
The response from Rollbar.
Example output
{
  "data": {
    "deploys": [
      {
        "comment": "example",
        "environment": "example",
        "finish_time": 1,
        "id": 1,
        "local_username": "example",
        "project_id": 1,
        "revision": "example",
        "start_time": 1,
        "status": "example",
        "user_id": 1
      }
    ],
    "page": 1
  }
}

List environments

List the environments the project has seen, such as production and staging.

Inputs

Pagepagenumber
Which page of 20 to read, starting at 1.At least 1.
Limitlimitnumber
How many to return per page, up to 5,000. Rollbar returns 20 if left blank.From 1 to 5000.

Outputs

dataobject
The response from Rollbar.
Example output
{
  "data": {
    "environments": [
      {
        "environment": "example",
        "id": 1,
        "project_id": 1,
        "visible": 1
      }
    ],
    "page": 1
  }
}

List items

List the project's items (the errors and messages Rollbar has grouped), 100 to a page, optionally only those with a status, level or environment, or matching a search.

Inputs

Statusstatustext
Only items with this status.One of: active, resolved, muted.
Levelleveltext
Only items with this level.One of: critical, error, warning, info, debug.
Environmentenvironmenttext
Only items in this environment.
Queryquerytext
A search, written as in the search box on Rollbar's Items page.
Assigned userassigned_usertext
Only items assigned to this Rollbar username. Use assigned or unassigned for any or no assignee.
Pagepagenumber
Which page of 100 to read, starting at 1.At least 1.

Outputs

dataobject
The response from Rollbar.
Example output
{
  "data": {
    "items": [
      {
        "assigned_team_id": 1,
        "assigned_user_id": 1,
        "counter": 1,
        "environment": "example",
        "first_occurrence_id": 1,
        "first_occurrence_timestamp": 1,
        "framework": "example",
        "group_item_id": 1,
        "hash": "example",
        "id": 1,
        "last_activated_timestamp": 1,
        "last_occurrence_id": 1,
        "last_occurrence_timestamp": 1,
        "last_resolved_timestamp": 1,
        "level": "example",
        "platform": "example",
        "project_id": 1,
        "resolved_in_version": "example",
        "status": "example",
        "title": "example",
        "total_occurrences": 1
      }
    ],
    "page": 1,
    "total_count": 1
  }
}

Report a deploy

Tell Rollbar a revision was deployed to an environment, so its items can be traced to the deploy that brought them. Report it as started and update it when it finishes, or report it once it has.

Inputs

EnvironmentenvironmenttextRequired
The environment deployed to, such as production.
RevisionrevisiontextRequired
The revision deployed, usually a Git SHA.
Statusstatustext
How the deploy went. Rollbar uses succeeded if left blank.One of: started, succeeded, failed, timed_out (Timed out).
Commentcommenttext
A note to show with the deploy.
Rollbar usernamerollbar_usernametext
The Rollbar username of whoever deployed.
Local usernamelocal_usernametext
The name of whoever deployed, shown when there's no Rollbar username.

Outputs

dataobject
The response from Rollbar.
Example output
{
  "data": {
    "deploy_id": 1
  }
}

Report an error or message

Send an error or message to Rollbar from a workflow. Rollbar groups it into an item, as it does what your code reports, and alerts your team as the project's notifications say. Returns the occurrence's UUID; 'Find the item for a reported occurrence' looks up the item once Rollbar has processed it, usually within a few seconds.

Inputs

EnvironmentenvironmenttextRequired
Where it happened, such as production or staging. Rollbar adds a new environment the first time it sees its name.
MessagemessagetextRequired
The text to report.
Levelleveltext
How severe it is. Rollbar uses info if left blank.One of: critical, error, warning, info, debug.
Titletitletext
The item's title, up to 255 characters. Rollbar makes one from the message if left blank.
Customcustomobject
Extra details to keep with it, such as an order number or a customer ID.
Code versioncode_versiontext
The version of your code, up to 40 characters: a Git SHA, a semantic version or a build number.
Contextcontexttext
Which part of your app it came from, such as checkout#submit.
Fingerprintfingerprinttext
Reports with the same fingerprint are grouped into one item. Rollbar decides the grouping if left blank.

Outputs

dataobject
The response from Rollbar.
Example output
{
  "data": {
    "uuid": "example"
  }
}

Update a deploy

Change the status of a deploy reported as started, when it succeeds, fails or times out, and optionally its comment.

Inputs

Deploydeploy_idnumberRequired
The deploy, or its ID from an earlier step.At least 1.
StatusstatustextRequired
The deploy's new status.One of: started, succeeded, failed, timed_out (Timed out).
Commentcommenttext
A new note to show with the deploy.

Outputs

dataobject
The response from Rollbar.
Example output
{
  "data": {
    "comment": "example",
    "environment": "example",
    "finish_time": 1,
    "id": 1,
    "local_username": "example",
    "project_id": 1,
    "revision": "example",
    "start_time": 1,
    "status": "example",
    "user_id": 1
  }
}

Update an item

Resolve, mute or reactivate an item, or change its level or title. Returns the fields that were changed.

Inputs

Itemitem_idnumberRequired
The item, or its ID from an earlier step.At least 1.
Statusstatustext
The item's new status.One of: active, resolved, muted.
Resolved in versionresolved_in_versiontext
When resolving, the version it was fixed in, up to 40 characters.
Levelleveltext
The item's new level.One of: critical, error, warning, info, debug.
Titletitletext
The item's new title, up to 255 characters.

Outputs

dataobject
The response from Rollbar.
Example output
{
  "data": {
    "level": "example",
    "resolved_in_version": "example",
    "status": "example",
    "title": "example"
  }
}

On this page