# Raygun

> Report errors to Raygun and work on them: resolve, ignore and comment on error groups, read error details, record deployments and manage source maps, with triggers for new and returning errors and new deployments.

App · 24 actions. Web page: https://docs.lodol.com/docs/integrations/raygun

## Actions

### Comment on error group

Add a comment to an error group.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Error group (`error_group_id`, text, required): The error group.
- Comment (`comment`, text, required): The comment.

**Outputs**

- `data` (object): The response from Raygun.

**Example output**

```json
{
  "data": {
    "applicationIdentifier": "example",
    "comment": "example",
    "createdAt": "example",
    "errorGroupIdentifier": "example"
  }
}
```

### Create deployment

Record a deployment of an application, so Raygun can show which errors it brought in or fixed.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Version (`version`, text, required): The version deployed, such as 2.4.1.
- Deployed by (`owner_name`, text): The name of the person who deployed.
- Email (`email`, text): The email address of the person who deployed.
- Comment (`comment`, text): Release notes or a comment about the deployment.
- Commit (`scm_identifier`, text): The commit the deployment is built from, such as a Git SHA.
- Code host (`scm_type`, text): Where the code is hosted, so Raygun can link the commit. One of: `gitHub`, `gitLab`, `azureDevOps` (Azure DevOps), `bitbucket`.
- Deployed at (`deployed_at`, date and time): When it was deployed. Leave empty for now.

**Outputs**

- `data` (object): The response from Raygun.

**Example output**

```json
{
  "data": {
    "applicationIdentifier": "example",
    "applicationUrl": "example",
    "comment": "example",
    "deployedAt": "example",
    "emailAddress": "example",
    "identifier": "example",
    "ownerName": "example",
    "scmIdentifier": "example",
    "scmType": "example",
    "version": "example"
  }
}
```

### Delete deployment

Delete a deployment.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Deployment (`deployment_id`, text, required): The deployment.

**Outputs**

- `data` (object): The response from Raygun.

**Example output**

```json
{
  "data": {}
}
```

### Delete source map

Delete an uploaded source map.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Source map (`source_map_id`, text, required): The source map.

**Outputs**

- `data` (object): The response from Raygun.

**Example output**

```json
{
  "data": {}
}
```

### Get application

Get an application's name, plan and the kinds of data it has sent.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.

**Outputs**

- `data` (object): The response from Raygun.

**Example output**

```json
{
  "data": {
    "apiKey": "example",
    "hasSentApmData": true,
    "hasSentCrashData": true,
    "hasSentRumData": true,
    "identifier": "example",
    "name": "example",
    "planIdentifier": "example"
  }
}
```

### Get deployment

Get a deployment's version, owner, commit and time.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Deployment (`deployment_id`, text, required): The deployment.

**Outputs**

- `data` (object): The response from Raygun.

**Example output**

```json
{
  "data": {
    "applicationIdentifier": "example",
    "applicationUrl": "example",
    "comment": "example",
    "deployedAt": "example",
    "emailAddress": "example",
    "identifier": "example",
    "ownerName": "example",
    "scmIdentifier": "example",
    "scmType": "example",
    "version": "example"
  }
}
```

### Get error group

Get an error group's message, status and when it last happened.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Error group (`error_group_id`, text, required): The error group.

**Outputs**

- `data` (object): The response from Raygun.

**Example output**

```json
{
  "data": {
    "applicationIdentifier": "example",
    "applicationUrl": "example",
    "createdAt": "example",
    "discardNewOccurrences": true,
    "identifier": "example",
    "lastOccurredAt": "example",
    "message": "example",
    "resolvedIn": {},
    "status": "example"
  }
}
```

### Get error instance

Get one occurrence of an error group in full: stack trace, request, user and custom data.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Error group (`error_group_id`, text, required): The error group.
- Instance ID (`instance_id`, text, required): The occurrence's ID, from List error instances.

**Outputs**

- `data` (object): The response from Raygun.

**Example output**

```json
{
  "data": {
    "applicationIdentifier": "example",
    "applicationUrl": "example",
    "client": {},
    "environment": {},
    "error": {
      "className": "example",
      "message": "example",
      "stackTrace": [
        {}
      ]
    },
    "errorGroupIdentifier": "example",
    "identifier": "example",
    "machineName": "example",
    "occurredOn": "example",
    "request": {},
    "tags": [
      "example"
    ],
    "user": {},
    "userCustomData": {},
    "version": "example"
  }
}
```

### Get latest error instance

Get the most recent occurrence of an error group in full: stack trace, request, user and custom data.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Error group (`error_group_id`, text, required): The error group.

**Outputs**

- `data` (object): The response from Raygun.

**Example output**

```json
{
  "data": {
    "applicationIdentifier": "example",
    "applicationUrl": "example",
    "client": {},
    "environment": {},
    "error": {
      "className": "example",
      "message": "example",
      "stackTrace": [
        {}
      ]
    },
    "errorGroupIdentifier": "example",
    "identifier": "example",
    "machineName": "example",
    "occurredOn": "example",
    "request": {},
    "tags": [
      "example"
    ],
    "user": {},
    "userCustomData": {},
    "version": "example"
  }
}
```

### Get source map

Get an uploaded source map's address, file name, size and upload time.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Source map (`source_map_id`, text, required): The source map.

**Outputs**

- `data` (object): The response from Raygun.

**Example output**

```json
{
  "data": {
    "applicationIdentifier": "example",
    "createdAt": "example",
    "fileName": "example",
    "fileSizeBytes": 1,
    "identifier": "example",
    "isMapFile": true,
    "updatedAt": "example",
    "uploadedAt": "example",
    "uri": "example"
  }
}
```

### Ignore error group

Ignore an error group until you reactivate it.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Error group (`error_group_id`, text, required): The error group.

**Outputs**

- `data` (object): The response from Raygun.

**Example output**

```json
{
  "data": {
    "applicationIdentifier": "example",
    "applicationUrl": "example",
    "createdAt": "example",
    "discardNewOccurrences": true,
    "identifier": "example",
    "lastOccurredAt": "example",
    "message": "example",
    "resolvedIn": {},
    "status": "example"
  }
}
```

### List applications

List the Raygun applications your token can reach.

**Inputs**

- Sort by (`orderby`, text): How to sort. One of: `name` (Name (A to Z)), `name desc` (Name (Z to A)).
- How many (`count`, number): How many to return, up to 500. Leave empty for 100. From 1 to 500.
- Skip (`offset`, number): How many to skip, for reading the next page. At least 0.

**Outputs**

- `data` (list): The response from Raygun.

**Example output**

```json
{
  "data": [
    {
      "apiKey": "example",
      "hasSentApmData": true,
      "hasSentCrashData": true,
      "hasSentRumData": true,
      "identifier": "example",
      "name": "example",
      "planIdentifier": "example"
    }
  ]
}
```

### List deployment error groups

List the error groups seen in a deployment, optionally only new, still happening or regressed ones.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Deployment (`deployment_id`, text, required): The deployment.
- State (`state`, text): Only error groups in this state. One of: `new` (New in this deployment), `stillOccurring` (Still happening), `regressed` (Came back (regressed)).
- Sort by (`orderby`, text): How to sort. One of: `lastOccurredAt desc` (Most recently seen first), `createdAt desc` (Newest first), `message` (Message (A to Z)), `status`.
- How many (`count`, number): How many to return, up to 500. Leave empty for 100. From 1 to 500.
- Skip (`offset`, number): How many to skip, for reading the next page. At least 0.

**Outputs**

- `data` (list): The response from Raygun.

**Example output**

```json
{
  "data": [
    {
      "applicationIdentifier": "example",
      "applicationUrl": "example",
      "createdAt": "example",
      "discardNewOccurrences": true,
      "identifier": "example",
      "lastOccurredAt": "example",
      "message": "example",
      "resolvedIn": {},
      "status": "example"
    }
  ]
}
```

### List deployments

List an application's deployments.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Sort by (`orderby`, text): How to sort. One of: `deployedAt desc` (Newest first), `deployedAt` (Oldest first), `version`, `version desc` (Version (descending)).
- How many (`count`, number): How many to return, up to 500. Leave empty for 100. From 1 to 500.
- Skip (`offset`, number): How many to skip, for reading the next page. At least 0.

**Outputs**

- `data` (list): The response from Raygun.

**Example output**

```json
{
  "data": [
    {
      "applicationIdentifier": "example",
      "applicationUrl": "example",
      "comment": "example",
      "deployedAt": "example",
      "emailAddress": "example",
      "identifier": "example",
      "ownerName": "example",
      "scmIdentifier": "example",
      "scmType": "example",
      "version": "example"
    }
  ]
}
```

### List error groups

List an application's error groups: each distinct error with its status and when it last happened.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Sort by (`orderby`, text): How to sort. One of: `lastOccurredAt desc` (Most recently seen first), `lastOccurredAt` (Least recently seen first), `createdAt desc` (Newest first), `createdAt` (Oldest first), `message` (Message (A to Z)), `status`.
- How many (`count`, number): How many to return, up to 500. Leave empty for 100. From 1 to 500.
- Skip (`offset`, number): How many to skip, for reading the next page. At least 0.

**Outputs**

- `data` (list): The response from Raygun.

**Example output**

```json
{
  "data": [
    {
      "applicationIdentifier": "example",
      "applicationUrl": "example",
      "createdAt": "example",
      "discardNewOccurrences": true,
      "identifier": "example",
      "lastOccurredAt": "example",
      "message": "example",
      "resolvedIn": {},
      "status": "example"
    }
  ]
}
```

### List error instances

List each time an error group's error happened, newest first.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Error group (`error_group_id`, text, required): The error group.
- Sort by (`orderby`, text): How to sort. One of: `occurredOn desc` (Newest first), `occurredOn` (Oldest first).
- How many (`count`, number): How many to return, up to 500. Leave empty for 100. From 1 to 500.
- Skip (`offset`, number): How many to skip, for reading the next page. At least 0.

**Outputs**

- `data` (list): The response from Raygun.

**Example output**

```json
{
  "data": [
    {
      "identifier": "example",
      "occurredOn": "example"
    }
  ]
}
```

### List source maps

List the source maps and minified files uploaded to an application.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Sort by (`orderby`, text): How to sort. One of: `uploadedAt desc` (Newest upload first), `uploadedAt` (Oldest upload first), `uri` (Address (A to Z)).
- How many (`count`, number): How many to return, up to 500. Leave empty for 100. From 1 to 500.
- Skip (`offset`, number): How many to skip, for reading the next page. At least 0.

**Outputs**

- `data` (list): The response from Raygun.

**Example output**

```json
{
  "data": [
    {
      "applicationIdentifier": "example",
      "createdAt": "example",
      "fileName": "example",
      "fileSizeBytes": 1,
      "identifier": "example",
      "isMapFile": true,
      "updatedAt": "example",
      "uploadedAt": "example",
      "uri": "example"
    }
  ]
}
```

### Permanently ignore error group

Ignore an error group for good, optionally discarding new occurrences so they don't count towards your quota.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Error group (`error_group_id`, text, required): The error group.
- Discard new occurrences (`discard_new`, true/false, required): Discard new occurrences, so they aren't stored or counted.

**Outputs**

- `data` (object): The response from Raygun.

**Example output**

```json
{
  "data": {
    "applicationIdentifier": "example",
    "applicationUrl": "example",
    "createdAt": "example",
    "discardNewOccurrences": true,
    "identifier": "example",
    "lastOccurredAt": "example",
    "message": "example",
    "resolvedIn": {},
    "status": "example"
  }
}
```

### Reactivate error group

Set a resolved or ignored error group back to active.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Error group (`error_group_id`, text, required): The error group.

**Outputs**

- `data` (object): The response from Raygun.

**Example output**

```json
{
  "data": {
    "applicationIdentifier": "example",
    "applicationUrl": "example",
    "createdAt": "example",
    "discardNewOccurrences": true,
    "identifier": "example",
    "lastOccurredAt": "example",
    "message": "example",
    "resolvedIn": {},
    "status": "example"
  }
}
```

### Report error

Send an error to a Raygun application, as an app's Raygun client would.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Error class (`error_class`, text, required): The error's class or kind, such as PaymentFailed.
- Message (`message`, text, required): What went wrong.
- Version (`version`, text): The version of your app it happened in.
- Tags (`tags`, list): Tags for the error.
- Custom data (`custom_data`, object): Extra details to show with the error.
- User (`user`, text): Who it happened to, such as their email or user ID.
- Machine name (`machine_name`, text): The machine or service it happened on.

**Outputs**

- `data` (object): The response from Raygun.

**Example output**

```json
{
  "data": {
    "applicationIdentifier": "example",
    "occurredOn": "example",
    "sent": true
  }
}
```

### Resolve error group

Mark an error group resolved in a version of your app.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Error group (`error_group_id`, text, required): The error group.
- Fixed in version (`version`, text, required): The version the error was fixed in.
- Discard older versions (`discard_previous`, true/false): Discard new occurrences from versions older than this one. Leave empty to discard them.

**Outputs**

- `data` (object): The response from Raygun.

**Example output**

```json
{
  "data": {
    "applicationIdentifier": "example",
    "applicationUrl": "example",
    "createdAt": "example",
    "discardNewOccurrences": true,
    "identifier": "example",
    "lastOccurredAt": "example",
    "message": "example",
    "resolvedIn": {},
    "status": "example"
  }
}
```

### Update deployment

Change a deployment's details. Only the fields filled in change.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Deployment (`deployment_id`, text, required): The deployment.
- Version (`version`, text): The version deployed.
- Deployed by (`owner_name`, text): The name of the person who deployed.
- Email (`email`, text): The email address of the person who deployed.
- Comment (`comment`, text): Release notes or a comment about the deployment.
- Commit (`scm_identifier`, text): The commit the deployment is built from, such as a Git SHA.
- Code host (`scm_type`, text): Where the code is hosted, so Raygun can link the commit. One of: `gitHub`, `gitLab`, `azureDevOps` (Azure DevOps), `bitbucket`.
- Deployed at (`deployed_at`, date and time): When it was deployed. Leave empty for now.

**Outputs**

- `data` (object): The response from Raygun.

**Example output**

```json
{
  "data": {
    "applicationIdentifier": "example",
    "applicationUrl": "example",
    "comment": "example",
    "deployedAt": "example",
    "emailAddress": "example",
    "identifier": "example",
    "ownerName": "example",
    "scmIdentifier": "example",
    "scmType": "example",
    "version": "example"
  }
}
```

### Update source map address

Change the address an uploaded source map is matched to.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- Source map (`source_map_id`, text, required): The source map.
- File address (`uri`, text, required): The full address your app serves the file at.

**Outputs**

- `data` (object): The response from Raygun.

**Example output**

```json
{
  "data": {
    "applicationIdentifier": "example",
    "createdAt": "example",
    "fileName": "example",
    "fileSizeBytes": 1,
    "identifier": "example",
    "isMapFile": true,
    "updatedAt": "example",
    "uploadedAt": "example",
    "uri": "example"
  }
}
```

### Upload source map

Upload a source map or minified JavaScript file, so Raygun can show readable stack traces for it.

**Inputs**

- Application (`application_id`, text, required): The Raygun application.
- File (`file`, text, required): The source map or minified file, or a public link to it.
- File address (`uri`, text, required): The full address your app serves the file at, such as https://example.com/js/app.min.js.map.

**Outputs**

- `data` (object): The response from Raygun.

**Example output**

```json
{
  "data": {
    "applicationIdentifier": "example",
    "createdAt": "example",
    "fileName": "example",
    "fileSizeBytes": 1,
    "identifier": "example",
    "isMapFile": true,
    "updatedAt": "example",
    "uploadedAt": "example",
    "uri": "example"
  }
}
```
