> ## Documentation Index
> Fetch the complete documentation index at: https://docs.m3ter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Opsgenie Functions

## Create OpsGenie Alert

**Function name:** `CreateOpsGenieAlertFunction`
**Category:** Write
**Destination:** Opsgenie

Creates an alert in OpsGenie

### Parameters

| Name                       | Label         | Required | Description                                                                                                                                                              |
| -------------------------- | ------------- | :------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `integrationCredentialsId` | Credentials   |    Yes   | OpsGenie credentials to use.                                                                                                                                             |
| `alertMessage`             | Alert message |    Yes   | Name of the variable by which alert message should be retrieved from state                                                                                               |
| `alias`                    | Alias         |    No    | Name of the variable by which alert alias should be retrieved from state. Identifier of the alert, that is also the key element of Alert De-Duplication                  |
| `alertDescription`         | Description   |    No    | Name of the variable by which alert description should be retrieved from state. Detailed information about the alert                                                     |
| `responders`               | Responders    |    No    | Teams, users, escalations and schedules that the alert will be routed to send notifications                                                                              |
| `visibleTo`                | Visible to    |    No    | Teams and users that the alert will become visible to without sending any notification                                                                                   |
| `source`                   | Source        |    No    | Name of the variable by which alert source should be retrieved from state. The name of the system that created the alert                                                 |
| `priority`                 | Priority      |    No    | Name of the variable by which alert priority should be retrieved from state. Priority level of the alert. Possible values are P1, P2, P3, P4 and P5. Default value is P3 |
| `user`                     | User          |    No    | Name of the variable by which alert user should be retrieved from state. The name of the user that created the alert                                                     |
| `note`                     | Note          |    No    | Name of the variable by which alert note should be retrieved from state. Note that will be added to the alert                                                            |

### Exits

| Exit    | Description |
| ------- | ----------- |
| `NEXT`  | -           |
| `ERROR` | -           |
